2023-01-11T20:53:29.2109720Z Requested labels: linux.2xlarge 2023-01-11T20:53:29.2109832Z Job defined at: pytorch/pytorch/.github/workflows/_linux-test.yml@refs/tags/ciflow/trunk/91627 2023-01-11T20:53:29.2110016Z Reusable workflow chain: 2023-01-11T20:53:29.2110062Z pytorch/pytorch/.github/workflows/trunk.yml@refs/tags/ciflow/trunk/91627 (8419ddda87c8a47eacc63b54bc7ec98c1f27c26e) 2023-01-11T20:53:29.2110139Z -> pytorch/pytorch/.github/workflows/_linux-test.yml@refs/tags/ciflow/trunk/91627 (8419ddda87c8a47eacc63b54bc7ec98c1f27c26e) 2023-01-11T20:53:29.2110168Z Waiting for a runner to pick up this job... 2023-01-11T20:53:29.4273084Z Job is about to start running on the runner: i-0621585034f78d3f2 (organization) 2023-01-11T20:53:34.4282969Z Current runner version: '2.300.2' 2023-01-11T20:53:34.4287688Z Runner name: 'i-0621585034f78d3f2' 2023-01-11T20:53:34.4288087Z Runner group name: 'Default' 2023-01-11T20:53:34.4288568Z Machine name: 'ip-10-0-5-223' 2023-01-11T20:53:34.4289999Z ##[group]GITHUB_TOKEN Permissions 2023-01-11T20:53:34.4290556Z Actions: write 2023-01-11T20:53:34.4290766Z Checks: write 2023-01-11T20:53:34.4290970Z Contents: write 2023-01-11T20:53:34.4291170Z Deployments: write 2023-01-11T20:53:34.4291386Z Discussions: write 2023-01-11T20:53:34.4291594Z Issues: write 2023-01-11T20:53:34.4291790Z Metadata: read 2023-01-11T20:53:34.4291996Z Packages: write 2023-01-11T20:53:34.4292206Z Pages: write 2023-01-11T20:53:34.4292402Z PullRequests: write 2023-01-11T20:53:34.4292639Z RepositoryProjects: write 2023-01-11T20:53:34.4292872Z SecurityEvents: write 2023-01-11T20:53:34.4293071Z Statuses: write 2023-01-11T20:53:34.4293279Z ##[endgroup] 2023-01-11T20:53:34.4296473Z Secret source: Actions 2023-01-11T20:53:34.4296892Z Prepare workflow directory 2023-01-11T20:53:35.0689437Z Prepare all required actions 2023-01-11T20:53:35.0851754Z Getting action download info 2023-01-11T20:53:35.2874029Z Download action repository 'pytorch/test-infra@main' (SHA:2c225610d00fb13c04fcd60389d3e4d8326167c3) 2023-01-11T20:53:35.5461651Z Download action repository 'pytorch/pytorch@master' (SHA:c5836153f5332ca83d5cacde38f2829a4d54793e) 2023-01-11T20:53:38.1713306Z Download action repository 'seemethere/upload-artifact-s3@v5' (SHA:baba72d0712b404f646cebe0730933554ebce96a) 2023-01-11T20:53:38.5026675Z Getting action download info 2023-01-11T20:53:38.7188997Z Download action repository 'malfet/checkout@silent-checkout' (SHA:c7b8fef48edfe1bca0044a44b1f7f7c4318a3076) 2023-01-11T20:53:38.8833339Z Getting action download info 2023-01-11T20:53:39.1260237Z Download action repository 'nick-fields/retry@3e91a01664abd3c5cd539100d10d33b9c5b68482' (SHA:3e91a01664abd3c5cd539100d10d33b9c5b68482) 2023-01-11T20:53:39.2536317Z Uses: pytorch/pytorch/.github/workflows/_linux-test.yml 2023-01-11T20:53:39.2538009Z ##[group] Inputs 2023-01-11T20:53:39.2538332Z build-environment: linux-focal-py3.7-clang7-tsan 2023-01-11T20:53:39.2538705Z test-matrix: { include: [ { config: "tsan", shard: 1, num_shards: 1, runner: "linux.2xlarge" }, ]} 2023-01-11T20:53:39.2539175Z docker-image: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:fd224c2e6c79d7fdec6408da598bf52bc5b201dd 2023-01-11T20:53:39.2539548Z sync-tag: 2023-01-11T20:53:39.2540261Z timeout-minutes: 240 2023-01-11T20:53:39.2540481Z use-gha: 2023-01-11T20:53:39.2540683Z ##[endgroup] 2023-01-11T20:53:39.2541170Z Complete job name: linux-focal-py3.7-clang7-tsan / test (tsan, 1, 1, linux.2xlarge) 2023-01-11T20:53:39.3228456Z ##[group]Run pytorch/test-infra/.github/actions/setup-ssh@main 2023-01-11T20:53:39.3228770Z with: 2023-01-11T20:53:39.3229305Z github-secret: *** 2023-01-11T20:53:39.3229669Z instructions: All testing is done inside the container, to start an interactive session run: docker exec -it $(docker container ps --format '{{.ID}}') bash 2023-01-11T20:53:39.3230045Z activate-with-label: false 2023-01-11T20:53:39.3230276Z label: with-ssh 2023-01-11T20:53:39.3230499Z remove-existing-keys: true 2023-01-11T20:53:39.3230706Z env: 2023-01-11T20:53:39.3230911Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:53:39.3231131Z ##[endgroup] 2023-01-11T20:53:39.3991014Z ciflow reference detected, attempting to extract PR number 2023-01-11T20:53:39.8492213Z Grabbing public ssh keys from https://github.com/pytorch-bot[bot].keys 2023-01-11T20:53:39.9219868Z No SSH keys found for user pytorch-bot[bot] 2023-01-11T20:53:39.9220234Z Grabbing public ssh keys from https://github.com/LucaLumetti.keys 2023-01-11T20:53:40.0074294Z ~/.ssh/authorized_keys file found on node, removing ~/.ssh and starting fresh 2023-01-11T20:53:40.0086802Z Public keys pulled and installed to /home/ec2-user/.ssh/authorized_keys 2023-01-11T20:53:40.0110197Z Login using: ssh ec2-user@ec2-44-210-101-213.compute-1.amazonaws.com 2023-01-11T20:53:40.0110815Z All testing is done inside the container, to start an interactive session run: 2023-01-11T20:53:40.0111209Z docker exec -it $(docker container ps --format '{{.ID}}') bash 2023-01-11T20:53:40.0315961Z ##[group]Run pytorch/pytorch/.github/actions/checkout-pytorch@master 2023-01-11T20:53:40.0316210Z with: 2023-01-11T20:53:40.0316371Z submodules: recursive 2023-01-11T20:53:40.0316559Z fetch-depth: 0 2023-01-11T20:53:40.0316721Z env: 2023-01-11T20:53:40.0316911Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:53:40.0317173Z ##[endgroup] 2023-01-11T20:53:40.0517260Z ##[group]Run retry () { 2023-01-11T20:53:40.0517498Z retry () { 2023-01-11T20:53:40.0517715Z  $* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*) 2023-01-11T20:53:40.0517932Z } 2023-01-11T20:53:40.0518125Z echo "${GITHUB_WORKSPACE}" 2023-01-11T20:53:40.0518334Z if [ -z "${NO_SUDO}" ]; then 2023-01-11T20:53:40.0518560Z  retry sudo rm -rf "${GITHUB_WORKSPACE}" 2023-01-11T20:53:40.0518778Z else 2023-01-11T20:53:40.0518964Z  retry rm -rf "${GITHUB_WORKSPACE}" 2023-01-11T20:53:40.0519161Z fi 2023-01-11T20:53:40.0519380Z mkdir "${GITHUB_WORKSPACE}" 2023-01-11T20:53:40.0535030Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:53:40.0535254Z env: 2023-01-11T20:53:40.0535436Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:53:40.0535621Z NO_SUDO: 2023-01-11T20:53:40.0535779Z ##[endgroup] 2023-01-11T20:53:40.0626962Z /home/ec2-user/actions-runner/_work/pytorch/pytorch 2023-01-11T20:53:42.4389087Z ##[group]Run malfet/checkout@silent-checkout 2023-01-11T20:53:42.4389300Z with: 2023-01-11T20:53:42.4389500Z ref: 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:53:42.4389697Z fetch-depth: 0 2023-01-11T20:53:42.4389878Z submodules: recursive 2023-01-11T20:53:42.4390067Z quiet-checkout: true 2023-01-11T20:53:42.4390249Z repository: pytorch/pytorch 2023-01-11T20:53:42.4390601Z token: *** 2023-01-11T20:53:42.4390771Z ssh-strict: true 2023-01-11T20:53:42.4390960Z persist-credentials: true 2023-01-11T20:53:42.4391136Z clean: true 2023-01-11T20:53:42.4391308Z lfs: false 2023-01-11T20:53:42.4391486Z set-safe-directory: true 2023-01-11T20:53:42.4391650Z env: 2023-01-11T20:53:42.4391817Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:53:42.4391998Z ##[endgroup] 2023-01-11T20:53:42.5493008Z Syncing repository: pytorch/pytorch 2023-01-11T20:53:42.5494546Z ##[group]Getting Git version info 2023-01-11T20:53:42.5495005Z Working directory is '/home/ec2-user/actions-runner/_work/pytorch/pytorch' 2023-01-11T20:53:42.5495450Z [command]/usr/bin/git version 2023-01-11T20:53:42.5495712Z git version 2.38.1 2023-01-11T20:53:42.5496261Z ##[endgroup] 2023-01-11T20:53:42.5507876Z Temporarily overriding HOME='/home/ec2-user/actions-runner/_work/_temp/d44f1b75-5ebb-47ca-baab-153b41b06cf9' before making global git config changes 2023-01-11T20:53:42.5508293Z Adding repository directory to the temporary git global config as a safe directory 2023-01-11T20:53:42.5511630Z [command]/usr/bin/git config --global --add safe.directory /home/ec2-user/actions-runner/_work/pytorch/pytorch 2023-01-11T20:53:42.5549100Z Deleting the contents of '/home/ec2-user/actions-runner/_work/pytorch/pytorch' 2023-01-11T20:53:42.5553479Z ##[group]Initializing the repository 2023-01-11T20:53:42.5556104Z [command]/usr/bin/git init /home/ec2-user/actions-runner/_work/pytorch/pytorch 2023-01-11T20:53:42.5677505Z hint: Using 'master' as the name for the initial branch. This default branch name 2023-01-11T20:53:42.5678126Z hint: is subject to change. To configure the initial branch name to use in all 2023-01-11T20:53:42.5678698Z hint: of your new repositories, which will suppress this warning, call: 2023-01-11T20:53:42.5679080Z hint: 2023-01-11T20:53:42.5679521Z hint: git config --global init.defaultBranch 2023-01-11T20:53:42.5680037Z hint: 2023-01-11T20:53:42.5680519Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 2023-01-11T20:53:42.5681225Z hint: 'development'. The just-created branch can be renamed via this command: 2023-01-11T20:53:42.5681459Z hint: 2023-01-11T20:53:42.5681737Z hint: git branch -m 2023-01-11T20:53:42.5682100Z Initialized empty Git repository in /home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/ 2023-01-11T20:53:42.5687192Z [command]/usr/bin/git remote add origin https://github.com/pytorch/pytorch 2023-01-11T20:53:42.5717332Z ##[endgroup] 2023-01-11T20:53:42.5717677Z ##[group]Disabling automatic garbage collection 2023-01-11T20:53:42.5720694Z [command]/usr/bin/git config --local gc.auto 0 2023-01-11T20:53:42.5746756Z ##[endgroup] 2023-01-11T20:53:42.5747111Z ##[group]Setting up auth 2023-01-11T20:53:42.5753057Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2023-01-11T20:53:42.5781272Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2023-01-11T20:53:42.6013831Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2023-01-11T20:53:42.6043036Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : 2023-01-11T20:53:42.6284542Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2023-01-11T20:53:42.6326815Z ##[endgroup] 2023-01-11T20:53:42.6327176Z ##[group]Fetching the repository 2023-01-11T20:53:42.6333108Z [command]/usr/bin/git -c protocol.version=2 fetch --prune --quiet --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* 2023-01-11T20:54:38.2295029Z [command]/usr/bin/git rev-parse --verify --quiet 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e^{object} 2023-01-11T20:54:38.2320799Z 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:54:38.2325799Z ##[endgroup] 2023-01-11T20:54:38.2326155Z ##[group]Determining the checkout info 2023-01-11T20:54:38.2326978Z ##[endgroup] 2023-01-11T20:54:38.2327312Z ##[group]Checking out the ref 2023-01-11T20:54:38.2330539Z [command]/usr/bin/git checkout --quiet --force 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:54:39.5297690Z ##[endgroup] 2023-01-11T20:54:39.5298225Z ##[group]Setting up auth for fetching submodules 2023-01-11T20:54:39.5304497Z [command]/usr/bin/git config --global http.https://github.com/.extraheader AUTHORIZATION: basic *** 2023-01-11T20:54:39.5349045Z [command]/usr/bin/git config --global --unset-all url.https://github.com/.insteadOf 2023-01-11T20:54:39.5379319Z [command]/usr/bin/git config --global --add url.https://github.com/.insteadOf git@github.com: 2023-01-11T20:54:39.5407375Z [command]/usr/bin/git config --global --add url.https://github.com/.insteadOf org-21003710@github.com: 2023-01-11T20:54:39.5433671Z ##[endgroup] 2023-01-11T20:54:39.5434387Z ##[group]Fetching submodules 2023-01-11T20:54:39.5438654Z [command]/usr/bin/git submodule sync --recursive 2023-01-11T20:54:39.5695158Z [command]/usr/bin/git -c protocol.version=2 submodule update --init --force --recursive 2023-01-11T20:54:39.5943180Z Submodule 'android/libs/fbjni' (https://github.com/facebookincubator/fbjni.git) registered for path 'android/libs/fbjni' 2023-01-11T20:54:39.5943898Z Submodule 'third_party/NNPACK_deps/FP16' (https://github.com/Maratyszcza/FP16.git) registered for path 'third_party/FP16' 2023-01-11T20:54:39.5945838Z Submodule 'third_party/NNPACK_deps/FXdiv' (https://github.com/Maratyszcza/FXdiv.git) registered for path 'third_party/FXdiv' 2023-01-11T20:54:39.5948007Z Submodule 'third_party/NNPACK' (https://github.com/Maratyszcza/NNPACK.git) registered for path 'third_party/NNPACK' 2023-01-11T20:54:39.5950269Z Submodule 'third_party/QNNPACK' (https://github.com/pytorch/QNNPACK) registered for path 'third_party/QNNPACK' 2023-01-11T20:54:39.5952685Z Submodule 'third_party/VulkanMemoryAllocator' (https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git) registered for path 'third_party/VulkanMemoryAllocator' 2023-01-11T20:54:39.5955201Z Submodule 'third_party/XNNPACK' (https://github.com/google/XNNPACK.git) registered for path 'third_party/XNNPACK' 2023-01-11T20:54:39.5957680Z Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark' 2023-01-11T20:54:39.5960358Z Submodule 'third_party/cpuinfo' (https://github.com/pytorch/cpuinfo.git) registered for path 'third_party/cpuinfo' 2023-01-11T20:54:39.5963332Z Submodule 'third_party/cub' (https://github.com/NVlabs/cub.git) registered for path 'third_party/cub' 2023-01-11T20:54:39.5965801Z Submodule 'third_party/cudnn_frontend' (https://github.com/NVIDIA/cudnn-frontend.git) registered for path 'third_party/cudnn_frontend' 2023-01-11T20:54:39.5968743Z Submodule 'third_party/cutlass' (https://github.com/NVIDIA/cutlass.git) registered for path 'third_party/cutlass' 2023-01-11T20:54:39.5971728Z Submodule 'third_party/eigen' (https://gitlab.com/libeigen/eigen.git) registered for path 'third_party/eigen' 2023-01-11T20:54:39.5975031Z Submodule 'third_party/fbgemm' (https://github.com/pytorch/fbgemm) registered for path 'third_party/fbgemm' 2023-01-11T20:54:39.5978291Z Submodule 'third_party/flatbuffers' (https://github.com/google/flatbuffers.git) registered for path 'third_party/flatbuffers' 2023-01-11T20:54:39.5981510Z Submodule 'third_party/fmt' (https://github.com/fmtlib/fmt.git) registered for path 'third_party/fmt' 2023-01-11T20:54:39.5984937Z Submodule 'third_party/foxi' (https://github.com/houseroad/foxi.git) registered for path 'third_party/foxi' 2023-01-11T20:54:39.5988548Z Submodule 'third_party/gemmlowp/gemmlowp' (https://github.com/google/gemmlowp.git) registered for path 'third_party/gemmlowp/gemmlowp' 2023-01-11T20:54:39.5992108Z Submodule 'third_party/gloo' (https://github.com/facebookincubator/gloo) registered for path 'third_party/gloo' 2023-01-11T20:54:39.5996119Z Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/googletest' 2023-01-11T20:54:39.5999876Z Submodule 'third_party/ideep' (https://github.com/intel/ideep) registered for path 'third_party/ideep' 2023-01-11T20:54:39.6003886Z Submodule 'third_party/ios-cmake' (https://github.com/Yangqing/ios-cmake.git) registered for path 'third_party/ios-cmake' 2023-01-11T20:54:39.6007909Z Submodule 'third_party/ittapi' (https://github.com/intel/ittapi.git) registered for path 'third_party/ittapi' 2023-01-11T20:54:39.6012010Z Submodule 'third_party/kineto' (https://github.com/pytorch/kineto) registered for path 'third_party/kineto' 2023-01-11T20:54:39.6018118Z Submodule 'third_party/nccl/nccl' (https://github.com/NVIDIA/nccl) registered for path 'third_party/nccl/nccl' 2023-01-11T20:54:39.6022430Z Submodule 'third_party/neon2sse' (https://github.com/intel/ARM_NEON_2_x86_SSE.git) registered for path 'third_party/neon2sse' 2023-01-11T20:54:39.6027027Z Submodule 'third_party/nlohmann' (https://github.com/nlohmann/json.git) registered for path 'third_party/nlohmann' 2023-01-11T20:54:39.6031454Z Submodule 'third_party/onnx' (https://github.com/onnx/onnx.git) registered for path 'third_party/onnx' 2023-01-11T20:54:39.6036257Z Submodule 'third_party/onnx-tensorrt' (https://github.com/onnx/onnx-tensorrt) registered for path 'third_party/onnx-tensorrt' 2023-01-11T20:54:39.6040898Z Submodule 'third_party/pocketfft' (https://github.com/mreineck/pocketfft) registered for path 'third_party/pocketfft' 2023-01-11T20:54:39.6045779Z Submodule 'third_party/protobuf' (https://github.com/protocolbuffers/protobuf.git) registered for path 'third_party/protobuf' 2023-01-11T20:54:39.6050651Z Submodule 'third_party/NNPACK_deps/psimd' (https://github.com/Maratyszcza/psimd.git) registered for path 'third_party/psimd' 2023-01-11T20:54:39.6056319Z Submodule 'third_party/NNPACK_deps/pthreadpool' (https://github.com/Maratyszcza/pthreadpool.git) registered for path 'third_party/pthreadpool' 2023-01-11T20:54:39.6061266Z Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/pybind11' 2023-01-11T20:54:39.6066609Z Submodule 'third_party/python-enum' (https://github.com/PeachPy/enum34.git) registered for path 'third_party/python-enum' 2023-01-11T20:54:39.6071834Z Submodule 'third_party/python-peachpy' (https://github.com/malfet/PeachPy.git) registered for path 'third_party/python-peachpy' 2023-01-11T20:54:39.6077404Z Submodule 'third_party/python-six' (https://github.com/benjaminp/six.git) registered for path 'third_party/python-six' 2023-01-11T20:54:39.6082831Z Submodule 'third_party/sleef' (https://github.com/shibatch/sleef) registered for path 'third_party/sleef' 2023-01-11T20:54:39.6088583Z Submodule 'third_party/tbb' (https://github.com/01org/tbb) registered for path 'third_party/tbb' 2023-01-11T20:54:39.6094675Z Submodule 'third_party/tensorpipe' (https://github.com/pytorch/tensorpipe.git) registered for path 'third_party/tensorpipe' 2023-01-11T20:54:39.6100780Z Submodule 'third_party/zstd' (https://github.com/facebook/zstd.git) registered for path 'third_party/zstd' 2023-01-11T20:54:39.6124964Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/android/libs/fbjni'... 2023-01-11T20:54:39.9238130Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/FP16'... 2023-01-11T20:54:40.1326121Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/FXdiv'... 2023-01-11T20:54:40.3485636Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/NNPACK'... 2023-01-11T20:54:40.6473291Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/QNNPACK'... 2023-01-11T20:54:40.9037091Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/VulkanMemoryAllocator'... 2023-01-11T20:54:43.0677910Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/XNNPACK'... 2023-01-11T20:54:49.4925703Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/benchmark'... 2023-01-11T20:54:49.9057776Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/cpuinfo'... 2023-01-11T20:54:50.4334527Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/cub'... 2023-01-11T20:54:52.8056088Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/cudnn_frontend'... 2023-01-11T20:54:53.9142440Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/cutlass'... 2023-01-11T20:54:55.0526168Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/eigen'... 2023-01-11T20:55:00.1753176Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm'... 2023-01-11T20:55:00.9180243Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/flatbuffers'... 2023-01-11T20:55:02.4967133Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fmt'... 2023-01-11T20:55:03.8123644Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/foxi'... 2023-01-11T20:55:04.6757348Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/gemmlowp/gemmlowp'... 2023-01-11T20:55:05.1790822Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/gloo'... 2023-01-11T20:55:05.5812674Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/googletest'... 2023-01-11T20:55:06.6611103Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ideep'... 2023-01-11T20:55:07.1141067Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ios-cmake'... 2023-01-11T20:55:07.3350663Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ittapi'... 2023-01-11T20:55:07.6195167Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/kineto'... 2023-01-11T20:55:08.9628181Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/nccl/nccl'... 2023-01-11T20:55:09.5486338Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/neon2sse'... 2023-01-11T20:55:09.9311302Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/nlohmann'... 2023-01-11T20:55:17.7378377Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx'... 2023-01-11T20:55:19.7276538Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt'... 2023-01-11T20:55:20.1940153Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/pocketfft'... 2023-01-11T20:55:20.4566185Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/protobuf'... 2023-01-11T20:55:26.0882674Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/psimd'... 2023-01-11T20:55:26.2841512Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/pthreadpool'... 2023-01-11T20:55:26.5333062Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/pybind11'... 2023-01-11T20:55:27.3508732Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/python-enum'... 2023-01-11T20:55:27.6151671Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/python-peachpy'... 2023-01-11T20:55:27.9610091Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/python-six'... 2023-01-11T20:55:28.2564074Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/sleef'... 2023-01-11T20:55:28.8193356Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tbb'... 2023-01-11T20:55:30.6438020Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe'... 2023-01-11T20:55:31.1120671Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/zstd'... 2023-01-11T20:55:33.4093214Z Submodule path 'android/libs/fbjni': checked out '7e1e1fe3858c63c251c637ae41a20de425dde96f' 2023-01-11T20:55:33.4191929Z Submodule path 'third_party/FP16': checked out '4dfe081cf6bcd15db339cf2680b9281b8451eeb3' 2023-01-11T20:55:33.4268758Z Submodule path 'third_party/FXdiv': checked out 'b408327ac2a15ec3e43352421954f5b1967701d1' 2023-01-11T20:55:33.4475768Z Submodule path 'third_party/NNPACK': checked out 'c07e3a0400713d546e0dea2d5466dd22ea389c73' 2023-01-11T20:55:33.4678018Z Submodule path 'third_party/QNNPACK': checked out '7d2a4e9931a82adc3814275b6219a03e24e36b4c' 2023-01-11T20:55:33.5003322Z Submodule path 'third_party/VulkanMemoryAllocator': checked out 'a6bfc237255a6bac1513f7c1ebde6d8aed6b5191' 2023-01-11T20:55:34.0538166Z Submodule path 'third_party/XNNPACK': checked out 'ae108ef49aa5623b896fc93d4298c49d1750d9ba' 2023-01-11T20:55:34.0729256Z Submodule path 'third_party/benchmark': checked out '0d98dba29d66e93259db7daa53a9327df767a415' 2023-01-11T20:55:34.1634356Z Submodule path 'third_party/cpuinfo': checked out '8ec7bd91ad0470e61cf38f618cc1f270dede599c' 2023-01-11T20:55:34.1950493Z Submodule path 'third_party/cub': checked out 'd106ddb991a56c3df1b6d51b2409e36ba8181ce4' 2023-01-11T20:55:34.4588175Z Submodule path 'third_party/cudnn_frontend': checked out '171a7a986f7fbd9ed71bd0cf3c7ad4f55843d6b3' 2023-01-11T20:55:34.8333940Z Submodule path 'third_party/cutlass': checked out 'b72cbf957df8cf84a6d0ff91c190ad51a9c1d24a' 2023-01-11T20:55:35.0579737Z Submodule path 'third_party/eigen': checked out '3147391d946bb4b6c68edd901f2add6ac1f31f8c' 2023-01-11T20:55:35.0997566Z Submodule path 'third_party/fbgemm': checked out '80d64206c07879fd4683be66873de7cefa1a0a71' 2023-01-11T20:55:35.1011094Z Submodule 'third_party/asmjit' (https://github.com/asmjit/asmjit.git) registered for path 'third_party/fbgemm/third_party/asmjit' 2023-01-11T20:55:35.1013154Z Submodule 'third_party/cpuinfo' (https://github.com/pytorch/cpuinfo) registered for path 'third_party/fbgemm/third_party/cpuinfo' 2023-01-11T20:55:35.1015776Z Submodule 'third_party/googletest' (https://github.com/google/googletest) registered for path 'third_party/fbgemm/third_party/googletest' 2023-01-11T20:55:35.1018333Z Submodule 'third_party/hipify_torch' (https://github.com/ROCmSoftwarePlatform/hipify_torch.git) registered for path 'third_party/fbgemm/third_party/hipify_torch' 2023-01-11T20:55:35.1039830Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm/third_party/asmjit'... 2023-01-11T20:55:36.0856865Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm/third_party/cpuinfo'... 2023-01-11T20:55:36.7168986Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm/third_party/googletest'... 2023-01-11T20:55:37.9232162Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/fbgemm/third_party/hipify_torch'... 2023-01-11T20:55:38.2462924Z Submodule path 'third_party/fbgemm/third_party/asmjit': checked out 'd3fbf7c9bc7c1d1365a94a45614b91c5a3706b81' 2023-01-11T20:55:38.3389672Z Submodule path 'third_party/fbgemm/third_party/cpuinfo': checked out 'ed8b86a253800bafdb7b25c5c399f91bff9cb1f3' 2023-01-11T20:55:38.3929636Z Submodule path 'third_party/fbgemm/third_party/googletest': checked out 'cbf019de22c8dd37b2108da35b2748fd702d1796' 2023-01-11T20:55:38.4028636Z Submodule path 'third_party/fbgemm/third_party/hipify_torch': checked out '1840658c184f3eeba787dae0f06c45756c1daaf5' 2023-01-11T20:55:38.4813851Z Submodule path 'third_party/flatbuffers': checked out 'd0cede9c90c5257537c293517a21376408b549fa' 2023-01-11T20:55:38.5150387Z Submodule path 'third_party/fmt': checked out '7bdf0628b1276379886c7f6dda2cef2b3b374f0b' 2023-01-11T20:55:38.5233117Z Submodule path 'third_party/foxi': checked out 'c278588e34e535f0bb8f00df3880d26928038cad' 2023-01-11T20:55:38.5593785Z Submodule path 'third_party/gemmlowp/gemmlowp': checked out '3fb5c176c17c765a3492cd2f0321b0dab712f350' 2023-01-11T20:55:38.5808806Z Submodule path 'third_party/gloo': checked out '4a5e339b764261d20fc409071dc7a8b8989aa195' 2023-01-11T20:55:38.6224636Z Submodule path 'third_party/googletest': checked out 'e2239ee6043f73722e7aa812a459f54a28552929' 2023-01-11T20:55:38.6330636Z Submodule path 'third_party/ideep': checked out 'e533c771a1e75a1c225c14b2261eefa62681d9e6' 2023-01-11T20:55:38.6343117Z Submodule 'mkl-dnn' (https://github.com/intel/mkl-dnn.git) registered for path 'third_party/ideep/mkl-dnn' 2023-01-11T20:55:38.6364491Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ideep/mkl-dnn'... 2023-01-11T20:55:46.9229275Z Submodule path 'third_party/ideep/mkl-dnn': checked out '404ad76ee633c939d705eb583ffe50a806969d5e' 2023-01-11T20:55:46.9245033Z Submodule 'third_party/oneDNN' (https://github.com/oneapi-src/oneDNN.git) registered for path 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2023-01-11T20:55:46.9268181Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/ideep/mkl-dnn/third_party/oneDNN'... 2023-01-11T20:55:55.8977268Z Submodule path 'third_party/ideep/mkl-dnn/third_party/oneDNN': checked out 'fbec3e25a559ee252022ae066817b204e106a6ba' 2023-01-11T20:55:55.9070406Z Submodule path 'third_party/ios-cmake': checked out '8abaed637d56f1337d6e1d2c4026e25c1eade724' 2023-01-11T20:55:55.9201720Z Submodule path 'third_party/ittapi': checked out '5b8a7d7422611c3a0d799fb5fc5dd4abfae35b42' 2023-01-11T20:55:56.0049860Z Submodule path 'third_party/kineto': checked out '6c1629809068efd78a8d56b4aa479c7ec49ae562' 2023-01-11T20:55:56.0063836Z Submodule 'libkineto/third_party/fmt' (https://github.com/fmtlib/fmt.git) registered for path 'third_party/kineto/libkineto/third_party/fmt' 2023-01-11T20:55:56.0065762Z Submodule 'libkineto/third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/kineto/libkineto/third_party/googletest' 2023-01-11T20:55:56.0088796Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/kineto/libkineto/third_party/fmt'... 2023-01-11T20:55:57.2008916Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/kineto/libkineto/third_party/googletest'... 2023-01-11T20:55:58.2710886Z Submodule path 'third_party/kineto/libkineto/third_party/fmt': checked out '2591ab91c3898c9f6544fff04660276537d32ffd' 2023-01-11T20:55:58.3212314Z Submodule path 'third_party/kineto/libkineto/third_party/googletest': checked out '7aca84427f224eeed3144123d5230d5871e93347' 2023-01-11T20:55:58.3406937Z Submodule path 'third_party/nccl/nccl': checked out 'f89fd4777d2ef9229c039ff750ae21da01626f52' 2023-01-11T20:55:58.3533496Z Submodule path 'third_party/neon2sse': checked out '97a126f08ce318023be604d03f88bf0820a9464a' 2023-01-11T20:55:58.4512861Z Submodule path 'third_party/nlohmann': checked out '87cda1d6646592ac5866dc703c8e1839046a6806' 2023-01-11T20:55:58.6780250Z Submodule path 'third_party/onnx': checked out 'f7ee1ac60d06abe8e26c9b6bbe1e3db5286b614b' 2023-01-11T20:55:58.6807345Z Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/onnx/third_party/benchmark' 2023-01-11T20:55:58.6809233Z Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/onnx/third_party/pybind11' 2023-01-11T20:55:58.6833437Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx/third_party/benchmark'... 2023-01-11T20:55:59.2025140Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx/third_party/pybind11'... 2023-01-11T20:56:00.0470069Z Submodule path 'third_party/onnx/third_party/benchmark': checked out '0d98dba29d66e93259db7daa53a9327df767a415' 2023-01-11T20:56:00.0749023Z Submodule path 'third_party/onnx/third_party/pybind11': checked out 'ffa346860b306c9bbfb341aed9c14c067751feb8' 2023-01-11T20:56:00.0883608Z Submodule path 'third_party/onnx-tensorrt': checked out 'c153211418a7c57ce071d9ce2a41f8d1c85a878f' 2023-01-11T20:56:00.0896050Z Submodule 'third_party/onnx' (https://github.com/onnx/onnx.git) registered for path 'third_party/onnx-tensorrt/third_party/onnx' 2023-01-11T20:56:00.0917034Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt/third_party/onnx'... 2023-01-11T20:56:01.9924656Z Submodule path 'third_party/onnx-tensorrt/third_party/onnx': checked out '765f5ee823a67a866f4bd28a9860e81f3c811ce8' 2023-01-11T20:56:01.9944213Z Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2023-01-11T20:56:01.9946272Z Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2023-01-11T20:56:01.9969612Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark'... 2023-01-11T20:56:02.5334664Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11'... 2023-01-11T20:56:03.4747106Z Submodule path 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark': checked out 'e776aa0275e293707b6a0901e0e8d8a8a3679508' 2023-01-11T20:56:03.5350681Z Submodule path 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11': checked out 'a1041190c8b8ff0cd9e2f0752248ad5e3789ea0c' 2023-01-11T20:56:03.5363417Z Submodule 'tools/clang' (https://github.com/wjakob/clang-cindex-python3) registered for path 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2023-01-11T20:56:03.5385285Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang'... 2023-01-11T20:56:03.9161978Z Submodule path 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang': checked out '6a00cbc4a9b8e68b71caf7f774b3f9c753ae84d5' 2023-01-11T20:56:03.9243504Z Submodule path 'third_party/pocketfft': checked out 'ea778e37710c07723435b1be58235996d1d43a5a' 2023-01-11T20:56:04.1593151Z Submodule path 'third_party/protobuf': checked out 'd1eca4e4b421cd2997495c4b4e65cea6be4e9b8a' 2023-01-11T20:56:04.1611067Z Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/protobuf/third_party/benchmark' 2023-01-11T20:56:04.1613127Z Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/protobuf/third_party/googletest' 2023-01-11T20:56:04.1636491Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/protobuf/third_party/benchmark'... 2023-01-11T20:56:04.6178668Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/protobuf/third_party/googletest'... 2023-01-11T20:56:05.6358120Z Submodule path 'third_party/protobuf/third_party/benchmark': checked out '5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8' 2023-01-11T20:56:05.6983730Z Submodule path 'third_party/protobuf/third_party/googletest': checked out '5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081' 2023-01-11T20:56:05.7061474Z Submodule path 'third_party/psimd': checked out '072586a71b55b7f8c584153d223e95687148a900' 2023-01-11T20:56:05.7160170Z Submodule path 'third_party/pthreadpool': checked out 'a134dd5d4cee80cce15db81a72e7f929d71dd413' 2023-01-11T20:56:05.7453856Z Submodule path 'third_party/pybind11': checked out '80dc998efced8ceb2be59756668a7e90e8bef917' 2023-01-11T20:56:05.7533265Z Submodule path 'third_party/python-enum': checked out '4cfedc426c4e2fc52e3f5c2b4297e15ed8d6b8c7' 2023-01-11T20:56:05.7795793Z Submodule path 'third_party/python-peachpy': checked out 'f45429b087dd7d5bc78bb40dc7cf06425c252d67' 2023-01-11T20:56:05.7880822Z Submodule path 'third_party/python-six': checked out '15e31431af97e5e64b80af0a3f598d382bcdd49a' 2023-01-11T20:56:05.8279337Z Submodule path 'third_party/sleef': checked out 'e0a003ee838b75d11763aa9c3ef17bf71a725bff' 2023-01-11T20:56:05.9265536Z Submodule path 'third_party/tbb': checked out 'a51a90bc609bb73db8ea13841b5cf7aa4344d4a9' 2023-01-11T20:56:05.9500038Z Submodule path 'third_party/tensorpipe': checked out '52791a2fd214b2a9dc5759d36725909c1daa7f2e' 2023-01-11T20:56:05.9512774Z Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/tensorpipe/third_party/googletest' 2023-01-11T20:56:05.9514714Z Submodule 'third_party/libnop' (https://github.com/google/libnop.git) registered for path 'third_party/tensorpipe/third_party/libnop' 2023-01-11T20:56:05.9516973Z Submodule 'third_party/libuv' (https://github.com/libuv/libuv.git) registered for path 'third_party/tensorpipe/third_party/libuv' 2023-01-11T20:56:05.9519190Z Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/tensorpipe/third_party/pybind11' 2023-01-11T20:56:05.9541962Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/googletest'... 2023-01-11T20:56:07.2401033Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/libnop'... 2023-01-11T20:56:07.5594942Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/libuv'... 2023-01-11T20:56:08.8644322Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/pybind11'... 2023-01-11T20:56:09.8480481Z Submodule path 'third_party/tensorpipe/third_party/googletest': checked out 'aee0f9d9b5b87796ee8a0ab26b7587ec30e8858e' 2023-01-11T20:56:09.8612825Z Submodule path 'third_party/tensorpipe/third_party/libnop': checked out '910b55815be16109f04f4180e9adee14fb4ce281' 2023-01-11T20:56:09.9186435Z Submodule path 'third_party/tensorpipe/third_party/libuv': checked out '1dff88e5161cba5c59276d2070d2e304e4dcb242' 2023-01-11T20:56:09.9435250Z Submodule path 'third_party/tensorpipe/third_party/pybind11': checked out 'a23996fce38ff6ccfbcdc09f1e63f2c4be5ea2ef' 2023-01-11T20:56:09.9448400Z Submodule 'tools/clang' (https://github.com/wjakob/clang-cindex-python3) registered for path 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2023-01-11T20:56:09.9470330Z Cloning into '/home/ec2-user/actions-runner/_work/pytorch/pytorch/third_party/tensorpipe/third_party/pybind11/tools/clang'... 2023-01-11T20:56:10.1724129Z Submodule path 'third_party/tensorpipe/third_party/pybind11/tools/clang': checked out '6a00cbc4a9b8e68b71caf7f774b3f9c753ae84d5' 2023-01-11T20:56:10.2958315Z Submodule path 'third_party/zstd': checked out 'aec56a52fbab207fc639a1937d1e708a282edca8' 2023-01-11T20:56:10.2984626Z [command]/usr/bin/git submodule foreach --recursive git config --local gc.auto 0 2023-01-11T20:56:10.3241017Z Entering 'android/libs/fbjni' 2023-01-11T20:56:10.3275726Z Entering 'third_party/FP16' 2023-01-11T20:56:10.3310932Z Entering 'third_party/FXdiv' 2023-01-11T20:56:10.3345180Z Entering 'third_party/NNPACK' 2023-01-11T20:56:10.3379352Z Entering 'third_party/QNNPACK' 2023-01-11T20:56:10.3413256Z Entering 'third_party/VulkanMemoryAllocator' 2023-01-11T20:56:10.3447760Z Entering 'third_party/XNNPACK' 2023-01-11T20:56:10.3492252Z Entering 'third_party/benchmark' 2023-01-11T20:56:10.3527047Z Entering 'third_party/cpuinfo' 2023-01-11T20:56:10.3562655Z Entering 'third_party/cub' 2023-01-11T20:56:10.3596786Z Entering 'third_party/cudnn_frontend' 2023-01-11T20:56:10.3636601Z Entering 'third_party/cutlass' 2023-01-11T20:56:10.3678293Z Entering 'third_party/eigen' 2023-01-11T20:56:10.3716648Z Entering 'third_party/fbgemm' 2023-01-11T20:56:10.3750822Z Entering 'third_party/fbgemm/third_party/asmjit' 2023-01-11T20:56:10.3784668Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2023-01-11T20:56:10.3817801Z Entering 'third_party/fbgemm/third_party/googletest' 2023-01-11T20:56:10.3850950Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2023-01-11T20:56:10.3885555Z Entering 'third_party/flatbuffers' 2023-01-11T20:56:10.3921806Z Entering 'third_party/fmt' 2023-01-11T20:56:10.3956123Z Entering 'third_party/foxi' 2023-01-11T20:56:10.3991132Z Entering 'third_party/gemmlowp/gemmlowp' 2023-01-11T20:56:10.4024996Z Entering 'third_party/gloo' 2023-01-11T20:56:10.4060205Z Entering 'third_party/googletest' 2023-01-11T20:56:10.4093968Z Entering 'third_party/ideep' 2023-01-11T20:56:10.4127451Z Entering 'third_party/ideep/mkl-dnn' 2023-01-11T20:56:10.4163272Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2023-01-11T20:56:10.4202765Z Entering 'third_party/ios-cmake' 2023-01-11T20:56:10.4236646Z Entering 'third_party/ittapi' 2023-01-11T20:56:10.4271232Z Entering 'third_party/kineto' 2023-01-11T20:56:10.4305655Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2023-01-11T20:56:10.4338858Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2023-01-11T20:56:10.4374900Z Entering 'third_party/nccl/nccl' 2023-01-11T20:56:10.4408375Z Entering 'third_party/neon2sse' 2023-01-11T20:56:10.4442107Z Entering 'third_party/nlohmann' 2023-01-11T20:56:10.4477408Z Entering 'third_party/onnx' 2023-01-11T20:56:10.4523169Z Entering 'third_party/onnx/third_party/benchmark' 2023-01-11T20:56:10.4557222Z Entering 'third_party/onnx/third_party/pybind11' 2023-01-11T20:56:10.4592816Z Entering 'third_party/onnx-tensorrt' 2023-01-11T20:56:10.4625996Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2023-01-11T20:56:10.4663942Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2023-01-11T20:56:10.4697582Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2023-01-11T20:56:10.4730597Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2023-01-11T20:56:10.4768075Z Entering 'third_party/pocketfft' 2023-01-11T20:56:10.4802129Z Entering 'third_party/protobuf' 2023-01-11T20:56:10.4838970Z Entering 'third_party/protobuf/third_party/benchmark' 2023-01-11T20:56:10.4873906Z Entering 'third_party/protobuf/third_party/googletest' 2023-01-11T20:56:10.4910625Z Entering 'third_party/psimd' 2023-01-11T20:56:10.4944313Z Entering 'third_party/pthreadpool' 2023-01-11T20:56:10.4976917Z Entering 'third_party/pybind11' 2023-01-11T20:56:10.5010162Z Entering 'third_party/python-enum' 2023-01-11T20:56:10.5044636Z Entering 'third_party/python-peachpy' 2023-01-11T20:56:10.5079476Z Entering 'third_party/python-six' 2023-01-11T20:56:10.5112324Z Entering 'third_party/sleef' 2023-01-11T20:56:10.5145886Z Entering 'third_party/tbb' 2023-01-11T20:56:10.5181229Z Entering 'third_party/tensorpipe' 2023-01-11T20:56:10.5216371Z Entering 'third_party/tensorpipe/third_party/googletest' 2023-01-11T20:56:10.5248941Z Entering 'third_party/tensorpipe/third_party/libnop' 2023-01-11T20:56:10.5281824Z Entering 'third_party/tensorpipe/third_party/libuv' 2023-01-11T20:56:10.5315319Z Entering 'third_party/tensorpipe/third_party/pybind11' 2023-01-11T20:56:10.5348875Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2023-01-11T20:56:10.5384526Z Entering 'third_party/zstd' 2023-01-11T20:56:10.5425714Z ##[endgroup] 2023-01-11T20:56:10.5426998Z ##[group]Persisting credentials for submodules 2023-01-11T20:56:10.5431403Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'url\.https\:\/\/github\.com\/\.insteadOf' && git config --local --unset-all 'url.https://github.com/.insteadOf' || : 2023-01-11T20:56:10.5684800Z Entering 'android/libs/fbjni' 2023-01-11T20:56:10.5718567Z Entering 'third_party/FP16' 2023-01-11T20:56:10.5753883Z Entering 'third_party/FXdiv' 2023-01-11T20:56:10.5787170Z Entering 'third_party/NNPACK' 2023-01-11T20:56:10.5820652Z Entering 'third_party/QNNPACK' 2023-01-11T20:56:10.5853824Z Entering 'third_party/VulkanMemoryAllocator' 2023-01-11T20:56:10.5887376Z Entering 'third_party/XNNPACK' 2023-01-11T20:56:10.5930432Z Entering 'third_party/benchmark' 2023-01-11T20:56:10.5964663Z Entering 'third_party/cpuinfo' 2023-01-11T20:56:10.5997884Z Entering 'third_party/cub' 2023-01-11T20:56:10.6032500Z Entering 'third_party/cudnn_frontend' 2023-01-11T20:56:10.6071229Z Entering 'third_party/cutlass' 2023-01-11T20:56:10.6112866Z Entering 'third_party/eigen' 2023-01-11T20:56:10.6148606Z Entering 'third_party/fbgemm' 2023-01-11T20:56:10.6182292Z Entering 'third_party/fbgemm/third_party/asmjit' 2023-01-11T20:56:10.6215251Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2023-01-11T20:56:10.6248533Z Entering 'third_party/fbgemm/third_party/googletest' 2023-01-11T20:56:10.6281245Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2023-01-11T20:56:10.6316846Z Entering 'third_party/flatbuffers' 2023-01-11T20:56:10.6353222Z Entering 'third_party/fmt' 2023-01-11T20:56:10.6386680Z Entering 'third_party/foxi' 2023-01-11T20:56:10.6419651Z Entering 'third_party/gemmlowp/gemmlowp' 2023-01-11T20:56:10.6452981Z Entering 'third_party/gloo' 2023-01-11T20:56:10.6487239Z Entering 'third_party/googletest' 2023-01-11T20:56:10.6520957Z Entering 'third_party/ideep' 2023-01-11T20:56:10.6553296Z Entering 'third_party/ideep/mkl-dnn' 2023-01-11T20:56:10.6589472Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2023-01-11T20:56:10.6629749Z Entering 'third_party/ios-cmake' 2023-01-11T20:56:10.6663746Z Entering 'third_party/ittapi' 2023-01-11T20:56:10.6697492Z Entering 'third_party/kineto' 2023-01-11T20:56:10.6730919Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2023-01-11T20:56:10.6763932Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2023-01-11T20:56:10.6797814Z Entering 'third_party/nccl/nccl' 2023-01-11T20:56:10.6832264Z Entering 'third_party/neon2sse' 2023-01-11T20:56:10.6865611Z Entering 'third_party/nlohmann' 2023-01-11T20:56:10.6899795Z Entering 'third_party/onnx' 2023-01-11T20:56:10.6943573Z Entering 'third_party/onnx/third_party/benchmark' 2023-01-11T20:56:10.6977146Z Entering 'third_party/onnx/third_party/pybind11' 2023-01-11T20:56:10.7011950Z Entering 'third_party/onnx-tensorrt' 2023-01-11T20:56:10.7047481Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2023-01-11T20:56:10.7084590Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2023-01-11T20:56:10.7117609Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2023-01-11T20:56:10.7150781Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2023-01-11T20:56:10.7188403Z Entering 'third_party/pocketfft' 2023-01-11T20:56:10.7221458Z Entering 'third_party/protobuf' 2023-01-11T20:56:10.7257802Z Entering 'third_party/protobuf/third_party/benchmark' 2023-01-11T20:56:10.7290580Z Entering 'third_party/protobuf/third_party/googletest' 2023-01-11T20:56:10.7325309Z Entering 'third_party/psimd' 2023-01-11T20:56:10.7358479Z Entering 'third_party/pthreadpool' 2023-01-11T20:56:10.7391319Z Entering 'third_party/pybind11' 2023-01-11T20:56:10.7424823Z Entering 'third_party/python-enum' 2023-01-11T20:56:10.7458215Z Entering 'third_party/python-peachpy' 2023-01-11T20:56:10.7491045Z Entering 'third_party/python-six' 2023-01-11T20:56:10.7524155Z Entering 'third_party/sleef' 2023-01-11T20:56:10.7559087Z Entering 'third_party/tbb' 2023-01-11T20:56:10.7593799Z Entering 'third_party/tensorpipe' 2023-01-11T20:56:10.7627386Z Entering 'third_party/tensorpipe/third_party/googletest' 2023-01-11T20:56:10.7660060Z Entering 'third_party/tensorpipe/third_party/libnop' 2023-01-11T20:56:10.7693106Z Entering 'third_party/tensorpipe/third_party/libuv' 2023-01-11T20:56:10.7725626Z Entering 'third_party/tensorpipe/third_party/pybind11' 2023-01-11T20:56:10.7758070Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2023-01-11T20:56:10.7794208Z Entering 'third_party/zstd' 2023-01-11T20:56:10.7838402Z [command]/usr/bin/git submodule foreach --recursive git config --local 'http.https://github.com/.extraheader' 'AUTHORIZATION: basic ***' && git config --local --show-origin --name-only --get-regexp remote.origin.url 2023-01-11T20:56:10.8092673Z Entering 'android/libs/fbjni' 2023-01-11T20:56:10.8124119Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/android/libs/fbjni/config remote.origin.url 2023-01-11T20:56:10.8138944Z Entering 'third_party/FP16' 2023-01-11T20:56:10.8170289Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK_deps/FP16/config remote.origin.url 2023-01-11T20:56:10.8183844Z Entering 'third_party/FXdiv' 2023-01-11T20:56:10.8216495Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK_deps/FXdiv/config remote.origin.url 2023-01-11T20:56:10.8230197Z Entering 'third_party/NNPACK' 2023-01-11T20:56:10.8261839Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK/config remote.origin.url 2023-01-11T20:56:10.8276085Z Entering 'third_party/QNNPACK' 2023-01-11T20:56:10.8309699Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/QNNPACK/config remote.origin.url 2023-01-11T20:56:10.8324078Z Entering 'third_party/VulkanMemoryAllocator' 2023-01-11T20:56:10.8355544Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/VulkanMemoryAllocator/config remote.origin.url 2023-01-11T20:56:10.8369224Z Entering 'third_party/XNNPACK' 2023-01-11T20:56:10.8401826Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/XNNPACK/config remote.origin.url 2023-01-11T20:56:10.8426450Z Entering 'third_party/benchmark' 2023-01-11T20:56:10.8458819Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/benchmark/config remote.origin.url 2023-01-11T20:56:10.8472958Z Entering 'third_party/cpuinfo' 2023-01-11T20:56:10.8504844Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/cpuinfo/config remote.origin.url 2023-01-11T20:56:10.8519662Z Entering 'third_party/cub' 2023-01-11T20:56:10.8551712Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/cub/config remote.origin.url 2023-01-11T20:56:10.8566563Z Entering 'third_party/cudnn_frontend' 2023-01-11T20:56:10.8598233Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/cudnn_frontend/config remote.origin.url 2023-01-11T20:56:10.8618912Z Entering 'third_party/cutlass' 2023-01-11T20:56:10.8650254Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/cutlass/config remote.origin.url 2023-01-11T20:56:10.8672055Z Entering 'third_party/eigen' 2023-01-11T20:56:10.8704168Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/eigen/config remote.origin.url 2023-01-11T20:56:10.8720486Z Entering 'third_party/fbgemm' 2023-01-11T20:56:10.8752431Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/config remote.origin.url 2023-01-11T20:56:10.8766476Z Entering 'third_party/fbgemm/third_party/asmjit' 2023-01-11T20:56:10.8799737Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/modules/third_party/asmjit/config remote.origin.url 2023-01-11T20:56:10.8812442Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2023-01-11T20:56:10.8852305Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/modules/third_party/cpuinfo/config remote.origin.url 2023-01-11T20:56:10.8867279Z Entering 'third_party/fbgemm/third_party/googletest' 2023-01-11T20:56:10.8898919Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/modules/third_party/googletest/config remote.origin.url 2023-01-11T20:56:10.8912350Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2023-01-11T20:56:10.8945306Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fbgemm/modules/third_party/hipify_torch/config remote.origin.url 2023-01-11T20:56:10.8959630Z Entering 'third_party/flatbuffers' 2023-01-11T20:56:10.8990978Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/flatbuffers/config remote.origin.url 2023-01-11T20:56:10.9006811Z Entering 'third_party/fmt' 2023-01-11T20:56:10.9038016Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/fmt/config remote.origin.url 2023-01-11T20:56:10.9052197Z Entering 'third_party/foxi' 2023-01-11T20:56:10.9086887Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/foxi/config remote.origin.url 2023-01-11T20:56:10.9101944Z Entering 'third_party/gemmlowp/gemmlowp' 2023-01-11T20:56:10.9133141Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/gemmlowp/gemmlowp/config remote.origin.url 2023-01-11T20:56:10.9147038Z Entering 'third_party/gloo' 2023-01-11T20:56:10.9178949Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/gloo/config remote.origin.url 2023-01-11T20:56:10.9192871Z Entering 'third_party/googletest' 2023-01-11T20:56:10.9224448Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/googletest/config remote.origin.url 2023-01-11T20:56:10.9239683Z Entering 'third_party/ideep' 2023-01-11T20:56:10.9271056Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ideep/config remote.origin.url 2023-01-11T20:56:10.9283988Z Entering 'third_party/ideep/mkl-dnn' 2023-01-11T20:56:10.9316623Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ideep/modules/mkl-dnn/config remote.origin.url 2023-01-11T20:56:10.9333265Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2023-01-11T20:56:10.9365511Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ideep/modules/mkl-dnn/modules/third_party/oneDNN/config remote.origin.url 2023-01-11T20:56:10.9386821Z Entering 'third_party/ios-cmake' 2023-01-11T20:56:10.9417479Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ios-cmake/config remote.origin.url 2023-01-11T20:56:10.9430998Z Entering 'third_party/ittapi' 2023-01-11T20:56:10.9462307Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/ittapi/config remote.origin.url 2023-01-11T20:56:10.9476332Z Entering 'third_party/kineto' 2023-01-11T20:56:10.9508042Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/kineto/config remote.origin.url 2023-01-11T20:56:10.9522075Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2023-01-11T20:56:10.9552914Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/kineto/modules/libkineto/third_party/fmt/config remote.origin.url 2023-01-11T20:56:10.9567000Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2023-01-11T20:56:10.9597880Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/kineto/modules/libkineto/third_party/googletest/config remote.origin.url 2023-01-11T20:56:10.9612982Z Entering 'third_party/nccl/nccl' 2023-01-11T20:56:10.9644740Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/nccl/nccl/config remote.origin.url 2023-01-11T20:56:10.9659550Z Entering 'third_party/neon2sse' 2023-01-11T20:56:10.9691234Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/neon2sse/config remote.origin.url 2023-01-11T20:56:10.9705148Z Entering 'third_party/nlohmann' 2023-01-11T20:56:10.9736781Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/nlohmann/config remote.origin.url 2023-01-11T20:56:10.9752041Z Entering 'third_party/onnx' 2023-01-11T20:56:10.9783499Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx/config remote.origin.url 2023-01-11T20:56:10.9808945Z Entering 'third_party/onnx/third_party/benchmark' 2023-01-11T20:56:10.9841426Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx/modules/third_party/benchmark/config remote.origin.url 2023-01-11T20:56:10.9856023Z Entering 'third_party/onnx/third_party/pybind11' 2023-01-11T20:56:10.9887588Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx/modules/third_party/pybind11/config remote.origin.url 2023-01-11T20:56:10.9904255Z Entering 'third_party/onnx-tensorrt' 2023-01-11T20:56:10.9935668Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx-tensorrt/config remote.origin.url 2023-01-11T20:56:10.9949258Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2023-01-11T20:56:10.9981559Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx-tensorrt/modules/third_party/onnx/config remote.origin.url 2023-01-11T20:56:10.9999267Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2023-01-11T20:56:11.0031045Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx-tensorrt/modules/third_party/onnx/modules/third_party/benchmark/config remote.origin.url 2023-01-11T20:56:11.0045096Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2023-01-11T20:56:11.0078008Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx-tensorrt/modules/third_party/onnx/modules/third_party/pybind11/config remote.origin.url 2023-01-11T20:56:11.0091481Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2023-01-11T20:56:11.0123005Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/onnx-tensorrt/modules/third_party/onnx/modules/third_party/pybind11/modules/tools/clang/config remote.origin.url 2023-01-11T20:56:11.0141140Z Entering 'third_party/pocketfft' 2023-01-11T20:56:11.0172636Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/pocketfft/config remote.origin.url 2023-01-11T20:56:11.0186982Z Entering 'third_party/protobuf' 2023-01-11T20:56:11.0217990Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/protobuf/config remote.origin.url 2023-01-11T20:56:11.0235380Z Entering 'third_party/protobuf/third_party/benchmark' 2023-01-11T20:56:11.0266582Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/protobuf/modules/third_party/benchmark/config remote.origin.url 2023-01-11T20:56:11.0280389Z Entering 'third_party/protobuf/third_party/googletest' 2023-01-11T20:56:11.0311688Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/protobuf/modules/third_party/googletest/config remote.origin.url 2023-01-11T20:56:11.0327495Z Entering 'third_party/psimd' 2023-01-11T20:56:11.0358664Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK_deps/psimd/config remote.origin.url 2023-01-11T20:56:11.0403207Z Entering 'third_party/pthreadpool' 2023-01-11T20:56:11.0405136Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/NNPACK_deps/pthreadpool/config remote.origin.url 2023-01-11T20:56:11.0419158Z Entering 'third_party/pybind11' 2023-01-11T20:56:11.0450542Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/pybind11/config remote.origin.url 2023-01-11T20:56:11.0465243Z Entering 'third_party/python-enum' 2023-01-11T20:56:11.0496619Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/python-enum/config remote.origin.url 2023-01-11T20:56:11.0510478Z Entering 'third_party/python-peachpy' 2023-01-11T20:56:11.0543150Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/python-peachpy/config remote.origin.url 2023-01-11T20:56:11.0557698Z Entering 'third_party/python-six' 2023-01-11T20:56:11.0588808Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/python-six/config remote.origin.url 2023-01-11T20:56:11.0602612Z Entering 'third_party/sleef' 2023-01-11T20:56:11.0633573Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/sleef/config remote.origin.url 2023-01-11T20:56:11.0648096Z Entering 'third_party/tbb' 2023-01-11T20:56:11.0679931Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tbb/config remote.origin.url 2023-01-11T20:56:11.0696090Z Entering 'third_party/tensorpipe' 2023-01-11T20:56:11.0727006Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/config remote.origin.url 2023-01-11T20:56:11.0741775Z Entering 'third_party/tensorpipe/third_party/googletest' 2023-01-11T20:56:11.0772465Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/googletest/config remote.origin.url 2023-01-11T20:56:11.0785932Z Entering 'third_party/tensorpipe/third_party/libnop' 2023-01-11T20:56:11.0817384Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/libnop/config remote.origin.url 2023-01-11T20:56:11.0830902Z Entering 'third_party/tensorpipe/third_party/libuv' 2023-01-11T20:56:11.0861852Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/libuv/config remote.origin.url 2023-01-11T20:56:11.0876092Z Entering 'third_party/tensorpipe/third_party/pybind11' 2023-01-11T20:56:11.0906909Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/pybind11/config remote.origin.url 2023-01-11T20:56:11.0920230Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2023-01-11T20:56:11.0951077Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/tensorpipe/modules/third_party/pybind11/modules/tools/clang/config remote.origin.url 2023-01-11T20:56:11.0967248Z Entering 'third_party/zstd' 2023-01-11T20:56:11.0998448Z file:/home/ec2-user/actions-runner/_work/pytorch/pytorch/.git/modules/third_party/zstd/config remote.origin.url 2023-01-11T20:56:11.1596649Z [command]/usr/bin/git submodule foreach --recursive git config --local --add 'url.https://github.com/.insteadOf' 'git@github.com:' 2023-01-11T20:56:11.1856118Z Entering 'android/libs/fbjni' 2023-01-11T20:56:11.1891265Z Entering 'third_party/FP16' 2023-01-11T20:56:11.1925832Z Entering 'third_party/FXdiv' 2023-01-11T20:56:11.1960510Z Entering 'third_party/NNPACK' 2023-01-11T20:56:11.1996044Z Entering 'third_party/QNNPACK' 2023-01-11T20:56:11.2031019Z Entering 'third_party/VulkanMemoryAllocator' 2023-01-11T20:56:11.2066514Z Entering 'third_party/XNNPACK' 2023-01-11T20:56:11.2111348Z Entering 'third_party/benchmark' 2023-01-11T20:56:11.2145914Z Entering 'third_party/cpuinfo' 2023-01-11T20:56:11.2181159Z Entering 'third_party/cub' 2023-01-11T20:56:11.2215595Z Entering 'third_party/cudnn_frontend' 2023-01-11T20:56:11.2254282Z Entering 'third_party/cutlass' 2023-01-11T20:56:11.2311943Z Entering 'third_party/eigen' 2023-01-11T20:56:11.2348550Z Entering 'third_party/fbgemm' 2023-01-11T20:56:11.2383942Z Entering 'third_party/fbgemm/third_party/asmjit' 2023-01-11T20:56:11.2418503Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2023-01-11T20:56:11.2452112Z Entering 'third_party/fbgemm/third_party/googletest' 2023-01-11T20:56:11.2485775Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2023-01-11T20:56:11.2520018Z Entering 'third_party/flatbuffers' 2023-01-11T20:56:11.2556838Z Entering 'third_party/fmt' 2023-01-11T20:56:11.2591630Z Entering 'third_party/foxi' 2023-01-11T20:56:11.2625513Z Entering 'third_party/gemmlowp/gemmlowp' 2023-01-11T20:56:11.2660931Z Entering 'third_party/gloo' 2023-01-11T20:56:11.2695576Z Entering 'third_party/googletest' 2023-01-11T20:56:11.2729529Z Entering 'third_party/ideep' 2023-01-11T20:56:11.2763112Z Entering 'third_party/ideep/mkl-dnn' 2023-01-11T20:56:11.2799569Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2023-01-11T20:56:11.2840839Z Entering 'third_party/ios-cmake' 2023-01-11T20:56:11.2876230Z Entering 'third_party/ittapi' 2023-01-11T20:56:11.2911153Z Entering 'third_party/kineto' 2023-01-11T20:56:11.2947208Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2023-01-11T20:56:11.2981263Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2023-01-11T20:56:11.3017763Z Entering 'third_party/nccl/nccl' 2023-01-11T20:56:11.3052159Z Entering 'third_party/neon2sse' 2023-01-11T20:56:11.3086496Z Entering 'third_party/nlohmann' 2023-01-11T20:56:11.3122149Z Entering 'third_party/onnx' 2023-01-11T20:56:11.3167796Z Entering 'third_party/onnx/third_party/benchmark' 2023-01-11T20:56:11.3202638Z Entering 'third_party/onnx/third_party/pybind11' 2023-01-11T20:56:11.3238434Z Entering 'third_party/onnx-tensorrt' 2023-01-11T20:56:11.3273507Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2023-01-11T20:56:11.3311109Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2023-01-11T20:56:11.3345209Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2023-01-11T20:56:11.3379037Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2023-01-11T20:56:11.3417525Z Entering 'third_party/pocketfft' 2023-01-11T20:56:11.3451723Z Entering 'third_party/protobuf' 2023-01-11T20:56:11.3489422Z Entering 'third_party/protobuf/third_party/benchmark' 2023-01-11T20:56:11.3523595Z Entering 'third_party/protobuf/third_party/googletest' 2023-01-11T20:56:11.3559425Z Entering 'third_party/psimd' 2023-01-11T20:56:11.3594292Z Entering 'third_party/pthreadpool' 2023-01-11T20:56:11.3630024Z Entering 'third_party/pybind11' 2023-01-11T20:56:11.3666779Z Entering 'third_party/python-enum' 2023-01-11T20:56:11.3701106Z Entering 'third_party/python-peachpy' 2023-01-11T20:56:11.3736734Z Entering 'third_party/python-six' 2023-01-11T20:56:11.3771005Z Entering 'third_party/sleef' 2023-01-11T20:56:11.3806518Z Entering 'third_party/tbb' 2023-01-11T20:56:11.3844337Z Entering 'third_party/tensorpipe' 2023-01-11T20:56:11.3878795Z Entering 'third_party/tensorpipe/third_party/googletest' 2023-01-11T20:56:11.3913786Z Entering 'third_party/tensorpipe/third_party/libnop' 2023-01-11T20:56:11.3947685Z Entering 'third_party/tensorpipe/third_party/libuv' 2023-01-11T20:56:11.3981621Z Entering 'third_party/tensorpipe/third_party/pybind11' 2023-01-11T20:56:11.4015478Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2023-01-11T20:56:11.4051632Z Entering 'third_party/zstd' 2023-01-11T20:56:11.4096814Z [command]/usr/bin/git submodule foreach --recursive git config --local --add 'url.https://github.com/.insteadOf' 'org-21003710@github.com:' 2023-01-11T20:56:11.4353180Z Entering 'android/libs/fbjni' 2023-01-11T20:56:11.4386756Z Entering 'third_party/FP16' 2023-01-11T20:56:11.4421149Z Entering 'third_party/FXdiv' 2023-01-11T20:56:11.4455962Z Entering 'third_party/NNPACK' 2023-01-11T20:56:11.4489825Z Entering 'third_party/QNNPACK' 2023-01-11T20:56:11.4524862Z Entering 'third_party/VulkanMemoryAllocator' 2023-01-11T20:56:11.4559947Z Entering 'third_party/XNNPACK' 2023-01-11T20:56:11.4604193Z Entering 'third_party/benchmark' 2023-01-11T20:56:11.4639942Z Entering 'third_party/cpuinfo' 2023-01-11T20:56:11.4674466Z Entering 'third_party/cub' 2023-01-11T20:56:11.4709637Z Entering 'third_party/cudnn_frontend' 2023-01-11T20:56:11.4748699Z Entering 'third_party/cutlass' 2023-01-11T20:56:11.4789642Z Entering 'third_party/eigen' 2023-01-11T20:56:11.4825242Z Entering 'third_party/fbgemm' 2023-01-11T20:56:11.4859921Z Entering 'third_party/fbgemm/third_party/asmjit' 2023-01-11T20:56:11.4893920Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2023-01-11T20:56:11.4928568Z Entering 'third_party/fbgemm/third_party/googletest' 2023-01-11T20:56:11.4962890Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2023-01-11T20:56:11.4999061Z Entering 'third_party/flatbuffers' 2023-01-11T20:56:11.5034924Z Entering 'third_party/fmt' 2023-01-11T20:56:11.5072058Z Entering 'third_party/foxi' 2023-01-11T20:56:11.5105981Z Entering 'third_party/gemmlowp/gemmlowp' 2023-01-11T20:56:11.5140570Z Entering 'third_party/gloo' 2023-01-11T20:56:11.5174560Z Entering 'third_party/googletest' 2023-01-11T20:56:11.5208579Z Entering 'third_party/ideep' 2023-01-11T20:56:11.5242471Z Entering 'third_party/ideep/mkl-dnn' 2023-01-11T20:56:11.5278729Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2023-01-11T20:56:11.5318909Z Entering 'third_party/ios-cmake' 2023-01-11T20:56:11.5353222Z Entering 'third_party/ittapi' 2023-01-11T20:56:11.5387453Z Entering 'third_party/kineto' 2023-01-11T20:56:11.5421652Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2023-01-11T20:56:11.5457002Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2023-01-11T20:56:11.5490815Z Entering 'third_party/nccl/nccl' 2023-01-11T20:56:11.5524834Z Entering 'third_party/neon2sse' 2023-01-11T20:56:11.5558488Z Entering 'third_party/nlohmann' 2023-01-11T20:56:11.5594838Z Entering 'third_party/onnx' 2023-01-11T20:56:11.5639570Z Entering 'third_party/onnx/third_party/benchmark' 2023-01-11T20:56:11.5673802Z Entering 'third_party/onnx/third_party/pybind11' 2023-01-11T20:56:11.5710439Z Entering 'third_party/onnx-tensorrt' 2023-01-11T20:56:11.5744614Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2023-01-11T20:56:11.5782321Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2023-01-11T20:56:11.5815933Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2023-01-11T20:56:11.5848807Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2023-01-11T20:56:11.5887036Z Entering 'third_party/pocketfft' 2023-01-11T20:56:11.5920754Z Entering 'third_party/protobuf' 2023-01-11T20:56:11.5959633Z Entering 'third_party/protobuf/third_party/benchmark' 2023-01-11T20:56:11.5992656Z Entering 'third_party/protobuf/third_party/googletest' 2023-01-11T20:56:11.6027821Z Entering 'third_party/psimd' 2023-01-11T20:56:11.6061953Z Entering 'third_party/pthreadpool' 2023-01-11T20:56:11.6095814Z Entering 'third_party/pybind11' 2023-01-11T20:56:11.6129820Z Entering 'third_party/python-enum' 2023-01-11T20:56:11.6169249Z Entering 'third_party/python-peachpy' 2023-01-11T20:56:11.6199688Z Entering 'third_party/python-six' 2023-01-11T20:56:11.6233008Z Entering 'third_party/sleef' 2023-01-11T20:56:11.6268504Z Entering 'third_party/tbb' 2023-01-11T20:56:11.6304878Z Entering 'third_party/tensorpipe' 2023-01-11T20:56:11.6340678Z Entering 'third_party/tensorpipe/third_party/googletest' 2023-01-11T20:56:11.6373804Z Entering 'third_party/tensorpipe/third_party/libnop' 2023-01-11T20:56:11.6406838Z Entering 'third_party/tensorpipe/third_party/libuv' 2023-01-11T20:56:11.6440098Z Entering 'third_party/tensorpipe/third_party/pybind11' 2023-01-11T20:56:11.6472794Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2023-01-11T20:56:11.6509897Z Entering 'third_party/zstd' 2023-01-11T20:56:11.6550680Z ##[endgroup] 2023-01-11T20:56:11.6588148Z [command]/usr/bin/git log -1 --format='%H' 2023-01-11T20:56:11.6613593Z '8419ddda87c8a47eacc63b54bc7ec98c1f27c26e' 2023-01-11T20:56:11.6723251Z Prepare all required actions 2023-01-11T20:56:11.6746956Z ##[group]Run ./.github/actions/setup-linux 2023-01-11T20:56:11.6747170Z env: 2023-01-11T20:56:11.6747349Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:56:11.6747543Z ##[endgroup] 2023-01-11T20:56:11.6760875Z ##[group]Run set -euo pipefail 2023-01-11T20:56:11.6761111Z set -euo pipefail 2023-01-11T20:56:11.6761321Z function get_ec2_metadata() { 2023-01-11T20:56:11.6761568Z  # Pulled from instance metadata endpoint for EC2 2023-01-11T20:56:11.6761907Z  # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html 2023-01-11T20:56:11.6762206Z  category=$1 2023-01-11T20:56:11.6762452Z  curl -fsSL "http://169.254.169.254/latest/meta-data/${category}" 2023-01-11T20:56:11.6762676Z } 2023-01-11T20:56:11.6762870Z echo "ami-id: $(get_ec2_metadata ami-id)" 2023-01-11T20:56:11.6763155Z echo "instance-id: $(get_ec2_metadata instance-id)" 2023-01-11T20:56:11.6763434Z echo "instance-type: $(get_ec2_metadata instance-type)" 2023-01-11T20:56:11.6763667Z echo "system info $(uname -a)" 2023-01-11T20:56:11.6776039Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:56:11.6776261Z env: 2023-01-11T20:56:11.6776423Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:56:11.6776612Z ##[endgroup] 2023-01-11T20:56:11.6852696Z ami-id: ami-096198a0bccc6bad4 2023-01-11T20:56:11.6901156Z instance-id: i-0621585034f78d3f2 2023-01-11T20:56:11.6948590Z instance-type: c5.2xlarge 2023-01-11T20:56:11.6955261Z system info Linux ip-10-0-5-223.ec2.internal 4.14.252-195.483.amzn2.x86_64 #1 SMP Mon Nov 1 20:58:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 2023-01-11T20:56:11.6969165Z ##[group]Run if systemctl is-active --quiet docker; then 2023-01-11T20:56:11.6969435Z if systemctl is-active --quiet docker; then 2023-01-11T20:56:11.6969691Z  echo "Docker daemon is running..."; 2023-01-11T20:56:11.6969900Z else 2023-01-11T20:56:11.6970123Z  echo "Starting docker deamon..." && sudo systemctl start docker; 2023-01-11T20:56:11.6970354Z fi 2023-01-11T20:56:11.6981213Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:56:11.6981421Z env: 2023-01-11T20:56:11.6981600Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:56:11.6981790Z ##[endgroup] 2023-01-11T20:56:11.7083938Z Docker daemon is running... 2023-01-11T20:56:11.7104548Z ##[group]Run AWS_ACCOUNT_ID=$(aws sts get-caller-identity|grep Account|cut -f4 -d\") 2023-01-11T20:56:11.7105162Z AWS_ACCOUNT_ID=$(aws sts get-caller-identity|grep Account|cut -f4 -d\") 2023-01-11T20:56:11.7105664Z retry () { "$@" || (sleep 1 && "$@") || (sleep 2 && "$@") } 2023-01-11T20:56:11.7106283Z retry aws ecr get-login*** "$AWS_DEFAULT_REGION" | docker login --username AWS \ 2023-01-11T20:56:11.7106895Z  --password-stdin "$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com" 2023-01-11T20:56:11.7121235Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:56:11.7121622Z env: 2023-01-11T20:56:11.7121919Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:56:11.7122272Z AWS_RETRY_MODE: standard 2023-01-11T20:56:11.7122607Z AWS_MAX_ATTEMPTS: 5 2023-01-11T20:56:11.7122956Z AWS_DEFAULT_REGION: us-east-1 2023-01-11T20:56:11.7123276Z ##[endgroup] 2023-01-11T20:56:13.1758208Z WARNING! Your password will be stored unencrypted in /home/ec2-user/.docker/config.json. 2023-01-11T20:56:13.1758578Z Configure a credential helper to remove this warning. See 2023-01-11T20:56:13.1759121Z https://docs.docker.com/engine/reference/commandline/login/#credentials-store 2023-01-11T20:56:13.1759700Z 2023-01-11T20:56:13.1760002Z Login Succeeded 2023-01-11T20:56:13.1787878Z ##[group]Run env | grep '^GITHUB' >> "/tmp/github_env_${GITHUB_RUN_ID}" 2023-01-11T20:56:13.1788290Z env | grep '^GITHUB' >> "/tmp/github_env_${GITHUB_RUN_ID}" 2023-01-11T20:56:13.1788749Z env | grep '^CI' >> "/tmp/github_env_${GITHUB_RUN_ID}" 2023-01-11T20:56:13.1800343Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:56:13.1800582Z env: 2023-01-11T20:56:13.1800786Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:56:13.1801001Z ##[endgroup] 2023-01-11T20:56:13.1887733Z ##[group]Run pytorch/test-infra/.github/actions/pull-docker-image@main 2023-01-11T20:56:13.1887979Z with: 2023-01-11T20:56:13.1888328Z docker-image: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:fd224c2e6c79d7fdec6408da598bf52bc5b201dd 2023-01-11T20:56:13.1888648Z env: 2023-01-11T20:56:13.1888821Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:56:13.1889006Z ##[endgroup] 2023-01-11T20:56:13.1900777Z ##[group]Run retry () { "$@" || (sleep 1 && "$@") || (sleep 2 && "$@") } 2023-01-11T20:56:13.1901036Z retry () { "$@" || (sleep 1 && "$@") || (sleep 2 && "$@") } 2023-01-11T20:56:13.1901309Z # ignore output since only exit code is used for conditional 2023-01-11T20:56:13.1901587Z # only pull docker image if it's not available locally 2023-01-11T20:56:13.1901883Z if ! docker inspect --type=image "${DOCKER_IMAGE}" >/dev/null 2>/dev/null; then 2023-01-11T20:56:13.1902176Z  retry docker pull "${DOCKER_IMAGE}" 2023-01-11T20:56:13.1902371Z fi 2023-01-11T20:56:13.1912947Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:56:13.1913166Z env: 2023-01-11T20:56:13.1913337Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:56:13.1913700Z DOCKER_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:fd224c2e6c79d7fdec6408da598bf52bc5b201dd 2023-01-11T20:56:13.1914041Z ##[endgroup] 2023-01-11T20:56:13.4465958Z fd224c2e6c79d7fdec6408da598bf52bc5b201dd: Pulling from pytorch/pytorch-linux-focal-py3-clang7-asan 2023-01-11T20:56:13.4490082Z 846c0b181fff: Pulling fs layer 2023-01-11T20:56:13.4490413Z 21fdbe34507b: Pulling fs layer 2023-01-11T20:56:13.4490633Z 15f2f231937c: Pulling fs layer 2023-01-11T20:56:13.4490834Z a1e39d4ff4de: Pulling fs layer 2023-01-11T20:56:13.4491024Z dac676e29afb: Pulling fs layer 2023-01-11T20:56:13.4493587Z b6a2ffe2f948: Pulling fs layer 2023-01-11T20:56:13.4494114Z 49efecb612e9: Pulling fs layer 2023-01-11T20:56:13.4494495Z 613971da6ac7: Pulling fs layer 2023-01-11T20:56:13.4494748Z 8fb6475afaf3: Pulling fs layer 2023-01-11T20:56:13.4494987Z 435d0e36d6a5: Pulling fs layer 2023-01-11T20:56:13.4495310Z 3b4e6eac36dd: Pulling fs layer 2023-01-11T20:56:13.4495679Z aea18031c0c7: Pulling fs layer 2023-01-11T20:56:13.4496004Z 4604cf003b36: Pulling fs layer 2023-01-11T20:56:13.4496195Z 4e981f6dbb89: Pulling fs layer 2023-01-11T20:56:13.4496386Z 7743227009bb: Pulling fs layer 2023-01-11T20:56:13.4496564Z 620feb79e578: Pulling fs layer 2023-01-11T20:56:13.4535160Z a3dbac233a42: Pulling fs layer 2023-01-11T20:56:13.4535551Z 4a56f6ee78f6: Pulling fs layer 2023-01-11T20:56:13.4535818Z b6a2ffe2f948: Waiting 2023-01-11T20:56:13.4536074Z 50d1e6404d82: Pulling fs layer 2023-01-11T20:56:13.4536258Z 2f0941e33bd6: Pulling fs layer 2023-01-11T20:56:13.4536444Z 49efecb612e9: Waiting 2023-01-11T20:56:13.4536632Z a1e39d4ff4de: Waiting 2023-01-11T20:56:13.4536890Z eb18bead7c47: Pulling fs layer 2023-01-11T20:56:13.4537207Z 613971da6ac7: Waiting 2023-01-11T20:56:13.4537517Z 7b8ecfd940e0: Pulling fs layer 2023-01-11T20:56:13.4537809Z dac676e29afb: Waiting 2023-01-11T20:56:13.4538040Z 57ce702c520c: Pulling fs layer 2023-01-11T20:56:13.4538342Z f998920cae3e: Pulling fs layer 2023-01-11T20:56:13.4538624Z a3dbac233a42: Waiting 2023-01-11T20:56:13.4538922Z 2d4cddbabc89: Pulling fs layer 2023-01-11T20:56:13.4539264Z c536fd508674: Pulling fs layer 2023-01-11T20:56:13.4539600Z c9a786894499: Pulling fs layer 2023-01-11T20:56:13.4539943Z e8764e64bb1c: Pulling fs layer 2023-01-11T20:56:13.4540300Z 4d1e09a08f81: Pulling fs layer 2023-01-11T20:56:13.4540850Z 435d0e36d6a5: Waiting 2023-01-11T20:56:13.4541142Z 4a56f6ee78f6: Waiting 2023-01-11T20:56:13.4541460Z 3b4e6eac36dd: Waiting 2023-01-11T20:56:13.4541826Z bdc8f587ef89: Pulling fs layer 2023-01-11T20:56:13.4542059Z 50d1e6404d82: Waiting 2023-01-11T20:56:13.4542244Z 70704e78fced: Pulling fs layer 2023-01-11T20:56:13.4542442Z 1aa09a70183a: Pulling fs layer 2023-01-11T20:56:13.4542723Z f369cb0dac39: Pulling fs layer 2023-01-11T20:56:13.4543038Z 9a83edd28cbc: Pulling fs layer 2023-01-11T20:56:13.4543325Z 4604cf003b36: Waiting 2023-01-11T20:56:13.4543580Z 7743227009bb: Waiting 2023-01-11T20:56:13.4543896Z ebecc6d269f2: Pulling fs layer 2023-01-11T20:56:13.4544239Z 2f0941e33bd6: Waiting 2023-01-11T20:56:13.4544532Z 620feb79e578: Waiting 2023-01-11T20:56:13.4544864Z 296146b0eae7: Pulling fs layer 2023-01-11T20:56:13.4545196Z 4e981f6dbb89: Waiting 2023-01-11T20:56:13.4545514Z 7d5d82a88c1b: Pulling fs layer 2023-01-11T20:56:13.4545837Z eb18bead7c47: Waiting 2023-01-11T20:56:13.4546187Z 667f5a34e1ef: Pulling fs layer 2023-01-11T20:56:13.4546495Z 75eb61e130a0: Pulling fs layer 2023-01-11T20:56:13.4546691Z 8a92db3dc3eb: Pulling fs layer 2023-01-11T20:56:13.4546875Z 57ce702c520c: Waiting 2023-01-11T20:56:13.4547036Z 4d1e09a08f81: Waiting 2023-01-11T20:56:13.4547222Z f998920cae3e: Waiting 2023-01-11T20:56:13.4547391Z c9a786894499: Waiting 2023-01-11T20:56:13.4547556Z b97379cf7644: Pulling fs layer 2023-01-11T20:56:13.4547742Z bdc8f587ef89: Waiting 2023-01-11T20:56:13.4547914Z 7b8ecfd940e0: Waiting 2023-01-11T20:56:13.4548081Z 68e7cd28096c: Pulling fs layer 2023-01-11T20:56:13.4548264Z 2d4cddbabc89: Waiting 2023-01-11T20:56:13.4548447Z 99a0e1297615: Pulling fs layer 2023-01-11T20:56:13.4548626Z 70704e78fced: Waiting 2023-01-11T20:56:13.4548797Z 2d59c2783db2: Pulling fs layer 2023-01-11T20:56:13.4548988Z e02c9601b85c: Pulling fs layer 2023-01-11T20:56:13.4549173Z ebecc6d269f2: Waiting 2023-01-11T20:56:13.4549348Z 36ecb985ca81: Pulling fs layer 2023-01-11T20:56:13.4549529Z 296146b0eae7: Waiting 2023-01-11T20:56:13.4549714Z 40a91c7bbcdd: Pulling fs layer 2023-01-11T20:56:13.4549889Z 9a83edd28cbc: Waiting 2023-01-11T20:56:13.4550159Z 5b3f4c615eba: Pulling fs layer 2023-01-11T20:56:13.4550352Z a8e823303f62: Pulling fs layer 2023-01-11T20:56:13.4550585Z 03b9596d9ece: Pulling fs layer 2023-01-11T20:56:13.4550901Z 342326185042: Pulling fs layer 2023-01-11T20:56:13.4551237Z 667f5a34e1ef: Waiting 2023-01-11T20:56:13.4551592Z 9229b7372ee6: Pulling fs layer 2023-01-11T20:56:13.4551837Z 2d59c2783db2: Waiting 2023-01-11T20:56:13.4552132Z 1aa09a70183a: Waiting 2023-01-11T20:56:13.4552443Z 794d48fd071f: Pulling fs layer 2023-01-11T20:56:13.4552739Z f369cb0dac39: Waiting 2023-01-11T20:56:13.4553203Z 7b6b0b10b9c6: Pulling fs layer 2023-01-11T20:56:13.4553561Z c1ec5d2760ef: Pulling fs layer 2023-01-11T20:56:13.4553877Z 40a91c7bbcdd: Waiting 2023-01-11T20:56:13.4554170Z 36ecb985ca81: Waiting 2023-01-11T20:56:13.4554462Z 099631a27757: Pulling fs layer 2023-01-11T20:56:13.4554862Z ca880176f07f: Pulling fs layer 2023-01-11T20:56:13.4555175Z a8e823303f62: Waiting 2023-01-11T20:56:13.4555484Z 8507d046f7f4: Pulling fs layer 2023-01-11T20:56:13.4555801Z 03b9596d9ece: Waiting 2023-01-11T20:56:13.4556087Z b97379cf7644: Waiting 2023-01-11T20:56:13.4556358Z 5b3f4c615eba: Waiting 2023-01-11T20:56:13.4556592Z 342326185042: Waiting 2023-01-11T20:56:13.4556857Z c1ec5d2760ef: Waiting 2023-01-11T20:56:13.4557111Z 099631a27757: Waiting 2023-01-11T20:56:13.4557374Z 75eb61e130a0: Waiting 2023-01-11T20:56:13.4557648Z 99a0e1297615: Waiting 2023-01-11T20:56:13.4557927Z 794d48fd071f: Waiting 2023-01-11T20:56:13.4558189Z 8507d046f7f4: Waiting 2023-01-11T20:56:13.4558450Z 7b6b0b10b9c6: Waiting 2023-01-11T20:56:13.4558715Z 68e7cd28096c: Waiting 2023-01-11T20:56:13.4558973Z 9229b7372ee6: Waiting 2023-01-11T20:56:13.5317084Z 21fdbe34507b: Download complete 2023-01-11T20:56:13.6216563Z a1e39d4ff4de: Verifying Checksum 2023-01-11T20:56:13.6216848Z a1e39d4ff4de: Download complete 2023-01-11T20:56:13.7864067Z 846c0b181fff: Download complete 2023-01-11T20:56:13.9041597Z b6a2ffe2f948: Verifying Checksum 2023-01-11T20:56:13.9042235Z b6a2ffe2f948: Download complete 2023-01-11T20:56:14.0051842Z 49efecb612e9: Verifying Checksum 2023-01-11T20:56:14.0052140Z 49efecb612e9: Download complete 2023-01-11T20:56:14.1397692Z 613971da6ac7: Verifying Checksum 2023-01-11T20:56:14.1398117Z 613971da6ac7: Download complete 2023-01-11T20:56:14.2421468Z 8fb6475afaf3: Download complete 2023-01-11T20:56:14.3265313Z 435d0e36d6a5: Download complete 2023-01-11T20:56:14.4513129Z 3b4e6eac36dd: Verifying Checksum 2023-01-11T20:56:14.4513557Z 3b4e6eac36dd: Download complete 2023-01-11T20:56:14.4750969Z 846c0b181fff: Pull complete 2023-01-11T20:56:14.5527404Z aea18031c0c7: Verifying Checksum 2023-01-11T20:56:14.5527661Z aea18031c0c7: Download complete 2023-01-11T20:56:14.5762377Z 21fdbe34507b: Pull complete 2023-01-11T20:56:14.6215169Z 4604cf003b36: Verifying Checksum 2023-01-11T20:56:14.6215550Z 4604cf003b36: Download complete 2023-01-11T20:56:16.0029811Z dac676e29afb: Verifying Checksum 2023-01-11T20:56:16.0030332Z dac676e29afb: Download complete 2023-01-11T20:56:16.1370124Z 7743227009bb: Verifying Checksum 2023-01-11T20:56:16.1370539Z 7743227009bb: Download complete 2023-01-11T20:56:16.2303764Z 620feb79e578: Verifying Checksum 2023-01-11T20:56:16.2304020Z 620feb79e578: Download complete 2023-01-11T20:56:16.3077870Z a3dbac233a42: Download complete 2023-01-11T20:56:16.3906825Z 4a56f6ee78f6: Verifying Checksum 2023-01-11T20:56:16.3907184Z 4a56f6ee78f6: Download complete 2023-01-11T20:56:16.5635418Z 50d1e6404d82: Verifying Checksum 2023-01-11T20:56:16.5635867Z 50d1e6404d82: Download complete 2023-01-11T20:56:16.6583536Z 2f0941e33bd6: Download complete 2023-01-11T20:56:16.7281736Z eb18bead7c47: Verifying Checksum 2023-01-11T20:56:16.7282133Z eb18bead7c47: Download complete 2023-01-11T20:56:16.7953998Z 7b8ecfd940e0: Verifying Checksum 2023-01-11T20:56:16.7954319Z 7b8ecfd940e0: Download complete 2023-01-11T20:56:16.9389291Z 57ce702c520c: Verifying Checksum 2023-01-11T20:56:16.9389565Z 57ce702c520c: Download complete 2023-01-11T20:56:17.0589131Z f998920cae3e: Verifying Checksum 2023-01-11T20:56:17.0589391Z f998920cae3e: Download complete 2023-01-11T20:56:22.3496449Z 2d4cddbabc89: Verifying Checksum 2023-01-11T20:56:22.3496732Z 2d4cddbabc89: Download complete 2023-01-11T20:56:22.4558624Z c536fd508674: Verifying Checksum 2023-01-11T20:56:22.4559120Z c536fd508674: Download complete 2023-01-11T20:56:22.5474793Z c9a786894499: Verifying Checksum 2023-01-11T20:56:22.5475203Z c9a786894499: Download complete 2023-01-11T20:56:22.6751592Z e8764e64bb1c: Verifying Checksum 2023-01-11T20:56:22.6751886Z e8764e64bb1c: Download complete 2023-01-11T20:56:22.7520888Z 4d1e09a08f81: Verifying Checksum 2023-01-11T20:56:22.7521198Z 4d1e09a08f81: Download complete 2023-01-11T20:56:22.8726483Z bdc8f587ef89: Verifying Checksum 2023-01-11T20:56:22.8726880Z bdc8f587ef89: Download complete 2023-01-11T20:56:26.2384886Z 15f2f231937c: Verifying Checksum 2023-01-11T20:56:26.2385254Z 15f2f231937c: Download complete 2023-01-11T20:56:26.3455672Z 1aa09a70183a: Verifying Checksum 2023-01-11T20:56:26.3455968Z 1aa09a70183a: Download complete 2023-01-11T20:56:26.4327222Z f369cb0dac39: Verifying Checksum 2023-01-11T20:56:26.4327519Z f369cb0dac39: Download complete 2023-01-11T20:56:26.5129473Z 9a83edd28cbc: Verifying Checksum 2023-01-11T20:56:26.5130861Z 9a83edd28cbc: Download complete 2023-01-11T20:56:26.5924144Z ebecc6d269f2: Download complete 2023-01-11T20:56:26.6542102Z 296146b0eae7: Download complete 2023-01-11T20:56:26.7443497Z 7d5d82a88c1b: Verifying Checksum 2023-01-11T20:56:26.7443888Z 7d5d82a88c1b: Download complete 2023-01-11T20:56:26.8212364Z 667f5a34e1ef: Verifying Checksum 2023-01-11T20:56:26.8212823Z 667f5a34e1ef: Download complete 2023-01-11T20:56:26.9338112Z 75eb61e130a0: Verifying Checksum 2023-01-11T20:56:26.9338518Z 75eb61e130a0: Download complete 2023-01-11T20:56:27.0312957Z 8a92db3dc3eb: Verifying Checksum 2023-01-11T20:56:27.0313268Z 8a92db3dc3eb: Download complete 2023-01-11T20:56:27.1166825Z b97379cf7644: Verifying Checksum 2023-01-11T20:56:27.1167391Z b97379cf7644: Download complete 2023-01-11T20:56:27.2062511Z 68e7cd28096c: Download complete 2023-01-11T20:56:27.2933622Z 99a0e1297615: Verifying Checksum 2023-01-11T20:56:27.2934028Z 99a0e1297615: Download complete 2023-01-11T20:56:28.9819871Z 2d59c2783db2: Verifying Checksum 2023-01-11T20:56:28.9820152Z 2d59c2783db2: Download complete 2023-01-11T20:56:29.0988822Z e02c9601b85c: Download complete 2023-01-11T20:56:29.1737024Z 36ecb985ca81: Download complete 2023-01-11T20:56:29.2620862Z 40a91c7bbcdd: Verifying Checksum 2023-01-11T20:56:29.2621308Z 40a91c7bbcdd: Download complete 2023-01-11T20:56:29.3335877Z 5b3f4c615eba: Verifying Checksum 2023-01-11T20:56:29.3336316Z 5b3f4c615eba: Download complete 2023-01-11T20:56:30.0507138Z a8e823303f62: Verifying Checksum 2023-01-11T20:56:30.0507421Z a8e823303f62: Download complete 2023-01-11T20:56:30.1546082Z 03b9596d9ece: Download complete 2023-01-11T20:56:30.2258423Z 342326185042: Verifying Checksum 2023-01-11T20:56:30.2258803Z 342326185042: Download complete 2023-01-11T20:56:31.9334010Z 70704e78fced: Verifying Checksum 2023-01-11T20:56:31.9335045Z 70704e78fced: Download complete 2023-01-11T20:56:32.0249313Z 794d48fd071f: Download complete 2023-01-11T20:56:32.1137257Z 7b6b0b10b9c6: Verifying Checksum 2023-01-11T20:56:32.1137877Z 7b6b0b10b9c6: Download complete 2023-01-11T20:56:32.1852817Z c1ec5d2760ef: Download complete 2023-01-11T20:56:32.2780763Z 099631a27757: Verifying Checksum 2023-01-11T20:56:32.2781794Z 099631a27757: Download complete 2023-01-11T20:56:32.3927319Z ca880176f07f: Download complete 2023-01-11T20:56:32.4787638Z 15f2f231937c: Pull complete 2023-01-11T20:56:32.6543874Z a1e39d4ff4de: Pull complete 2023-01-11T20:56:33.9626369Z dac676e29afb: Pull complete 2023-01-11T20:56:34.1949759Z b6a2ffe2f948: Pull complete 2023-01-11T20:56:34.4380139Z 49efecb612e9: Pull complete 2023-01-11T20:56:34.6103867Z 8507d046f7f4: Verifying Checksum 2023-01-11T20:56:34.6104129Z 8507d046f7f4: Download complete 2023-01-11T20:56:34.6770646Z 613971da6ac7: Pull complete 2023-01-11T20:56:34.9205553Z 8fb6475afaf3: Pull complete 2023-01-11T20:56:35.1399917Z 435d0e36d6a5: Pull complete 2023-01-11T20:56:35.3747468Z 3b4e6eac36dd: Pull complete 2023-01-11T20:56:35.5930568Z aea18031c0c7: Pull complete 2023-01-11T20:56:35.7631552Z 4604cf003b36: Pull complete 2023-01-11T20:56:40.9764324Z 9229b7372ee6: Verifying Checksum 2023-01-11T20:56:40.9764581Z 9229b7372ee6: Download complete 2023-01-11T20:56:59.9841496Z 4e981f6dbb89: Verifying Checksum 2023-01-11T20:56:59.9841876Z 4e981f6dbb89: Download complete 2023-01-11T20:57:16.0234974Z 4e981f6dbb89: Pull complete 2023-01-11T20:57:16.1692062Z 7743227009bb: Pull complete 2023-01-11T20:57:16.3261348Z 620feb79e578: Pull complete 2023-01-11T20:57:16.4804712Z a3dbac233a42: Pull complete 2023-01-11T20:57:16.6030234Z 4a56f6ee78f6: Pull complete 2023-01-11T20:57:16.7827047Z 50d1e6404d82: Pull complete 2023-01-11T20:57:16.9251338Z 2f0941e33bd6: Pull complete 2023-01-11T20:57:17.0167716Z eb18bead7c47: Pull complete 2023-01-11T20:57:17.1058063Z 7b8ecfd940e0: Pull complete 2023-01-11T20:57:17.2088947Z 57ce702c520c: Pull complete 2023-01-11T20:57:17.3120926Z f998920cae3e: Pull complete 2023-01-11T20:57:20.0490788Z 2d4cddbabc89: Pull complete 2023-01-11T20:57:20.2356173Z c536fd508674: Pull complete 2023-01-11T20:57:20.3897911Z c9a786894499: Pull complete 2023-01-11T20:57:20.5878414Z e8764e64bb1c: Pull complete 2023-01-11T20:57:20.7642647Z 4d1e09a08f81: Pull complete 2023-01-11T20:57:20.9568550Z bdc8f587ef89: Pull complete 2023-01-11T20:57:25.5076856Z 70704e78fced: Pull complete 2023-01-11T20:57:25.6643911Z 1aa09a70183a: Pull complete 2023-01-11T20:57:25.7956910Z f369cb0dac39: Pull complete 2023-01-11T20:57:25.9975465Z 9a83edd28cbc: Pull complete 2023-01-11T20:57:26.2456362Z ebecc6d269f2: Pull complete 2023-01-11T20:57:26.4860828Z 296146b0eae7: Pull complete 2023-01-11T20:57:26.7166675Z 7d5d82a88c1b: Pull complete 2023-01-11T20:57:26.9297147Z 667f5a34e1ef: Pull complete 2023-01-11T20:57:27.1629929Z 75eb61e130a0: Pull complete 2023-01-11T20:57:27.4168460Z 8a92db3dc3eb: Pull complete 2023-01-11T20:57:27.6413297Z b97379cf7644: Pull complete 2023-01-11T20:57:27.9102356Z 68e7cd28096c: Pull complete 2023-01-11T20:57:28.1346682Z 99a0e1297615: Pull complete 2023-01-11T20:57:29.3335134Z 2d59c2783db2: Pull complete 2023-01-11T20:57:29.4139910Z e02c9601b85c: Pull complete 2023-01-11T20:57:29.4943523Z 36ecb985ca81: Pull complete 2023-01-11T20:57:29.5882405Z 40a91c7bbcdd: Pull complete 2023-01-11T20:57:29.6784945Z 5b3f4c615eba: Pull complete 2023-01-11T20:57:29.9844856Z a8e823303f62: Pull complete 2023-01-11T20:57:30.0930317Z 03b9596d9ece: Pull complete 2023-01-11T20:57:30.1815885Z 342326185042: Pull complete 2023-01-11T20:57:33.9380086Z 9229b7372ee6: Pull complete 2023-01-11T20:57:34.0247909Z 794d48fd071f: Pull complete 2023-01-11T20:57:34.1133900Z 7b6b0b10b9c6: Pull complete 2023-01-11T20:57:34.1926842Z c1ec5d2760ef: Pull complete 2023-01-11T20:57:34.2898597Z 099631a27757: Pull complete 2023-01-11T20:57:34.3970802Z ca880176f07f: Pull complete 2023-01-11T20:57:35.9038179Z 8507d046f7f4: Pull complete 2023-01-11T20:57:35.9466195Z Digest: sha256:6dd98a84a12a3a3be24bbc7c3112415c10051ad261832daa2e17a60a48fce645 2023-01-11T20:57:35.9873618Z Status: Downloaded newer image for 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:fd224c2e6c79d7fdec6408da598bf52bc5b201dd 2023-01-11T20:57:35.9954386Z 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:fd224c2e6c79d7fdec6408da598bf52bc5b201dd 2023-01-11T20:57:36.0063868Z ##[group]Run python3 -m pip install psutil==5.9.1 2023-01-11T20:57:36.0064149Z python3 -m pip install psutil==5.9.1 2023-01-11T20:57:36.0064376Z python3 -m pip install pynvml==11.4.1 2023-01-11T20:57:36.0064637Z python3 -m tools.stats.monitor > usage_log.txt 2>&1 & 2023-01-11T20:57:36.0064915Z echo "monitor-script-pid=${!}" >> "${GITHUB_OUTPUT}" 2023-01-11T20:57:36.0076173Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:57:36.0076383Z env: 2023-01-11T20:57:36.0076576Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:57:36.0076762Z ##[endgroup] 2023-01-11T20:57:36.2203970Z Defaulting to user installation because normal site-packages is not writeable 2023-01-11T20:57:36.2387399Z Requirement already satisfied: psutil==5.9.1 in /home/ec2-user/.local/lib/python3.7/site-packages (5.9.1) 2023-01-11T20:57:36.6574264Z Defaulting to user installation because normal site-packages is not writeable 2023-01-11T20:57:36.6756308Z Requirement already satisfied: pynvml==11.4.1 in /home/ec2-user/.local/lib/python3.7/site-packages (11.4.1) 2023-01-11T20:57:36.8907619Z Prepare all required actions 2023-01-11T20:57:36.8907911Z Getting action download info 2023-01-11T20:57:37.0921456Z Download action repository 'seemethere/download-artifact-s3@v4' (SHA:4a8bfae15cc25cc0785c1603ee87a9da8fd442ea) 2023-01-11T20:57:37.2586779Z Download action repository 'actions/download-artifact@v3' (SHA:9bc31d5ccc31df68ecc42ccf4149144866c47d8a) 2023-01-11T20:57:37.4092309Z ##[group]Run ./.github/actions/download-build-artifacts 2023-01-11T20:57:37.4092543Z with: 2023-01-11T20:57:37.4092741Z name: linux-focal-py3.7-clang7-tsan 2023-01-11T20:57:37.4092939Z env: 2023-01-11T20:57:37.4093096Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:57:37.4093281Z ##[endgroup] 2023-01-11T20:57:37.4183036Z ##[group]Run seemethere/download-artifact-s3@v4 2023-01-11T20:57:37.4183257Z with: 2023-01-11T20:57:37.4183449Z name: linux-focal-py3.7-clang7-tsan 2023-01-11T20:57:37.4183655Z s3-bucket: gha-artifacts 2023-01-11T20:57:37.4183843Z region: us-east-1 2023-01-11T20:57:37.4184041Z env: 2023-01-11T20:57:37.4184197Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:57:37.4184377Z ##[endgroup] 2023-01-11T20:57:37.8531916Z Found 1 objects with prefix pytorch/pytorch/3896346758/linux-focal-py3.7-clang7-tsan/ 2023-01-11T20:57:37.8532512Z Starting download (1/1): /home/ec2-user/actions-runner/_work/pytorch/pytorch/artifacts.zip 2023-01-11T20:57:46.7088691Z Finished download (1/1): /home/ec2-user/actions-runner/_work/pytorch/pytorch/artifacts.zip 2023-01-11T20:57:46.7089165Z 2023-01-11T20:57:46.7105855Z ##[warning]The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ 2023-01-11T20:57:46.7113494Z Artifact download has finished successfully 2023-01-11T20:57:46.7278490Z ##[group]Run unzip -o artifacts.zip 2023-01-11T20:57:46.7278716Z unzip -o artifacts.zip 2023-01-11T20:57:46.7290409Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:57:46.7290631Z env: 2023-01-11T20:57:46.7290796Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:57:46.7290987Z ##[endgroup] 2023-01-11T20:57:46.7353202Z Archive: artifacts.zip 2023-01-11T20:57:46.7353944Z creating: dist/ 2023-01-11T20:57:47.9645984Z inflating: dist/torch-2.0.0a0+git8419ddd-cp37-cp37m-linux_x86_64.whl 2023-01-11T20:57:47.9646358Z creating: build/lib/ 2023-01-11T20:57:47.9646965Z inflating: build/lib/libclog.a 2023-01-11T20:57:47.9738689Z inflating: build/lib/libgtest.a 2023-01-11T20:57:47.9750703Z inflating: build/lib/libpthreadpool.a 2023-01-11T20:57:47.9761714Z inflating: build/lib/libittnotify.a 2023-01-11T20:57:47.9861685Z inflating: build/lib/libbenchmark.a 2023-01-11T20:57:47.9993781Z inflating: build/lib/libprotobuf-lite.a 2023-01-11T20:57:48.0037742Z inflating: build/lib/libtensorpipe_uv.a 2023-01-11T20:57:48.0079411Z inflating: build/lib/libfmt.a 2023-01-11T20:57:48.0180640Z inflating: build/lib/libgloo.a 2023-01-11T20:57:48.0282127Z inflating: build/lib/libasmjit.a 2023-01-11T20:57:48.0282772Z inflating: build/lib/libfoxi_loader.a 2023-01-11T20:57:48.0284585Z inflating: build/lib/libtorch_global_deps.so 2023-01-11T20:57:48.0880766Z inflating: build/lib/libprotobuf.a 2023-01-11T20:57:48.0956926Z inflating: build/lib/libc10.so 2023-01-11T20:57:48.0970072Z inflating: build/lib/libcpuinfo.a 2023-01-11T20:57:48.0983199Z inflating: build/lib/libcpuinfo_internals.a 2023-01-11T20:57:48.0988719Z inflating: build/lib/libnnpack_reference_layers.a 2023-01-11T20:57:48.1007870Z inflating: build/lib/libgmock.a 2023-01-11T20:57:48.1009048Z inflating: build/lib/libgtest_main.a 2023-01-11T20:57:48.1010694Z inflating: build/lib/libbenchmark_main.a 2023-01-11T20:57:48.1690334Z inflating: build/lib/libprotoc.a 2023-01-11T20:57:48.2358368Z inflating: build/lib/libtensorpipe.a 2023-01-11T20:57:48.2358972Z inflating: build/lib/libgmock_main.a 2023-01-11T20:57:48.4086228Z inflating: build/lib/libfbgemm.a 2023-01-11T20:57:48.4111950Z inflating: build/lib/libqnnpack.a 2023-01-11T20:57:48.4150815Z inflating: build/lib/libpytorch_qnnpack.a 2023-01-11T20:57:48.4520845Z inflating: build/lib/libkineto.a 2023-01-11T20:57:48.4757056Z inflating: build/lib/libXNNPACK.a 2023-01-11T20:57:48.4817948Z inflating: build/lib/libcaffe2_protos.a 2023-01-11T20:57:48.4883127Z inflating: build/lib/libonnx_proto.a 2023-01-11T20:57:48.5601607Z inflating: build/lib/libonnx.a 2023-01-11T20:57:48.5622908Z inflating: build/lib/libnnpack.a 2023-01-11T20:57:50.4866468Z inflating: build/lib/libtorch_cpu.so 2023-01-11T20:57:50.4867262Z inflating: build/lib/libtorch.so 2023-01-11T20:57:50.4879667Z inflating: build/lib/libunbox_lib.a 2023-01-11T20:57:50.4884552Z inflating: build/lib/libshm.so 2023-01-11T20:57:50.4914749Z inflating: build/lib/libjitbackend_test.so 2023-01-11T20:57:50.4949510Z inflating: build/lib/libbackend_with_compiler.so 2023-01-11T20:57:50.5021151Z inflating: build/lib/libtorchbind_test.so 2023-01-11T20:57:50.7345541Z inflating: build/lib/libtorch_python.so 2023-01-11T20:57:50.7397167Z inflating: build/lib/libnnapi_backend.so 2023-01-11T20:57:50.7397431Z creating: build/bin/ 2023-01-11T20:57:50.7551363Z inflating: build/bin/c10_CompileTimeFunctionPointer_test 2023-01-11T20:57:50.7703123Z inflating: build/bin/c10_DeviceGuard_test 2023-01-11T20:57:50.7854568Z inflating: build/bin/c10_Device_test 2023-01-11T20:57:50.8016018Z inflating: build/bin/c10_DispatchKeySet_test 2023-01-11T20:57:50.8165594Z inflating: build/bin/c10_StreamGuard_test 2023-01-11T20:57:50.8315525Z inflating: build/bin/c10_SymInt_test 2023-01-11T20:57:50.8473143Z inflating: build/bin/c10_InlineDeviceGuard_test 2023-01-11T20:57:50.8628901Z inflating: build/bin/c10_SizesAndStrides_test 2023-01-11T20:57:50.8785835Z inflating: build/bin/c10_InlineStreamGuard_test 2023-01-11T20:57:50.8935632Z inflating: build/bin/c10_Array_test 2023-01-11T20:57:50.9090570Z inflating: build/bin/c10_Bitset_test 2023-01-11T20:57:50.9242374Z inflating: build/bin/c10_C++17_test 2023-01-11T20:57:50.9391808Z inflating: build/bin/c10_ConstexprCrc_test 2023-01-11T20:57:50.9542719Z inflating: build/bin/c10_DeadlockDetection_test 2023-01-11T20:57:50.9692580Z inflating: build/bin/c10_Half_test 2023-01-11T20:57:50.9849594Z inflating: build/bin/c10_LeftRight_test 2023-01-11T20:57:51.0130169Z inflating: build/bin/c10_SmallVectorTest 2023-01-11T20:57:51.0292413Z inflating: build/bin/c10_Metaprogramming_test 2023-01-11T20:57:51.0444074Z inflating: build/bin/c10_Synchronized_test 2023-01-11T20:57:51.0600049Z inflating: build/bin/c10_ThreadLocal_test 2023-01-11T20:57:51.0752005Z inflating: build/bin/c10_TypeIndex_test 2023-01-11T20:57:51.0903967Z inflating: build/bin/c10_TypeList_test 2023-01-11T20:57:51.1052896Z inflating: build/bin/c10_TypeTraits_test 2023-01-11T20:57:51.1205690Z inflating: build/bin/c10_accumulate_test 2023-01-11T20:57:51.1361041Z inflating: build/bin/c10_bfloat16_test 2023-01-11T20:57:51.1519380Z inflating: build/bin/c10_complex_math_test 2023-01-11T20:57:51.1674528Z inflating: build/bin/c10_complex_test 2023-01-11T20:57:51.1882844Z inflating: build/bin/c10_either_test 2023-01-11T20:57:51.2036267Z inflating: build/bin/c10_exception_test 2023-01-11T20:57:51.2188372Z inflating: build/bin/c10_flags_test 2023-01-11T20:57:51.2455298Z inflating: build/bin/c10_intrusive_ptr_test 2023-01-11T20:57:51.2607514Z inflating: build/bin/c10_irange_test 2023-01-11T20:57:51.2763051Z inflating: build/bin/c10_logging_test 2023-01-11T20:57:51.2918548Z inflating: build/bin/c10_registry_test 2023-01-11T20:57:51.3101501Z inflating: build/bin/c10_optional_test 2023-01-11T20:57:51.3269616Z inflating: build/bin/c10_ordered_preserving_dict_test 2023-01-11T20:57:51.3428227Z inflating: build/bin/c10_string_view_test 2023-01-11T20:57:51.3580206Z inflating: build/bin/c10_tempfile_test 2023-01-11T20:57:51.3734767Z inflating: build/bin/c10_typeid_test 2023-01-11T20:57:51.3877844Z inflating: build/bin/c10_intrusive_ptr_benchmark 2023-01-11T20:57:51.4495280Z inflating: build/bin/protoc-3.13.0.0 2023-01-11T20:57:51.5111489Z inflating: build/bin/protoc 2023-01-11T20:57:51.5607709Z inflating: build/bin/vec_test_all_types_DEFAULT 2023-01-11T20:57:51.6127628Z inflating: build/bin/vec_test_all_types_AVX512 2023-01-11T20:57:51.6653293Z inflating: build/bin/vec_test_all_types_AVX2 2023-01-11T20:57:51.6808659Z inflating: build/bin/FileStoreTest 2023-01-11T20:57:51.6962695Z inflating: build/bin/HashStoreTest 2023-01-11T20:57:51.7123489Z inflating: build/bin/TCPStoreTest 2023-01-11T20:57:51.7215975Z inflating: build/bin/example_allreduce 2023-01-11T20:57:51.7386959Z inflating: build/bin/ProcessGroupGlooTest 2023-01-11T20:57:51.7543147Z inflating: build/bin/test_dist_autograd 2023-01-11T20:57:51.7634775Z inflating: build/bin/parallel_benchmark 2023-01-11T20:57:51.7809184Z inflating: build/bin/test_cpp_rpc 2023-01-11T20:57:51.7962740Z inflating: build/bin/Dimname_test 2023-01-11T20:57:51.8138380Z inflating: build/bin/Dict_test 2023-01-11T20:57:51.8308892Z inflating: build/bin/MaybeOwned_test 2023-01-11T20:57:51.8465953Z inflating: build/bin/NamedTensor_test 2023-01-11T20:57:51.8628593Z inflating: build/bin/apply_utils_test 2023-01-11T20:57:51.8789238Z inflating: build/bin/atest 2023-01-11T20:57:51.8956823Z inflating: build/bin/basic 2023-01-11T20:57:51.9113526Z inflating: build/bin/broadcast_test 2023-01-11T20:57:51.9271245Z inflating: build/bin/cpu_generator_test 2023-01-11T20:57:51.9425776Z inflating: build/bin/cpu_profiling_allocator_test 2023-01-11T20:57:51.9973214Z inflating: build/bin/test_lazy 2023-01-11T20:57:52.0125257Z inflating: build/bin/dlconvertor_test 2023-01-11T20:57:52.0275994Z inflating: build/bin/dispatch_key_set_test 2023-01-11T20:57:52.0437992Z inflating: build/bin/extension_backend_test 2023-01-11T20:57:52.0591939Z inflating: build/bin/half_test 2023-01-11T20:57:52.0798343Z inflating: build/bin/cpu_rng_test 2023-01-11T20:57:52.0948491Z inflating: build/bin/lazy_tensor_test 2023-01-11T20:57:52.1103307Z inflating: build/bin/math_kernel_test 2023-01-11T20:57:52.1315647Z inflating: build/bin/ivalue_test 2023-01-11T20:57:52.1469429Z inflating: build/bin/memory_format_test 2023-01-11T20:57:52.1622350Z inflating: build/bin/memory_overlapping_test 2023-01-11T20:57:52.1773358Z inflating: build/bin/operator_name_test 2023-01-11T20:57:52.1932424Z inflating: build/bin/native_test 2023-01-11T20:57:52.2086777Z inflating: build/bin/mobile_memory_cleanup 2023-01-11T20:57:52.2238538Z inflating: build/bin/operators_test 2023-01-11T20:57:52.2390373Z inflating: build/bin/packedtensoraccessor_test 2023-01-11T20:57:52.2548233Z inflating: build/bin/quantized_test 2023-01-11T20:57:52.2699199Z inflating: build/bin/reduce_ops_test 2023-01-11T20:57:52.2880250Z inflating: build/bin/pow_test 2023-01-11T20:57:52.3032155Z inflating: build/bin/reportMemoryUsage_test 2023-01-11T20:57:52.3196088Z inflating: build/bin/scalar_tensor_test 2023-01-11T20:57:52.3354620Z inflating: build/bin/scalar_test 2023-01-11T20:57:52.3508803Z inflating: build/bin/test_parallel 2023-01-11T20:57:52.3661587Z inflating: build/bin/stride_properties_test 2023-01-11T20:57:52.3752436Z inflating: build/bin/thread_init_test 2023-01-11T20:57:52.3905602Z inflating: build/bin/type_ptr_test 2023-01-11T20:57:52.4101776Z inflating: build/bin/tensor_iterator_test 2023-01-11T20:57:52.4251372Z inflating: build/bin/variant_test 2023-01-11T20:57:52.4403587Z inflating: build/bin/undefined_tensor_test 2023-01-11T20:57:52.4569459Z inflating: build/bin/type_test 2023-01-11T20:57:52.4659726Z inflating: build/bin/verify_api_visibility 2023-01-11T20:57:52.4811490Z inflating: build/bin/weakref_test 2023-01-11T20:57:52.4994291Z inflating: build/bin/legacy_vmap_test 2023-01-11T20:57:52.5146020Z inflating: build/bin/wrapdim_test 2023-01-11T20:57:52.5296419Z inflating: build/bin/xla_tensor_test 2023-01-11T20:57:52.5507669Z inflating: build/bin/List_test 2023-01-11T20:57:52.5763904Z inflating: build/bin/kernel_function_legacy_test 2023-01-11T20:57:52.5974952Z inflating: build/bin/kernel_function_test 2023-01-11T20:57:52.6136990Z inflating: build/bin/IListRef_test 2023-01-11T20:57:52.6396044Z inflating: build/bin/kernel_lambda_legacy_test 2023-01-11T20:57:52.6616989Z inflating: build/bin/kernel_lambda_test 2023-01-11T20:57:52.6779874Z inflating: build/bin/kernel_stackbased_test 2023-01-11T20:57:52.6930324Z inflating: build/bin/CppSignature_test 2023-01-11T20:57:52.7144935Z inflating: build/bin/make_boxed_from_unboxed_functor_test 2023-01-11T20:57:52.7294217Z inflating: build/bin/op_allowlist_test 2023-01-11T20:57:52.7463078Z inflating: build/bin/KernelFunction_test 2023-01-11T20:57:52.7616412Z inflating: build/bin/inline_container_test 2023-01-11T20:57:52.8117114Z inflating: build/bin/op_registration_test 2023-01-11T20:57:52.8274516Z inflating: build/bin/test_edge_op_registration 2023-01-11T20:57:52.8430650Z inflating: build/bin/backend_fallback_test 2023-01-11T20:57:53.0351167Z inflating: build/bin/test_api 2023-01-11T20:57:53.0461650Z inflating: build/bin/tutorial_tensorexpr 2023-01-11T20:57:53.0555885Z inflating: build/bin/torch_shm_manager 2023-01-11T20:57:53.2165011Z inflating: build/bin/test_tensorexpr 2023-01-11T20:57:53.3011361Z inflating: build/bin/test_jit 2023-01-11T20:57:53.3036221Z ##[group]Run df -H 2023-01-11T20:57:53.3036400Z df -H 2023-01-11T20:57:53.3047750Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T20:57:53.3047962Z env: 2023-01-11T20:57:53.3048136Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:57:53.3048331Z ##[endgroup] 2023-01-11T20:57:53.3082057Z Filesystem Size Used Avail Use% Mounted on 2023-01-11T20:57:53.3082449Z devtmpfs 8.2G 0 8.2G 0% /dev 2023-01-11T20:57:53.3082845Z tmpfs 8.2G 4.4M 8.2G 1% /dev/shm 2023-01-11T20:57:53.3083134Z tmpfs 8.2G 431k 8.2G 1% /run 2023-01-11T20:57:53.3083767Z tmpfs 8.2G 0 8.2G 0% /sys/fs/cgroup 2023-01-11T20:57:53.3084178Z /dev/nvme0n1p1 162G 20G 142G 13% / 2023-01-11T20:57:53.3173705Z ##[group]Run .github/scripts/parse_ref.py 2023-01-11T20:57:53.3173961Z .github/scripts/parse_ref.py 2023-01-11T20:57:53.3185142Z shell: /usr/bin/bash -e {0} 2023-01-11T20:57:53.3185337Z env: 2023-01-11T20:57:53.3185506Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:57:53.3185701Z ##[endgroup] 2023-01-11T20:57:53.3412346Z ##[group]Run set -x 2023-01-11T20:57:53.3412624Z set -x 2023-01-11T20:57:53.3412794Z  2023-01-11T20:57:53.3412979Z if [[ $TEST_CONFIG == 'multigpu' ]]; then 2023-01-11T20:57:53.3413241Z  TEST_COMMAND=.jenkins/pytorch/multigpu-test.sh 2023-01-11T20:57:53.3413501Z elif [[ $BUILD_ENVIRONMENT == *onnx* ]]; then 2023-01-11T20:57:53.3413740Z  TEST_COMMAND=.jenkins/onnx/test.sh 2023-01-11T20:57:53.3413924Z else 2023-01-11T20:57:53.3414149Z  TEST_COMMAND=.jenkins/pytorch/test.sh 2023-01-11T20:57:53.3414757Z fi 2023-01-11T20:57:53.3414910Z  2023-01-11T20:57:53.3415155Z COMMIT_MESSAGES=$(git cherry -v "origin/${GIT_DEFAULT_BRANCH:-master}") 2023-01-11T20:57:53.3415393Z  2023-01-11T20:57:53.3415596Z # sanitize the input commit message and PR body here: 2023-01-11T20:57:53.3415813Z # 2023-01-11T20:57:53.3416098Z # trim all new lines from commit messages + PR_BODY to avoid issues with batch environment 2023-01-11T20:57:53.3416465Z # variable copying. see https://github.com/pytorch/pytorch/pull/80043#issuecomment-1167796028 2023-01-11T20:57:53.3416781Z COMMIT_MESSAGES="${COMMIT_MESSAGES//[$'\n\r']}" 2023-01-11T20:57:53.3417009Z PR_BODY="${PR_BODY//[$'\n\r']}" 2023-01-11T20:57:53.3417195Z  2023-01-11T20:57:53.3417443Z # then trim all special characters like single and double quotes to avoid unescaped inputs to 2023-01-11T20:57:53.3417718Z # wreak havoc internally 2023-01-11T20:57:53.3417953Z export COMMIT_MESSAGES="${COMMIT_MESSAGES//[\'\"]}" 2023-01-11T20:57:53.3418186Z export PR_BODY="${PR_BODY//[\'\"]}" 2023-01-11T20:57:53.3418374Z  2023-01-11T20:57:53.3418601Z # detached container should get cleaned up by teardown_ec2_linux 2023-01-11T20:57:53.3418882Z # TODO: Stop building test binaries as part of the build phase 2023-01-11T20:57:53.3419158Z # Used for GPU_FLAG since that doesn't play nice 2023-01-11T20:57:53.3419396Z # shellcheck disable=SC2086,SC2090 2023-01-11T20:57:53.3419618Z container_name=$(docker run \ 2023-01-11T20:57:53.3419806Z  ${GPU_FLAG:-} \ 2023-01-11T20:57:53.3420008Z  -e BUILD_ENVIRONMENT \ 2023-01-11T20:57:53.3420211Z  -e PR_NUMBER \ 2023-01-11T20:57:53.3420390Z  -e GITHUB_ACTIONS \ 2023-01-11T20:57:53.3420578Z  -e BASE_SHA \ 2023-01-11T20:57:53.3420760Z  -e BRANCH \ 2023-01-11T20:57:53.3420923Z  -e SHA1 \ 2023-01-11T20:57:53.3421115Z  -e AWS_DEFAULT_REGION \ 2023-01-11T20:57:53.3421416Z  -e IN_WHEEL_TEST \ 2023-01-11T20:57:53.3421594Z  -e SHARD_NUMBER \ 2023-01-11T20:57:53.3421785Z  -e TEST_CONFIG \ 2023-01-11T20:57:53.3421980Z  -e NUM_TEST_SHARDS \ 2023-01-11T20:57:53.3422172Z  -e PR_BODY \ 2023-01-11T20:57:53.3422356Z  -e COMMIT_MESSAGES \ 2023-01-11T20:57:53.3422565Z  -e CONTINUE_THROUGH_ERROR \ 2023-01-11T20:57:53.3422786Z  -e PYTORCH_RETRY_TEST_CASES \ 2023-01-11T20:57:53.3423004Z  -e PYTORCH_OVERRIDE_FLAKY_SIGNAL \ 2023-01-11T20:57:53.3423218Z  -e PR_LABELS \ 2023-01-11T20:57:53.3423432Z  -e MAX_JOBS="$(nproc --ignore=2)" \ 2023-01-11T20:57:53.3423629Z  -e SCCACHE_BUCKET \ 2023-01-11T20:57:53.3423831Z  -e SCCACHE_S3_KEY_PREFIX \ 2023-01-11T20:57:53.3424028Z  -e XLA_CUDA \ 2023-01-11T20:57:53.3424221Z  -e XLA_CLANG_CACHE_S3_BUCKET_NAME \ 2023-01-11T20:57:53.3424457Z  -e PYTORCH_TEST_CUDA_MEM_LEAK_CHECK \ 2023-01-11T20:57:53.3424695Z  -e PYTORCH_TEST_RERUN_DISABLED_TESTS \ 2023-01-11T20:57:53.3424954Z  --env-file="/tmp/github_env_${GITHUB_RUN_ID}" \ 2023-01-11T20:57:53.3425176Z  --ulimit stack=10485760:83886080 \ 2023-01-11T20:57:53.3425452Z  --security-opt seccomp=unconfined \ 2023-01-11T20:57:53.3425676Z  --cap-add=SYS_PTRACE \ 2023-01-11T20:57:53.3425858Z  --ipc=host \ 2023-01-11T20:57:53.3426054Z  --shm-size="${SHM_SIZE}" \ 2023-01-11T20:57:53.3426244Z  --tty \ 2023-01-11T20:57:53.3426404Z  --detach \ 2023-01-11T20:57:53.3426600Z  --name="${container_name}" \ 2023-01-11T20:57:53.3426800Z  --user jenkins \ 2023-01-11T20:57:53.3427023Z  -v "${GITHUB_WORKSPACE}:/var/lib/jenkins/workspace" \ 2023-01-11T20:57:53.3427274Z  -w /var/lib/jenkins/workspace \ 2023-01-11T20:57:53.3427482Z  "${DOCKER_IMAGE}" 2023-01-11T20:57:53.3427662Z ) 2023-01-11T20:57:53.3427872Z echo "DOCKER_CONTAINER_ID=${container_name}" >> "${GITHUB_ENV}" 2023-01-11T20:57:53.3428203Z docker exec -t "${container_name}" sh -c "pip install $(echo dist/*.whl)[opt-einsum] && ${TEST_COMMAND}" 2023-01-11T20:57:53.3439536Z shell: /usr/bin/bash -e {0} 2023-01-11T20:57:53.3439725Z env: 2023-01-11T20:57:53.3439901Z GIT_DEFAULT_BRANCH: master 2023-01-11T20:57:53.3440131Z BUILD_ENVIRONMENT: linux-focal-py3.7-clang7-tsan 2023-01-11T20:57:53.3440354Z PR_NUMBER: 2023-01-11T20:57:53.3440517Z BRANCH: 2023-01-11T20:57:53.3440710Z SHA1: 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:57:53.3440962Z BASE_SHA: 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:57:53.3441190Z PYTORCH_RETRY_TEST_CASES: 1 2023-01-11T20:57:53.3441390Z PYTORCH_OVERRIDE_FLAKY_SIGNAL: 1 2023-01-11T20:57:53.3441584Z TEST_CONFIG: tsan 2023-01-11T20:57:53.3441756Z SHARD_NUMBER: 1 2023-01-11T20:57:53.3441914Z NUM_TEST_SHARDS: 1 2023-01-11T20:57:53.3442091Z PR_BODY: 2023-01-11T20:57:53.3442273Z CONTINUE_THROUGH_ERROR: False 2023-01-11T20:57:53.3442515Z SCCACHE_BUCKET: ossci-compiler-cache-circleci-v2 2023-01-11T20:57:53.3442742Z SCCACHE_S3_KEY_PREFIX: trunk 2023-01-11T20:57:53.3442926Z SHM_SIZE: 1g 2023-01-11T20:57:53.3443278Z DOCKER_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:fd224c2e6c79d7fdec6408da598bf52bc5b201dd 2023-01-11T20:57:53.3443602Z XLA_CUDA: 2023-01-11T20:57:53.3443859Z XLA_CLANG_CACHE_S3_BUCKET_NAME: ossci-compiler-clang-cache-circleci-xla 2023-01-11T20:57:53.3444140Z PYTORCH_TEST_CUDA_MEM_LEAK_CHECK: 0 2023-01-11T20:57:53.3444347Z PYTORCH_TEST_RERUN_DISABLED_TESTS: 0 2023-01-11T20:57:53.3444545Z ##[endgroup] 2023-01-11T20:57:53.3468831Z + [[ tsan == \m\u\l\t\i\g\p\u ]] 2023-01-11T20:57:53.3469278Z + [[ linux-focal-py3.7-clang7-tsan == *onnx* ]] 2023-01-11T20:57:53.3469580Z + TEST_COMMAND=.jenkins/pytorch/test.sh 2023-01-11T20:57:53.3472383Z ++ git cherry -v origin/master 2023-01-11T20:57:53.3898940Z + COMMIT_MESSAGES='+ 52a16ce42647731c772e14e7175afa40fda07b3d make torchgen rename also Number arguments into '\''input'\'' 2023-01-11T20:57:53.3899325Z + 87db01a53ecb702267ec36787654e418a52f8e93 fix torch.where signature mismatch 2023-01-11T20:57:53.3899780Z + 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e '\''other'\'' instead of '\''output'\'' in documentation' 2023-01-11T20:57:53.3901500Z + COMMIT_MESSAGES='+ 52a16ce42647731c772e14e7175afa40fda07b3d make torchgen rename also Number arguments into '\''input'\''+ 87db01a53ecb702267ec36787654e418a52f8e93 fix torch.where signature mismatch+ 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e '\''other'\'' instead of '\''output'\'' in documentation' 2023-01-11T20:57:53.3902355Z + PR_BODY= 2023-01-11T20:57:53.3903895Z + export 'COMMIT_MESSAGES=+ 52a16ce42647731c772e14e7175afa40fda07b3d make torchgen rename also Number arguments into input+ 87db01a53ecb702267ec36787654e418a52f8e93 fix torch.where signature mismatch+ 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e other instead of output in documentation' 2023-01-11T20:57:53.3905772Z + COMMIT_MESSAGES='+ 52a16ce42647731c772e14e7175afa40fda07b3d make torchgen rename also Number arguments into input+ 87db01a53ecb702267ec36787654e418a52f8e93 fix torch.where signature mismatch+ 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e other instead of output in documentation' 2023-01-11T20:57:53.3906440Z + export PR_BODY= 2023-01-11T20:57:53.3906690Z + PR_BODY= 2023-01-11T20:57:53.3913339Z +++ nproc --ignore=2 2023-01-11T20:57:53.3924083Z ++ docker run -e BUILD_ENVIRONMENT -e PR_NUMBER -e GITHUB_ACTIONS -e BASE_SHA -e BRANCH -e SHA1 -e AWS_DEFAULT_REGION -e IN_WHEEL_TEST -e SHARD_NUMBER -e TEST_CONFIG -e NUM_TEST_SHARDS -e PR_BODY -e COMMIT_MESSAGES -e CONTINUE_THROUGH_ERROR -e PYTORCH_RETRY_TEST_CASES -e PYTORCH_OVERRIDE_FLAKY_SIGNAL -e PR_LABELS -e MAX_JOBS=6 -e SCCACHE_BUCKET -e SCCACHE_S3_KEY_PREFIX -e XLA_CUDA -e XLA_CLANG_CACHE_S3_BUCKET_NAME -e PYTORCH_TEST_CUDA_MEM_LEAK_CHECK -e PYTORCH_TEST_RERUN_DISABLED_TESTS --env-file=/tmp/github_env_3896346758 --ulimit stack=10485760:83886080 --security-opt seccomp=unconfined --cap-add=SYS_PTRACE --ipc=host --shm-size=1g --tty --detach --name= --user jenkins -v /home/ec2-user/actions-runner/_work/pytorch/pytorch:/var/lib/jenkins/workspace -w /var/lib/jenkins/workspace 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:fd224c2e6c79d7fdec6408da598bf52bc5b201dd 2023-01-11T20:58:04.3217971Z + container_name=824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T20:58:04.3218369Z + echo DOCKER_CONTAINER_ID=824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T20:58:04.3221644Z ++ echo dist/torch-2.0.0a0+git8419ddd-cp37-cp37m-linux_x86_64.whl 2023-01-11T20:58:04.3223223Z + docker exec -t 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 sh -c 'pip install dist/torch-2.0.0a0+git8419ddd-cp37-cp37m-linux_x86_64.whl[opt-einsum] && .jenkins/pytorch/test.sh' 2023-01-11T20:58:04.7228049Z Processing ./dist/torch-2.0.0a0+git8419ddd-cp37-cp37m-linux_x86_64.whl 2023-01-11T20:58:05.2567921Z Requirement already satisfied: typing-extensions in /opt/conda/lib/python3.7/site-packages (from torch==2.0.0a0+git8419ddd) (4.4.0) 2023-01-11T20:58:05.2570819Z Requirement already satisfied: sympy in /opt/conda/lib/python3.7/site-packages (from torch==2.0.0a0+git8419ddd) (1.10.1) 2023-01-11T20:58:05.2574064Z Requirement already satisfied: networkx in /opt/conda/lib/python3.7/site-packages (from torch==2.0.0a0+git8419ddd) (2.6.3) 2023-01-11T20:58:05.2587272Z Requirement already satisfied: opt-einsum>=3.3 in /opt/conda/lib/python3.7/site-packages (from torch==2.0.0a0+git8419ddd) (3.3.0) 2023-01-11T20:58:05.2649080Z Requirement already satisfied: numpy>=1.7 in /opt/conda/lib/python3.7/site-packages (from opt-einsum>=3.3->torch==2.0.0a0+git8419ddd) (1.18.5) 2023-01-11T20:58:05.2819115Z Requirement already satisfied: mpmath>=0.19 in /opt/conda/lib/python3.7/site-packages (from sympy->torch==2.0.0a0+git8419ddd) (1.2.1) 2023-01-11T20:58:06.0128272Z Installing collected packages: torch 2023-01-11T20:58:12.6111119Z Successfully installed torch-2.0.0a0+git8419ddd 2023-01-11T20:58:12.7630645Z + echo 'Environment variables:' 2023-01-11T20:58:12.7630879Z Environment variables: 2023-01-11T20:58:12.7631058Z + env 2023-01-11T20:58:12.7636024Z INSTALLED_DB=yes 2023-01-11T20:58:12.7636581Z GITHUB_WORKSPACE=/home/ec2-user/actions-runner/_work/pytorch/pytorch 2023-01-11T20:58:12.7638379Z CONTINUE_THROUGH_ERROR=False 2023-01-11T20:58:12.7639049Z BUILD_ENVIRONMENT=linux-focal-py3.7-clang7-tsan 2023-01-11T20:58:12.7639325Z PYTORCH_OVERRIDE_FLAKY_SIGNAL=1 2023-01-11T20:58:12.7639614Z HOSTNAME=824d2186b1ff 2023-01-11T20:58:12.7640340Z GITHUB_PATH=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/add_path_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7640824Z GITHUB_ACTION=__self 2023-01-11T20:58:12.7641140Z PYTORCH_TEST_CUDA_MEM_LEAK_CHECK=0 2023-01-11T20:58:12.7641469Z GITHUB_RUN_NUMBER=22986 2023-01-11T20:58:12.7641790Z TEST_CONFIG=tsan 2023-01-11T20:58:12.7642135Z GITHUB_REPOSITORY_OWNER_ID=21003710 2023-01-11T20:58:12.7642595Z TORCH_NVCC_FLAGS=-Xfatbin -compress-all 2023-01-11T20:58:12.7643067Z GITHUB_TRIGGERING_ACTOR=pytorch-bot[bot] 2023-01-11T20:58:12.7643404Z GITHUB_REF_TYPE=tag 2023-01-11T20:58:12.7643958Z TORCH_CUDA_ARCH_LIST=Maxwell 2023-01-11T20:58:12.7648442Z BASE_SHA=8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:58:12.7648828Z XLA_CUDA= 2023-01-11T20:58:12.7656515Z *** 2023-01-11T20:58:12.7656802Z CARGO_NET_GIT_FETCH_WITH_CLI=true 2023-01-11T20:58:12.7657098Z GITHUB_REPOSITORY_ID=65600975 2023-01-11T20:58:12.7657377Z GITHUB_ACTIONS=true 2023-01-11T20:58:12.7657709Z SHA1=8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:58:12.7658072Z GITHUB_SHA=8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:58:12.7658563Z GITHUB_WORKFLOW_REF=pytorch/pytorch/.github/workflows/trunk.yml@refs/tags/ciflow/trunk/91627 2023-01-11T20:58:12.7658969Z UCC_HOME=/usr 2023-01-11T20:58:12.7659271Z GITHUB_REF=refs/tags/ciflow/trunk/91627 2023-01-11T20:58:12.7659587Z SHARD_NUMBER=1 2023-01-11T20:58:12.7659908Z GITHUB_REF_PROTECTED=false 2023-01-11T20:58:12.7660238Z HOME=/var/lib/jenkins 2023-01-11T20:58:12.7660593Z GITHUB_API_URL=https://api.github.com 2023-01-11T20:58:12.7660992Z PYTORCH_TEST_RERUN_DISABLED_TESTS=0 2023-01-11T20:58:12.7661334Z INSTALLED_THRIFT= 2023-01-11T20:58:12.7661609Z UCX_COMMIT= 2023-01-11T20:58:12.7661922Z SCCACHE_S3_KEY_PREFIX=trunk 2023-01-11T20:58:12.7662244Z NUM_TEST_SHARDS=1 2023-01-11T20:58:12.7662515Z UCX_HOME=/usr 2023-01-11T20:58:12.7696276Z GITHUB_STATE=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/save_state_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7696674Z PYTORCH_RETRY_TEST_CASES=1 2023-01-11T20:58:12.7697315Z GITHUB_ENV=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/set_env_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7698257Z GITHUB_EVENT_PATH=/home/ec2-user/actions-runner/_work/_temp/_github_workflow/event.json 2023-01-11T20:58:12.7698740Z GITHUB_EVENT_NAME=push 2023-01-11T20:58:12.7699074Z GITHUB_RUN_ID=3896346758 2023-01-11T20:58:12.7699815Z GITHUB_STEP_SUMMARY=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/step_summary_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7700367Z GITHUB_ACTOR=pytorch-bot[bot] 2023-01-11T20:58:12.7700711Z PR_NUMBER= 2023-01-11T20:58:12.7700995Z DESIRED_CUDA= 2023-01-11T20:58:12.7701172Z GITHUB_RUN_ATTEMPT=1 2023-01-11T20:58:12.7701532Z GITHUB_GRAPHQL_URL=https://api.github.com/graphql 2023-01-11T20:58:12.7701770Z TERM=xterm 2023-01-11T20:58:12.7702065Z INSTALLED_VISION=yes 2023-01-11T20:58:12.7702329Z BRANCH= 2023-01-11T20:58:12.7702615Z OPENSSL_ROOT_DIR=/opt/openssl 2023-01-11T20:58:12.7702887Z CUDA_PATH=/usr/local/cuda 2023-01-11T20:58:12.7703256Z GITHUB_ACTION_PATH=/home/ec2-user/actions-runner/_work/pytorch/pytorch/./.github/actions/setup-linux 2023-01-11T20:58:12.7703562Z GITHUB_SERVER_URL=https://github.com 2023-01-11T20:58:12.7704054Z UCC_COMMIT= 2023-01-11T20:58:12.7704329Z INSTALLED_ANDROID= 2023-01-11T20:58:12.7704621Z SHLVL=1 2023-01-11T20:58:12.7704920Z MAX_JOBS=6 2023-01-11T20:58:12.7705235Z GITHUB_ACTOR_ID=54816060 2023-01-11T20:58:12.7705747Z COMMIT_MESSAGES=+ 52a16ce42647731c772e14e7175afa40fda07b3d make torchgen rename also Number arguments into input+ 87db01a53ecb702267ec36787654e418a52f8e93 fix torch.where signature mismatch+ 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e other instead of output in documentation 2023-01-11T20:58:12.7706287Z GITHUB_WORKFLOW_SHA=8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:58:12.7706535Z GITHUB_REF_NAME=ciflow/trunk/91627 2023-01-11T20:58:12.7706894Z XLA_CLANG_CACHE_S3_BUCKET_NAME=ossci-compiler-clang-cache-circleci-xla 2023-01-11T20:58:12.7707140Z GITHUB_JOB=test 2023-01-11T20:58:12.7707340Z GITHUB_REPOSITORY=pytorch/pytorch 2023-01-11T20:58:12.7707549Z GITHUB_RETENTION_DAYS=90 2023-01-11T20:58:12.7707729Z OPENSSL_DIR=/opt/openssl 2023-01-11T20:58:12.7707928Z GITHUB_ACTION_REPOSITORY= 2023-01-11T20:58:12.7708249Z PATH=/opt/cache/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-01-11T20:58:12.7708520Z GITHUB_BASE_REF= 2023-01-11T20:58:12.7708690Z CI=true 2023-01-11T20:58:12.7708873Z GITHUB_REPOSITORY_OWNER=pytorch 2023-01-11T20:58:12.7709155Z INSTALLED_PROTOBUF=yes 2023-01-11T20:58:12.7709343Z GITHUB_HEAD_REF= 2023-01-11T20:58:12.7709521Z GITHUB_ACTION_REF= 2023-01-11T20:58:12.7709792Z SCCACHE_BUCKET=ossci-compiler-cache-circleci-v2 2023-01-11T20:58:12.7710025Z GITHUB_WORKFLOW=trunk 2023-01-11T20:58:12.7710229Z DEBIAN_FRONTEND=noninteractive 2023-01-11T20:58:12.7710633Z GITHUB_OUTPUT=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/set_output_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7710916Z PR_BODY= 2023-01-11T20:58:12.7711085Z _=/usr/bin/env 2023-01-11T20:58:12.7711370Z ++ python -c 'import site; print(site.getsitepackages()[0])' 2023-01-11T20:58:12.7799053Z + TORCH_INSTALL_DIR=/opt/conda/lib/python3.7/site-packages/torch 2023-01-11T20:58:12.7799714Z + TORCH_BIN_DIR=/opt/conda/lib/python3.7/site-packages/torch/bin 2023-01-11T20:58:12.7800322Z + TORCH_LIB_DIR=/opt/conda/lib/python3.7/site-packages/torch/lib 2023-01-11T20:58:12.7800926Z + TORCH_TEST_DIR=/opt/conda/lib/python3.7/site-packages/torch/test 2023-01-11T20:58:12.7801356Z + BUILD_DIR=build 2023-01-11T20:58:12.7801592Z + BUILD_RENAMED_DIR=build_renamed 2023-01-11T20:58:12.7801781Z + BUILD_BIN_DIR=build/bin 2023-01-11T20:58:12.7801965Z + export VALGRIND=ON 2023-01-11T20:58:12.7802142Z + VALGRIND=ON 2023-01-11T20:58:12.7802324Z + export TORCH_INDUCTOR_INSTALL_GXX=ON 2023-01-11T20:58:12.7802540Z + TORCH_INDUCTOR_INSTALL_GXX=ON 2023-01-11T20:58:12.7802883Z + [[ linux-focal-py3.7-clang7-tsan == *clang9* ]] 2023-01-11T20:58:12.7803277Z + [[ linux-focal-py3.7-clang7-tsan != *bazel* ]] 2023-01-11T20:58:12.7803732Z ++ realpath build/custom_test_artifacts 2023-01-11T20:58:12.7810355Z + CUSTOM_TEST_ARTIFACT_BUILD_DIR=/var/lib/jenkins/workspace/build/custom_test_artifacts 2023-01-11T20:58:12.7812869Z ++ dirname .jenkins/pytorch/test.sh 2023-01-11T20:58:12.7819030Z + source .jenkins/pytorch/common.sh 2023-01-11T20:58:12.7821576Z +++ dirname .jenkins/pytorch/common.sh 2023-01-11T20:58:12.7827189Z ++ source .jenkins/pytorch/common_utils.sh 2023-01-11T20:58:12.7828708Z +++ declare -f -t trap_add 2023-01-11T20:58:12.7833645Z ++ set -ex 2023-01-11T20:58:12.7834166Z ++ [[ linux-focal-py3.7-clang7-tsan == *rocm* ]] 2023-01-11T20:58:12.7834584Z ++ BUILD_TEST_LIBTORCH=0 2023-01-11T20:58:12.7835069Z + echo 'Environment variables' 2023-01-11T20:58:12.7835276Z Environment variables 2023-01-11T20:58:12.7835434Z + env 2023-01-11T20:58:12.7840744Z INSTALLED_DB=yes 2023-01-11T20:58:12.7842727Z GITHUB_WORKSPACE=/home/ec2-user/actions-runner/_work/pytorch/pytorch 2023-01-11T20:58:12.7843058Z CONTINUE_THROUGH_ERROR=False 2023-01-11T20:58:12.7843371Z BUILD_ENVIRONMENT=linux-focal-py3.7-clang7-tsan 2023-01-11T20:58:12.7843715Z PYTORCH_OVERRIDE_FLAKY_SIGNAL=1 2023-01-11T20:58:12.7844176Z HOSTNAME=824d2186b1ff 2023-01-11T20:58:12.7844574Z GITHUB_PATH=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/add_path_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7844860Z GITHUB_ACTION=__self 2023-01-11T20:58:12.7845063Z PYTORCH_TEST_CUDA_MEM_LEAK_CHECK=0 2023-01-11T20:58:12.7845256Z GITHUB_RUN_NUMBER=22986 2023-01-11T20:58:12.7845436Z TEST_CONFIG=tsan 2023-01-11T20:58:12.7848481Z GITHUB_REPOSITORY_OWNER_ID=21003710 2023-01-11T20:58:12.7848991Z TORCH_NVCC_FLAGS=-Xfatbin -compress-all 2023-01-11T20:58:12.7850080Z GITHUB_TRIGGERING_ACTOR=pytorch-bot[bot] 2023-01-11T20:58:12.7850480Z GITHUB_REF_TYPE=tag 2023-01-11T20:58:12.7850818Z TORCH_CUDA_ARCH_LIST=Maxwell 2023-01-11T20:58:12.7851248Z BASE_SHA=8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:58:12.7851740Z XLA_CUDA= 2023-01-11T20:58:12.7852154Z *** 2023-01-11T20:58:12.7852470Z CARGO_NET_GIT_FETCH_WITH_CLI=true 2023-01-11T20:58:12.7852786Z GITHUB_REPOSITORY_ID=65600975 2023-01-11T20:58:12.7853028Z GITHUB_ACTIONS=true 2023-01-11T20:58:12.7853359Z SHA1=8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:58:12.7853738Z GITHUB_SHA=8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:58:12.7854206Z GITHUB_WORKFLOW_REF=pytorch/pytorch/.github/workflows/trunk.yml@refs/tags/ciflow/trunk/91627 2023-01-11T20:58:12.7854817Z UCC_HOME=/usr 2023-01-11T20:58:12.7855319Z GITHUB_REF=refs/tags/ciflow/trunk/91627 2023-01-11T20:58:12.7855686Z SHARD_NUMBER=1 2023-01-11T20:58:12.7856007Z GITHUB_REF_PROTECTED=false 2023-01-11T20:58:12.7856359Z HOME=/var/lib/jenkins 2023-01-11T20:58:12.7856762Z GITHUB_API_URL=https://api.github.com 2023-01-11T20:58:12.7857182Z PYTORCH_TEST_RERUN_DISABLED_TESTS=0 2023-01-11T20:58:12.7857542Z INSTALLED_THRIFT= 2023-01-11T20:58:12.7857868Z UCX_COMMIT= 2023-01-11T20:58:12.7858183Z SCCACHE_S3_KEY_PREFIX=trunk 2023-01-11T20:58:12.7858444Z NUM_TEST_SHARDS=1 2023-01-11T20:58:12.7858612Z UCX_HOME=/usr 2023-01-11T20:58:12.7859303Z GITHUB_STATE=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/save_state_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7859853Z TORCH_INDUCTOR_INSTALL_GXX=ON 2023-01-11T20:58:12.7860237Z PYTORCH_RETRY_TEST_CASES=1 2023-01-11T20:58:12.7860716Z GITHUB_ENV=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/set_env_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7861139Z GITHUB_EVENT_PATH=/home/ec2-user/actions-runner/_work/_temp/_github_workflow/event.json 2023-01-11T20:58:12.7861404Z GITHUB_EVENT_NAME=push 2023-01-11T20:58:12.7861593Z GITHUB_RUN_ID=3896346758 2023-01-11T20:58:12.7861994Z GITHUB_STEP_SUMMARY=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/step_summary_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7862334Z GITHUB_ACTOR=pytorch-bot[bot] 2023-01-11T20:58:12.7862521Z PR_NUMBER= 2023-01-11T20:58:12.7862674Z DESIRED_CUDA= 2023-01-11T20:58:12.7862852Z GITHUB_RUN_ATTEMPT=1 2023-01-11T20:58:12.7863081Z VALGRIND=ON 2023-01-11T20:58:12.7863300Z GITHUB_GRAPHQL_URL=https://api.github.com/graphql 2023-01-11T20:58:12.7863519Z TERM=xterm 2023-01-11T20:58:12.7863692Z INSTALLED_VISION=yes 2023-01-11T20:58:12.7863848Z BRANCH= 2023-01-11T20:58:12.7864020Z OPENSSL_ROOT_DIR=/opt/openssl 2023-01-11T20:58:12.7864215Z CUDA_PATH=/usr/local/cuda 2023-01-11T20:58:12.7864572Z GITHUB_ACTION_PATH=/home/ec2-user/actions-runner/_work/pytorch/pytorch/./.github/actions/setup-linux 2023-01-11T20:58:12.7864869Z GITHUB_SERVER_URL=https://github.com 2023-01-11T20:58:12.7865066Z UCC_COMMIT= 2023-01-11T20:58:12.7865236Z INSTALLED_ANDROID= 2023-01-11T20:58:12.7865389Z SHLVL=1 2023-01-11T20:58:12.7865567Z MAX_JOBS=6 2023-01-11T20:58:12.7865738Z GITHUB_ACTOR_ID=54816060 2023-01-11T20:58:12.7866173Z COMMIT_MESSAGES=+ 52a16ce42647731c772e14e7175afa40fda07b3d make torchgen rename also Number arguments into input+ 87db01a53ecb702267ec36787654e418a52f8e93 fix torch.where signature mismatch+ 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e other instead of output in documentation 2023-01-11T20:58:12.7866700Z GITHUB_WORKFLOW_SHA=8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T20:58:12.7867043Z GITHUB_REF_NAME=ciflow/trunk/91627 2023-01-11T20:58:12.7867390Z XLA_CLANG_CACHE_S3_BUCKET_NAME=ossci-compiler-clang-cache-circleci-xla 2023-01-11T20:58:12.7867639Z GITHUB_JOB=test 2023-01-11T20:58:12.7867835Z GITHUB_REPOSITORY=pytorch/pytorch 2023-01-11T20:58:12.7868043Z GITHUB_RETENTION_DAYS=90 2023-01-11T20:58:12.7868226Z OPENSSL_DIR=/opt/openssl 2023-01-11T20:58:12.7868422Z GITHUB_ACTION_REPOSITORY= 2023-01-11T20:58:12.7868733Z PATH=/opt/cache/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-01-11T20:58:12.7869015Z GITHUB_BASE_REF= 2023-01-11T20:58:12.7869168Z CI=true 2023-01-11T20:58:12.7869347Z GITHUB_REPOSITORY_OWNER=pytorch 2023-01-11T20:58:12.7869545Z INSTALLED_PROTOBUF=yes 2023-01-11T20:58:12.7869713Z GITHUB_HEAD_REF= 2023-01-11T20:58:12.7869885Z GITHUB_ACTION_REF= 2023-01-11T20:58:12.7870160Z SCCACHE_BUCKET=ossci-compiler-cache-circleci-v2 2023-01-11T20:58:12.7870377Z GITHUB_WORKFLOW=trunk 2023-01-11T20:58:12.7870575Z DEBIAN_FRONTEND=noninteractive 2023-01-11T20:58:12.7870986Z GITHUB_OUTPUT=/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands/set_output_941ae0be-8577-49a9-b19f-514e8c2f398d 2023-01-11T20:58:12.7871250Z PR_BODY= 2023-01-11T20:58:12.7871413Z _=/usr/bin/env 2023-01-11T20:58:12.7871662Z + echo 'Testing pytorch' 2023-01-11T20:58:12.7871837Z Testing pytorch 2023-01-11T20:58:12.7872030Z + export LANG=C.UTF-8 2023-01-11T20:58:12.7872220Z + LANG=C.UTF-8 2023-01-11T20:58:12.7872372Z + PR_NUMBER= 2023-01-11T20:58:12.7872546Z + [[ tsan == \d\e\f\a\u\l\t ]] 2023-01-11T20:58:12.7872739Z + [[ tsan == \d\i\s\t\r\i\b\u\t\e\d ]] 2023-01-11T20:58:12.7872919Z + [[ tsan == \s\l\o\w ]] 2023-01-11T20:58:12.7873207Z + [[ linux-focal-py3.7-clang7-tsan == *slow-gradcheck* ]] 2023-01-11T20:58:12.7873525Z + [[ linux-focal-py3.7-clang7-tsan == *cuda* ]] 2023-01-11T20:58:12.7873808Z + [[ linux-focal-py3.7-clang7-tsan == *rocm* ]] 2023-01-11T20:58:12.7874024Z + [[ tsan == *crossref* ]] 2023-01-11T20:58:12.7874210Z + [[ tsan == *dynamo* ]] 2023-01-11T20:58:12.7874394Z + [[ tsan == *inductor* ]] 2023-01-11T20:58:12.7874649Z + [[ linux-focal-py3.7-clang7-tsan == *rocm* ]] 2023-01-11T20:58:12.7875079Z + [[ linux-focal-py3.7-clang7-tsan != *-bazel-* ]] 2023-01-11T20:58:12.7875358Z + pip_install --user ninja==1.10.2 2023-01-11T20:58:12.7875637Z + pip install --progress-bar off --user ninja==1.10.2 2023-01-11T20:58:13.1757672Z Collecting ninja==1.10.2 2023-01-11T20:58:13.1926804Z Downloading ninja-1.10.2-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (108 kB) 2023-01-11T20:58:13.8902103Z Installing collected packages: ninja 2023-01-11T20:58:13.8987684Z  WARNING: The script ninja is installed in '/var/lib/jenkins/.local/bin' which is not on PATH. 2023-01-11T20:58:13.8988373Z Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. 2023-01-11T20:58:13.9037802Z Successfully installed ninja-1.10.2 2023-01-11T20:58:13.9691378Z + export PATH=/var/lib/jenkins/.local/bin:/opt/cache/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-01-11T20:58:13.9692107Z + PATH=/var/lib/jenkins/.local/bin:/opt/cache/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-01-11T20:58:13.9692622Z + [[ linux-focal-py3.7-clang7-tsan == *asan* ]] 2023-01-11T20:58:13.9692939Z + [[ linux-focal-py3.7-clang7-tsan == *-tsan* ]] 2023-01-11T20:58:13.9693187Z + export PYTORCH_TEST_WITH_TSAN=1 2023-01-11T20:58:13.9693385Z + PYTORCH_TEST_WITH_TSAN=1 2023-01-11T20:58:13.9717576Z + [[ tsan == \n\o\g\p\u\_\N\O\_\A\V\X\2 ]] 2023-01-11T20:58:13.9718096Z + [[ tsan == \n\o\g\p\u\_\A\V\X\5\1\2 ]] 2023-01-11T20:58:13.9740620Z + [[ linux-focal-py3.7-clang7-tsan == *tbb* ]] 2023-01-11T20:58:13.9744908Z + [[ linux-focal-py3.7-clang7-tsan == *libtorch* ]] 2023-01-11T20:58:13.9745385Z + [[ linux-focal-py3.7-clang7-tsan == *-bazel-* ]] 2023-01-11T20:58:13.9745926Z + [[ linux-focal-py3.7-clang7-tsan == *-tsan* ]] 2023-01-11T20:58:13.9746139Z + [[ tsan == *backward* ]] 2023-01-11T20:58:13.9746321Z + [[ tsan == *xla* ]] 2023-01-11T20:58:13.9746514Z + [[ tsan == \j\i\t\_\l\e\g\a\c\y ]] 2023-01-11T20:58:13.9746795Z + [[ linux-focal-py3.7-clang7-tsan == *libtorch* ]] 2023-01-11T20:58:13.9747056Z + [[ tsan == distributed ]] 2023-01-11T20:58:13.9747246Z + [[ tsan == deploy ]] 2023-01-11T20:58:13.9747445Z + [[ tsan == *inductor_distributed* ]] 2023-01-11T20:58:13.9747632Z + [[ tsan == *dynamo* ]] 2023-01-11T20:58:13.9747817Z + [[ tsan == *dynamo* ]] 2023-01-11T20:58:13.9748012Z + [[ tsan == *inductor_huggingface* ]] 2023-01-11T20:58:13.9748201Z + [[ tsan == *inductor_timm* ]] 2023-01-11T20:58:13.9748403Z + [[ tsan == *inductor_torchbench* ]] 2023-01-11T20:58:13.9748602Z + [[ tsan == *inductor* ]] 2023-01-11T20:58:13.9748763Z + [[ 1 == 1 ]] 2023-01-11T20:58:13.9748955Z + [[ 1 -gt 1 ]] 2023-01-11T20:58:13.9749117Z + [[ 1 == 2 ]] 2023-01-11T20:58:13.9749296Z + [[ 1 -gt 2 ]] 2023-01-11T20:58:13.9749564Z + [[ linux-focal-py3.7-clang7-tsan == *vulkan* ]] 2023-01-11T20:58:13.9749879Z + [[ linux-focal-py3.7-clang7-tsan == *-bazel-* ]] 2023-01-11T20:58:13.9750240Z + [[ linux-focal-py3.7-clang7-tsan == *-mobile-lightweight-dispatch* ]] 2023-01-11T20:58:13.9750661Z + [[ linux-focal-py3.7-clang7-tsan == *-tsan* ]] 2023-01-11T20:58:13.9750943Z + test_libtorch 2023-01-11T20:58:13.9751333Z + [[ linux-focal-py3.7-clang7-tsan != *rocm* ]] 2023-01-11T20:58:13.9751763Z + echo 'Testing libtorch' 2023-01-11T20:58:13.9752079Z Testing libtorch 2023-01-11T20:58:13.9752719Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libbackend_with_compiler.so /opt/conda/lib/python3.7/site-packages/torch/bin 2023-01-11T20:58:13.9753590Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libjitbackend_test.so /opt/conda/lib/python3.7/site-packages/torch/bin 2023-01-11T20:58:13.9754465Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libc10.so /opt/conda/lib/python3.7/site-packages/torch/bin 2023-01-11T20:58:13.9755427Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libshm.so /opt/conda/lib/python3.7/site-packages/torch/bin 2023-01-11T20:58:13.9757106Z + ln -sf /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch.so /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_global_deps.so /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so /opt/conda/lib/python3.7/site-packages/torch/lib/libtorchbind_test.so /opt/conda/lib/python3.7/site-packages/torch/bin 2023-01-11T20:58:13.9762381Z + ln -sf '/opt/conda/lib/python3.7/site-packages/torch/lib/libtbb*' /opt/conda/lib/python3.7/site-packages/torch/bin 2023-01-11T20:58:13.9770848Z + TEST_REPORTS_DIR=test/test-reports/cpp-unittest/test_libtorch 2023-01-11T20:58:13.9771459Z + mkdir -p test/test-reports/cpp-unittest/test_libtorch 2023-01-11T20:58:13.9772093Z + python tools/download_mnist.py --quiet -d test/cpp/api/mnist 2023-01-11T20:58:13.9784172Z + [[ linux-focal-py3.7-clang7-tsan != *-tsan* ]] 2023-01-11T20:58:13.9784767Z + [[ linux-focal-py3.7-clang7-tsan == *cuda* ]] 2023-01-11T20:58:13.9785335Z + /opt/conda/lib/python3.7/site-packages/torch/bin/test_jit '--gtest_filter=-*CUDA' --gtest_output=xml:test/test-reports/cpp-unittest/test_libtorch/test_jit.xml 2023-01-11T20:58:14.0197100Z Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz ... 2023-01-11T20:58:14.3687648Z Downloading http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz ... 2023-01-11T20:58:14.3852616Z Downloading http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz ... 2023-01-11T20:58:14.4590128Z Downloading http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz ... 2023-01-11T20:58:17.6769294Z CUDA not available. Disabling CUDA and MultiCUDA tests 2023-01-11T20:58:17.6822018Z Note: Google Test filter = -*CUDA:*_CUDA:*_MultiCUDA 2023-01-11T20:58:17.6822545Z [==========] Running 569 tests from 119 test suites. 2023-01-11T20:58:17.6823125Z [----------] Global test environment set-up. 2023-01-11T20:58:17.6823441Z [----------] 2 tests from AddIfThenElseOpTest 2023-01-11T20:58:17.6823800Z [ RUN ] AddIfThenElseOpTest.AddIfThenElseOpSimple 2023-01-11T20:58:17.7321722Z [ OK ] AddIfThenElseOpTest.AddIfThenElseOpSimple (49 ms) 2023-01-11T20:58:17.7322180Z [ RUN ] AddIfThenElseOpTest.NoIfThenElseOpMultipleOutputs 2023-01-11T20:58:17.7328348Z [ OK ] AddIfThenElseOpTest.NoIfThenElseOpMultipleOutputs (0 ms) 2023-01-11T20:58:17.7328836Z [----------] 2 tests from AddIfThenElseOpTest (50 ms total) 2023-01-11T20:58:17.7328999Z 2023-01-11T20:58:17.7329175Z [----------] 15 tests from TopologicalMoveTest 2023-01-11T20:58:17.7329556Z [ RUN ] TopologicalMoveTest.SplitsDeps 2023-01-11T20:58:17.7338189Z [ OK ] TopologicalMoveTest.SplitsDeps (0 ms) 2023-01-11T20:58:17.7338554Z [ RUN ] TopologicalMoveTest.MoveAfterBackwardSimple 2023-01-11T20:58:17.7345452Z [ OK ] TopologicalMoveTest.MoveAfterBackwardSimple (0 ms) 2023-01-11T20:58:17.7346095Z [ RUN ] TopologicalMoveTest.MoveAfterBackwardInvalid 2023-01-11T20:58:17.7353115Z [ OK ] TopologicalMoveTest.MoveAfterBackwardInvalid (0 ms) 2023-01-11T20:58:17.7353586Z [ RUN ] TopologicalMoveTest.MoveAfterNoOp 2023-01-11T20:58:17.7359822Z [ OK ] TopologicalMoveTest.MoveAfterNoOp (0 ms) 2023-01-11T20:58:17.7360410Z [ RUN ] TopologicalMoveTest.MoveAfterBackwardMultipleDeps 2023-01-11T20:58:17.7367105Z [ OK ] TopologicalMoveTest.MoveAfterBackwardMultipleDeps (0 ms) 2023-01-11T20:58:17.7367711Z [ RUN ] TopologicalMoveTest.MoveAfterBackwardNonZeroWorkingSet 2023-01-11T20:58:17.7374717Z [ OK ] TopologicalMoveTest.MoveAfterBackwardNonZeroWorkingSet (0 ms) 2023-01-11T20:58:17.7375351Z [ RUN ] TopologicalMoveTest.MoveAfterForwardSimple 2023-01-11T20:58:17.7381723Z [ OK ] TopologicalMoveTest.MoveAfterForwardSimple (0 ms) 2023-01-11T20:58:17.7382396Z [ RUN ] TopologicalMoveTest.MoveAfterForwardNonZeroWorkingSet 2023-01-11T20:58:17.7388729Z [ OK ] TopologicalMoveTest.MoveAfterForwardNonZeroWorkingSet (0 ms) 2023-01-11T20:58:17.7389347Z [ RUN ] TopologicalMoveTest.MoveBeforeForwardSimple 2023-01-11T20:58:17.7395724Z [ OK ] TopologicalMoveTest.MoveBeforeForwardSimple (0 ms) 2023-01-11T20:58:17.7396369Z [ RUN ] TopologicalMoveTest.MoveBeforeBackwardSimple 2023-01-11T20:58:17.7402879Z [ OK ] TopologicalMoveTest.MoveBeforeBackwardSimple (0 ms) 2023-01-11T20:58:17.7403471Z [ RUN ] TopologicalMoveTest.MoveBeforeNoOp 2023-01-11T20:58:17.7409711Z [ OK ] TopologicalMoveTest.MoveBeforeNoOp (0 ms) 2023-01-11T20:58:17.7410340Z [ RUN ] TopologicalMoveTest.MoveBeforeForwardWithDeps 2023-01-11T20:58:17.7417205Z [ OK ] TopologicalMoveTest.MoveBeforeForwardWithDeps (0 ms) 2023-01-11T20:58:17.7417833Z [ RUN ] TopologicalMoveTest.MoveBeforeBackwardWithDeps 2023-01-11T20:58:17.7424903Z [ OK ] TopologicalMoveTest.MoveBeforeBackwardWithDeps (0 ms) 2023-01-11T20:58:17.7425347Z [ RUN ] TopologicalMoveTest.DepsDisallowMove 2023-01-11T20:58:17.7435857Z [ OK ] TopologicalMoveTest.DepsDisallowMove (1 ms) 2023-01-11T20:58:17.7436518Z [ RUN ] TopologicalMoveTest.MoveAfterBeforeWithDeps 2023-01-11T20:58:17.7444032Z [ OK ] TopologicalMoveTest.MoveAfterBeforeWithDeps (0 ms) 2023-01-11T20:58:17.7444700Z [----------] 15 tests from TopologicalMoveTest (11 ms total) 2023-01-11T20:58:17.7444878Z 2023-01-11T20:58:17.7445049Z [----------] 6 tests from AliasAnalysisTest 2023-01-11T20:58:17.7445389Z [ RUN ] AliasAnalysisTest.AliasingMutationBlocksMoves 2023-01-11T20:58:17.7960045Z [ OK ] AliasAnalysisTest.AliasingMutationBlocksMoves (51 ms) 2023-01-11T20:58:17.7960571Z [ RUN ] AliasAnalysisTest.AliasingMutationBlocksMoves2 2023-01-11T20:58:17.7967694Z [ OK ] AliasAnalysisTest.AliasingMutationBlocksMoves2 (0 ms) 2023-01-11T20:58:17.7968129Z [ RUN ] AliasAnalysisTest.SideEffectsBlockMoves 2023-01-11T20:58:17.7970371Z [ OK ] AliasAnalysisTest.SideEffectsBlockMoves (0 ms) 2023-01-11T20:58:17.7970765Z [ RUN ] AliasAnalysisTest.MovingAcrossInnerBlocks 2023-01-11T20:58:17.7980061Z [ OK ] AliasAnalysisTest.MovingAcrossInnerBlocks (0 ms) 2023-01-11T20:58:17.7980434Z [ RUN ] AliasAnalysisTest.NoneHasNoWriters 2023-01-11T20:58:17.7987458Z [ OK ] AliasAnalysisTest.NoneHasNoWriters (0 ms) 2023-01-11T20:58:17.7987877Z [ RUN ] AliasAnalysisTest.SafeToChangeAliasingRelationship 2023-01-11T20:58:17.8001504Z [ OK ] AliasAnalysisTest.SafeToChangeAliasingRelationship (1 ms) 2023-01-11T20:58:17.8001927Z [----------] 6 tests from AliasAnalysisTest (55 ms total) 2023-01-11T20:58:17.8002100Z 2023-01-11T20:58:17.8002262Z [----------] 4 tests from WriteTrackingTest 2023-01-11T20:58:17.8002722Z [ RUN ] WriteTrackingTest.Basic 2023-01-11T20:58:17.8008938Z [ OK ] WriteTrackingTest.Basic (0 ms) 2023-01-11T20:58:17.8009250Z [ RUN ] WriteTrackingTest.IsMutable 2023-01-11T20:58:17.8013068Z [ OK ] WriteTrackingTest.IsMutable (0 ms) 2023-01-11T20:58:17.8013429Z [ RUN ] WriteTrackingTest.IsImmutable 2023-01-11T20:58:17.8017757Z [ OK ] WriteTrackingTest.IsImmutable (0 ms) 2023-01-11T20:58:17.8018143Z [ RUN ] WriteTrackingTest.HasWriters 2023-01-11T20:58:17.8023703Z [ OK ] WriteTrackingTest.HasWriters (0 ms) 2023-01-11T20:58:17.8024147Z [----------] 4 tests from WriteTrackingTest (2 ms total) 2023-01-11T20:58:17.8024324Z 2023-01-11T20:58:17.8024502Z [----------] 13 tests from ContainerAliasingTest 2023-01-11T20:58:17.8024839Z [ RUN ] ContainerAliasingTest.MayContainAlias 2023-01-11T20:58:17.8034915Z [ OK ] ContainerAliasingTest.MayContainAlias (1 ms) 2023-01-11T20:58:17.8035302Z [ RUN ] ContainerAliasingTest.MayContainAlias_cast 2023-01-11T20:58:17.8046086Z [ OK ] ContainerAliasingTest.MayContainAlias_cast (1 ms) 2023-01-11T20:58:17.8046531Z [ RUN ] ContainerAliasingTest.PrimitveValuesDontAliasContainers 2023-01-11T20:58:17.8054583Z [ OK ] ContainerAliasingTest.PrimitveValuesDontAliasContainers (0 ms) 2023-01-11T20:58:17.8055010Z [ RUN ] ContainerAliasingTest.UnionAliasing 2023-01-11T20:58:17.8062029Z [ OK ] ContainerAliasingTest.UnionAliasing (0 ms) 2023-01-11T20:58:17.8062418Z [ RUN ] ContainerAliasingTest.InputsCanAliasOutputs 2023-01-11T20:58:17.8066746Z [ OK ] ContainerAliasingTest.InputsCanAliasOutputs (0 ms) 2023-01-11T20:58:17.8067153Z [ RUN ] ContainerAliasingTest.NestedTupleConstruct 2023-01-11T20:58:17.8078569Z [ OK ] ContainerAliasingTest.NestedTupleConstruct (1 ms) 2023-01-11T20:58:17.8078947Z [ RUN ] ContainerAliasingTest.NestedTypes 2023-01-11T20:58:17.8087265Z [ OK ] ContainerAliasingTest.NestedTypes (0 ms) 2023-01-11T20:58:17.8087603Z [ RUN ] ContainerAliasingTest.Simple 2023-01-11T20:58:17.8092310Z [ OK ] ContainerAliasingTest.Simple (0 ms) 2023-01-11T20:58:17.8092639Z [ RUN ] ContainerAliasingTest.Lists 2023-01-11T20:58:17.8098941Z [ OK ] ContainerAliasingTest.Lists (0 ms) 2023-01-11T20:58:17.8099265Z [ RUN ] ContainerAliasingTest.Lists2 2023-01-11T20:58:17.8114618Z [ OK ] ContainerAliasingTest.Lists2 (1 ms) 2023-01-11T20:58:17.8115023Z [ RUN ] ContainerAliasingTest.Conservative 2023-01-11T20:58:17.8134170Z [ OK ] ContainerAliasingTest.Conservative (1 ms) 2023-01-11T20:58:17.8134690Z [ RUN ] ContainerAliasingTest.MovesAcrossContainedWrites 2023-01-11T20:58:17.8159961Z [ OK ] ContainerAliasingTest.MovesAcrossContainedWrites (2 ms) 2023-01-11T20:58:17.8160425Z [ RUN ] ContainerAliasingTest.MovesAcrossContainedWritesNested 2023-01-11T20:58:17.8186601Z [ OK ] ContainerAliasingTest.MovesAcrossContainedWritesNested (2 ms) 2023-01-11T20:58:17.8187069Z [----------] 13 tests from ContainerAliasingTest (16 ms total) 2023-01-11T20:58:17.8187250Z 2023-01-11T20:58:17.8187402Z [----------] 3 tests from WildcardsTest 2023-01-11T20:58:17.8187675Z [ RUN ] WildcardsTest.Basic 2023-01-11T20:58:17.8203817Z [ OK ] WildcardsTest.Basic (1 ms) 2023-01-11T20:58:17.8204176Z [ RUN ] WildcardsTest.TypeIsolation 2023-01-11T20:58:17.8214733Z [ OK ] WildcardsTest.TypeIsolation (1 ms) 2023-01-11T20:58:17.8215093Z [ RUN ] WildcardsTest.InvariantContainerAliasing 2023-01-11T20:58:17.8230318Z [ OK ] WildcardsTest.InvariantContainerAliasing (1 ms) 2023-01-11T20:58:17.8230960Z [----------] 3 tests from WildcardsTest (4 ms total) 2023-01-11T20:58:17.8231123Z 2023-01-11T20:58:17.8231300Z [----------] 18 tests from AliasRegistrationTest 2023-01-11T20:58:17.8231686Z [ RUN ] AliasRegistrationTest.ConservativeWithInferredSchema 2023-01-11T20:58:17.8241051Z [ OK ] AliasRegistrationTest.ConservativeWithInferredSchema (1 ms) 2023-01-11T20:58:17.8241523Z [ RUN ] AliasRegistrationTest.ConservativeWithSpecifiedSchema 2023-01-11T20:58:17.8251449Z [ OK ] AliasRegistrationTest.ConservativeWithSpecifiedSchema (1 ms) 2023-01-11T20:58:17.8252036Z [ RUN ] AliasRegistrationTest.ConservativeWithAliasingAnnotationsShouldError 2023-01-11T20:58:17.8290670Z [ OK ] AliasRegistrationTest.ConservativeWithAliasingAnnotationsShouldError (3 ms) 2023-01-11T20:58:17.8291258Z [ RUN ] AliasRegistrationTest.ConservativeWithAliasingAnnotationsShouldError2 2023-01-11T20:58:17.8327035Z [ OK ] AliasRegistrationTest.ConservativeWithAliasingAnnotationsShouldError2 (3 ms) 2023-01-11T20:58:17.8327592Z [ RUN ] AliasRegistrationTest.FromSchemaWithInferredSchemaShouldError 2023-01-11T20:58:17.8342468Z [ OK ] AliasRegistrationTest.FromSchemaWithInferredSchemaShouldError (1 ms) 2023-01-11T20:58:17.8342936Z [ RUN ] AliasRegistrationTest.FromSchemaInferredPure 2023-01-11T20:58:17.8352624Z [ OK ] AliasRegistrationTest.FromSchemaInferredPure (0 ms) 2023-01-11T20:58:17.8353026Z [ RUN ] AliasRegistrationTest.FromSchemaAliased 2023-01-11T20:58:17.8363718Z [ OK ] AliasRegistrationTest.FromSchemaAliased (1 ms) 2023-01-11T20:58:17.8364099Z [ RUN ] AliasRegistrationTest.FromSchemaPure 2023-01-11T20:58:17.8374871Z [ OK ] AliasRegistrationTest.FromSchemaPure (1 ms) 2023-01-11T20:58:17.8375220Z [ RUN ] AliasRegistrationTest.PureNoSchema 2023-01-11T20:58:17.8384602Z [ OK ] AliasRegistrationTest.PureNoSchema (0 ms) 2023-01-11T20:58:17.8384966Z [ RUN ] AliasRegistrationTest.PureWithSchema 2023-01-11T20:58:17.8394666Z [ OK ] AliasRegistrationTest.PureWithSchema (0 ms) 2023-01-11T20:58:17.8395137Z [ RUN ] AliasRegistrationTest.PureWithAnnotationsShouldError 2023-01-11T20:58:17.8431155Z [ OK ] AliasRegistrationTest.PureWithAnnotationsShouldError (3 ms) 2023-01-11T20:58:17.8431588Z [ RUN ] AliasRegistrationTest.AliasMoveAtenListOp 2023-01-11T20:58:17.8441754Z [ OK ] AliasRegistrationTest.AliasMoveAtenListOp (1 ms) 2023-01-11T20:58:17.8442265Z [ RUN ] AliasRegistrationTest.AliasMoveForTupleConstructWithSingleUseAsGraphOutput 2023-01-11T20:58:17.8447293Z [ OK ] AliasRegistrationTest.AliasMoveForTupleConstructWithSingleUseAsGraphOutput (0 ms) 2023-01-11T20:58:17.8447848Z [ RUN ] AliasRegistrationTest.RecursiveSubgraphTupleContainment 2023-01-11T20:58:17.8454482Z [ OK ] AliasRegistrationTest.RecursiveSubgraphTupleContainment (0 ms) 2023-01-11T20:58:17.8454995Z [ RUN ] AliasRegistrationTest.WildcardAliasForTupleConstructWithUses 2023-01-11T20:58:17.8465695Z [ OK ] AliasRegistrationTest.WildcardAliasForTupleConstructWithUses (1 ms) 2023-01-11T20:58:17.8466172Z [ RUN ] AliasRegistrationTest.ATenSplitIntListAliasCheck 2023-01-11T20:58:17.8481426Z [ OK ] AliasRegistrationTest.ATenSplitIntListAliasCheck (1 ms) 2023-01-11T20:58:17.8481850Z [ RUN ] AliasRegistrationTest.ATenSplitIntAliasCheck 2023-01-11T20:58:17.8495573Z [ OK ] AliasRegistrationTest.ATenSplitIntAliasCheck (1 ms) 2023-01-11T20:58:17.8496029Z [ RUN ] AliasRegistrationTest.PureWithAnnotationsShouldError2 2023-01-11T20:58:17.8532199Z [ OK ] AliasRegistrationTest.PureWithAnnotationsShouldError2 (3 ms) 2023-01-11T20:58:17.8532805Z [----------] 18 tests from AliasRegistrationTest (30 ms total) 2023-01-11T20:58:17.8532991Z 2023-01-11T20:58:17.8533165Z [----------] 2 tests from IRNonDeterminismTest 2023-01-11T20:58:17.8533469Z [ RUN ] IRNonDeterminismTest.Basic 2023-01-11T20:58:17.8539645Z [ OK ] IRNonDeterminismTest.Basic (0 ms) 2023-01-11T20:58:17.8540065Z [ RUN ] IRNonDeterminismTest.DropoutSpecialCase 2023-01-11T20:58:17.8550353Z [ OK ] IRNonDeterminismTest.DropoutSpecialCase (1 ms) 2023-01-11T20:58:17.8550788Z [----------] 2 tests from IRNonDeterminismTest (1 ms total) 2023-01-11T20:58:17.8550963Z 2023-01-11T20:58:17.8551178Z [----------] 1 test from NonDeterminismBackwardsCompatibility 2023-01-11T20:58:17.8551637Z [ RUN ] NonDeterminismBackwardsCompatibility.BackwardsCompatibility 2023-01-11T20:58:17.8596942Z [ OK ] NonDeterminismBackwardsCompatibility.BackwardsCompatibility (4 ms) 2023-01-11T20:58:17.8597434Z [----------] 1 test from NonDeterminismBackwardsCompatibility (4 ms total) 2023-01-11T20:58:17.8597698Z 2023-01-11T20:58:17.8597857Z [----------] 3 tests from AutodiffTest 2023-01-11T20:58:17.8598139Z [ RUN ] AutodiffTest.ADFormulas 2023-01-11T20:58:18.5188499Z [ OK ] AutodiffTest.ADFormulas (658 ms) 2023-01-11T20:58:18.5189053Z [ RUN ] AutodiffTest.Differentiate 2023-01-11T20:58:18.5245338Z [ OK ] AutodiffTest.Differentiate (5 ms) 2023-01-11T20:58:18.5246019Z [ RUN ] AutodiffTest.DifferentiateWithRequiresGrad 2023-01-11T20:58:18.5607520Z [ OK ] AutodiffTest.DifferentiateWithRequiresGrad (36 ms) 2023-01-11T20:58:18.5608265Z [----------] 3 tests from AutodiffTest (700 ms total) 2023-01-11T20:58:18.5608541Z 2023-01-11T20:58:18.5608926Z [----------] 1 test from AutodiffRemoveUnusedGradientsTest 2023-01-11T20:58:18.5609589Z [ RUN ] AutodiffRemoveUnusedGradientsTest.Linear 2023-01-11T20:58:18.5773748Z [ OK ] AutodiffRemoveUnusedGradientsTest.Linear (16 ms) 2023-01-11T20:58:18.5774717Z [----------] 1 test from AutodiffRemoveUnusedGradientsTest (16 ms total) 2023-01-11T20:58:18.5775074Z 2023-01-11T20:58:18.5775345Z [----------] 1 test from UpgraderLoad 2023-01-11T20:58:18.5775916Z [ RUN ] UpgraderLoad.CanPopulateUpgradersGraph 2023-01-11T20:58:18.6372605Z [ OK ] UpgraderLoad.CanPopulateUpgradersGraph (59 ms) 2023-01-11T20:58:18.6373309Z [----------] 1 test from UpgraderLoad (59 ms total) 2023-01-11T20:58:18.6373587Z 2023-01-11T20:58:18.6373888Z [----------] 4 tests from OpReplacementTest 2023-01-11T20:58:18.6375034Z [ RUN ] OpReplacementTest.ReplaceDivInSimpleFunction 2023-01-11T20:58:18.6403520Z [ OK ] OpReplacementTest.ReplaceDivInSimpleFunction (3 ms) 2023-01-11T20:58:18.6404340Z [ RUN ] OpReplacementTest.ReplaceTwoOpsInSimpleFunction 2023-01-11T20:58:18.6438802Z [ OK ] OpReplacementTest.ReplaceTwoOpsInSimpleFunction (3 ms) 2023-01-11T20:58:18.6439592Z [ RUN ] OpReplacementTest.ReplaceDivInNestedFunction 2023-01-11T20:58:18.6478295Z [ OK ] OpReplacementTest.ReplaceDivInNestedFunction (3 ms) 2023-01-11T20:58:18.6479140Z [ RUN ] OpReplacementTest.ReplaceTestSubcmulInSimpleFunction 2023-01-11T20:58:18.6507461Z [ OK ] OpReplacementTest.ReplaceTestSubcmulInSimpleFunction (2 ms) 2023-01-11T20:58:18.6508114Z [----------] 4 tests from OpReplacementTest (13 ms total) 2023-01-11T20:58:18.6508296Z 2023-01-11T20:58:18.6508435Z [----------] 4 tests from UpgraderUtils 2023-01-11T20:58:18.6508935Z [ RUN ] UpgraderUtils.FindCorrectUpgrader 2023-01-11T20:58:18.6509451Z [ OK ] UpgraderUtils.FindCorrectUpgrader (0 ms) 2023-01-11T20:58:18.6509856Z [ RUN ] UpgraderUtils.IsVersionMapSorted 2023-01-11T20:58:18.6510405Z [ OK ] UpgraderUtils.IsVersionMapSorted (0 ms) 2023-01-11T20:58:18.6510743Z [ RUN ] UpgraderUtils.FindIfOpIsCurrent 2023-01-11T20:58:18.6511084Z [ OK ] UpgraderUtils.FindIfOpIsCurrent (0 ms) 2023-01-11T20:58:18.6511441Z [ RUN ] UpgraderUtils.CanLoadHistoricOp 2023-01-11T20:58:18.6512044Z [ OK ] UpgraderUtils.CanLoadHistoricOp (0 ms) 2023-01-11T20:58:18.6512453Z [----------] 4 tests from UpgraderUtils (0 ms total) 2023-01-11T20:58:18.6512614Z 2023-01-11T20:58:18.6512762Z [----------] 9 tests from BackendTest 2023-01-11T20:58:18.6513020Z [ RUN ] BackendTest.ToBackend 2023-01-11T20:58:18.7236533Z [ OK ] BackendTest.ToBackend (72 ms) 2023-01-11T20:58:18.7236953Z [ RUN ] BackendTest.ToBackendNotAvailable 2023-01-11T20:58:18.7573688Z [W backend_detail.cpp:393] Warning: Backend [test_backend_unavailable] is not available. Execution of this Module is still possible by saving and loading on a device where the backend is available. (function codegen_backend_module) 2023-01-11T20:58:18.7827614Z [ OK ] BackendTest.ToBackendNotAvailable (59 ms) 2023-01-11T20:58:18.7827953Z [ RUN ] BackendTest.TestCompiler 2023-01-11T20:58:18.8679904Z [ OK ] BackendTest.TestCompiler (85 ms) 2023-01-11T20:58:18.8680266Z [ RUN ] BackendTest.TestCompilerWithStringTable 2023-01-11T20:58:18.9544088Z [ OK ] BackendTest.TestCompilerWithStringTable (86 ms) 2023-01-11T20:58:18.9544451Z [ RUN ] BackendTest.TestComposite 2023-01-11T20:58:19.1189569Z [ OK ] BackendTest.TestComposite (164 ms) 2023-01-11T20:58:19.1189911Z [ RUN ] BackendTest.TestPrimDtype 2023-01-11T20:58:19.1248834Z [ OK ] BackendTest.TestPrimDtype (5 ms) 2023-01-11T20:58:19.1249172Z [ RUN ] BackendTest.TestCompositeWithSetStates 2023-01-11T20:58:19.2968805Z [ OK ] BackendTest.TestCompositeWithSetStates (171 ms) 2023-01-11T20:58:19.2969601Z [ RUN ] BackendTest.TestConsistencyOfCompositeWithSetStates 2023-01-11T20:58:19.6232272Z [ OK ] BackendTest.TestConsistencyOfCompositeWithSetStates (326 ms) 2023-01-11T20:58:19.6232760Z [ RUN ] BackendTest.TestCompilerNotSupport 2023-01-11T20:58:19.6272075Z [ OK ] BackendTest.TestCompilerNotSupport (4 ms) 2023-01-11T20:58:19.6272480Z [----------] 9 tests from BackendTest (975 ms total) 2023-01-11T20:58:19.6272644Z 2023-01-11T20:58:19.6272817Z [----------] 6 tests from BackendTestDebugInfo 2023-01-11T20:58:19.6273142Z [ RUN ] BackendTestDebugInfo.TestCompiler 2023-01-11T20:58:19.7110757Z [ OK ] BackendTestDebugInfo.TestCompiler (83 ms) 2023-01-11T20:58:19.7111157Z [ RUN ] BackendTestDebugInfo.TestCompilerWithStringTable 2023-01-11T20:58:19.7958133Z [ OK ] BackendTestDebugInfo.TestCompilerWithStringTable (84 ms) 2023-01-11T20:58:19.7958826Z [ RUN ] BackendTestDebugInfo.TestExceptionStackForCompilerWithModuleHierarchy 2023-01-11T20:58:19.8853844Z [ OK ] BackendTestDebugInfo.TestExceptionStackForCompilerWithModuleHierarchy (89 ms) 2023-01-11T20:58:19.8854688Z [ RUN ] BackendTestDebugInfo.TestExceptionStackForCompilerWithTwoLevelModuleHierarchy 2023-01-11T20:58:19.9772020Z [ OK ] BackendTestDebugInfo.TestExceptionStackForCompilerWithTwoLevelModuleHierarchy (91 ms) 2023-01-11T20:58:19.9772681Z [ RUN ] BackendTestDebugInfo.TestExceptionStackForCompilerWithLoweredSubModule 2023-01-11T20:58:20.0724720Z [ OK ] BackendTestDebugInfo.TestExceptionStackForCompilerWithLoweredSubModule (95 ms) 2023-01-11T20:58:20.0725380Z [ RUN ] BackendTestDebugInfo.TestExceptionStackForCompilerWithSelectiveLoweredSubModule 2023-01-11T20:58:20.1726317Z [ OK ] BackendTestDebugInfo.TestExceptionStackForCompilerWithSelectiveLoweredSubModule (100 ms) 2023-01-11T20:58:20.1727159Z [----------] 6 tests from BackendTestDebugInfo (545 ms total) 2023-01-11T20:58:20.1727351Z 2023-01-11T20:58:20.1727566Z [----------] 4 tests from ClassImportTest 2023-01-11T20:58:20.1727845Z [ RUN ] ClassImportTest.Basic 2023-01-11T20:58:20.1811104Z [ OK ] ClassImportTest.Basic (8 ms) 2023-01-11T20:58:20.1811484Z [ RUN ] ClassImportTest.ScriptObject 2023-01-11T20:58:20.1952630Z [ OK ] ClassImportTest.ScriptObject (14 ms) 2023-01-11T20:58:20.1952994Z [ RUN ] ClassImportTest.ClassDerive 2023-01-11T20:58:20.1962921Z [ OK ] ClassImportTest.ClassDerive (1 ms) 2023-01-11T20:58:20.1963307Z [ RUN ] ClassImportTest.CustomClass 2023-01-11T20:58:20.1982394Z [ OK ] ClassImportTest.CustomClass (1 ms) 2023-01-11T20:58:20.1982823Z [----------] 4 tests from ClassImportTest (25 ms total) 2023-01-11T20:58:20.1982994Z 2023-01-11T20:58:20.1983159Z [----------] 1 test from ClassParserTest 2023-01-11T20:58:20.1983442Z [ RUN ] ClassParserTest.Basic 2023-01-11T20:58:20.1989085Z [ OK ] ClassParserTest.Basic (0 ms) 2023-01-11T20:58:20.1989661Z [----------] 1 test from ClassParserTest (0 ms total) 2023-01-11T20:58:20.1989903Z 2023-01-11T20:58:20.1990141Z [----------] 3 tests from ClassTypeTest 2023-01-11T20:58:20.1990518Z [ RUN ] ClassTypeTest.AddRemoveAttr 2023-01-11T20:58:20.1991022Z [ OK ] ClassTypeTest.AddRemoveAttr (0 ms) 2023-01-11T20:58:20.1991411Z [ RUN ] ClassTypeTest.AddRemoveConstant 2023-01-11T20:58:20.1991799Z [ OK ] ClassTypeTest.AddRemoveConstant (0 ms) 2023-01-11T20:58:20.1992156Z [ RUN ] ClassTypeTest.IdenticalTypesDifferentCus 2023-01-11T20:58:20.2008324Z [ OK ] ClassTypeTest.IdenticalTypesDifferentCus (1 ms) 2023-01-11T20:58:20.2009020Z [----------] 3 tests from ClassTypeTest (1 ms total) 2023-01-11T20:58:20.2009257Z 2023-01-11T20:58:20.2009511Z [----------] 2 tests from TestCodeTemplate 2023-01-11T20:58:20.2009815Z [ RUN ] TestCodeTemplate.Copying 2023-01-11T20:58:20.2010299Z [ OK ] TestCodeTemplate.Copying (0 ms) 2023-01-11T20:58:20.2010859Z [ RUN ] TestCodeTemplate.Formatting 2023-01-11T20:58:20.2011173Z [ OK ] TestCodeTemplate.Formatting (0 ms) 2023-01-11T20:58:20.2011506Z [----------] 2 tests from TestCodeTemplate (0 ms total) 2023-01-11T20:58:20.2011667Z 2023-01-11T20:58:20.2011820Z [----------] 13 tests from ConcatOptTest 2023-01-11T20:58:20.2012182Z [ RUN ] ConcatOptTest.SimpleCommonInputsEliminationPrefix 2023-01-11T20:58:20.2415140Z [ OK ] ConcatOptTest.SimpleCommonInputsEliminationPrefix (40 ms) 2023-01-11T20:58:20.2415618Z [ RUN ] ConcatOptTest.SimpleCommonInputsEliminationSuffix 2023-01-11T20:58:20.2784050Z [ OK ] ConcatOptTest.SimpleCommonInputsEliminationSuffix (36 ms) 2023-01-11T20:58:20.2784584Z [ RUN ] ConcatOptTest.CommonInputsEliminationWithDifferentOrderInputs 2023-01-11T20:58:20.3160010Z [ OK ] ConcatOptTest.CommonInputsEliminationWithDifferentOrderInputs (37 ms) 2023-01-11T20:58:20.3160522Z [ RUN ] ConcatOptTest.MoreCommonInputsElimination 2023-01-11T20:58:20.3782853Z [ OK ] ConcatOptTest.MoreCommonInputsElimination (62 ms) 2023-01-11T20:58:20.3783253Z [ RUN ] ConcatOptTest.ExpandConcat 2023-01-11T20:58:20.4083072Z [ OK ] ConcatOptTest.ExpandConcat (29 ms) 2023-01-11T20:58:20.4083477Z [ RUN ] ConcatOptTest.ConcatWithoutResultShape 2023-01-11T20:58:20.4367891Z [ OK ] ConcatOptTest.ConcatWithoutResultShape (28 ms) 2023-01-11T20:58:20.4368307Z [ RUN ] ConcatOptTest.ConcatWithoutInputShape 2023-01-11T20:58:20.4653695Z [ OK ] ConcatOptTest.ConcatWithoutInputShape (28 ms) 2023-01-11T20:58:20.4654312Z [ RUN ] ConcatOptTest.UseVariadicCat 2023-01-11T20:58:20.5237019Z [ OK ] ConcatOptTest.UseVariadicCat (58 ms) 2023-01-11T20:58:20.5237775Z [ RUN ] ConcatOptTest.UseVariadicCatWithMultipleListUses 2023-01-11T20:58:20.5500002Z [ OK ] ConcatOptTest.UseVariadicCatWithMultipleListUses (26 ms) 2023-01-11T20:58:20.5500814Z [ RUN ] ConcatOptTest.UseVariadicCatWithListMutationAfterCat 2023-01-11T20:58:20.5837474Z [ OK ] ConcatOptTest.UseVariadicCatWithListMutationAfterCat (33 ms) 2023-01-11T20:58:20.5838330Z [ RUN ] ConcatOptTest.UseVariadicCatWithListMutationBeforeCat 2023-01-11T20:58:20.6217342Z [ OK ] ConcatOptTest.UseVariadicCatWithListMutationBeforeCat (37 ms) 2023-01-11T20:58:20.6218182Z [ RUN ] ConcatOptTest.UseVariadicCatWithMultipleListMutations 2023-01-11T20:58:20.6811313Z [ OK ] ConcatOptTest.UseVariadicCatWithMultipleListMutations (59 ms) 2023-01-11T20:58:20.6812366Z [ RUN ] ConcatOptTest.RemoveListMutationUseVariadicCatAndCommonInputsElimination 2023-01-11T20:58:20.7225326Z [ OK ] ConcatOptTest.RemoveListMutationUseVariadicCatAndCommonInputsElimination (41 ms) 2023-01-11T20:58:20.7226204Z [----------] 13 tests from ConcatOptTest (521 ms total) 2023-01-11T20:58:20.7226491Z 2023-01-11T20:58:20.7226804Z [----------] 1 test from OptimizeConcatTest 2023-01-11T20:58:20.7227485Z [ RUN ] OptimizeConcatTest.UseVariadicCatReplaceMultiple 2023-01-11T20:58:20.7643425Z [ OK ] OptimizeConcatTest.UseVariadicCatReplaceMultiple (41 ms) 2023-01-11T20:58:20.7644207Z [----------] 1 test from OptimizeConcatTest (41 ms total) 2023-01-11T20:58:20.7644506Z 2023-01-11T20:58:20.7644769Z [----------] 3 tests from ConcatOpt 2023-01-11T20:58:20.7645308Z [ RUN ] ConcatOpt.CombineConcatsSimpleCase 2023-01-11T20:58:20.7665675Z [ OK ] ConcatOpt.CombineConcatsSimpleCase (2 ms) 2023-01-11T20:58:20.7666343Z [ RUN ] ConcatOpt.CombineConcatsLongChain 2023-01-11T20:58:20.7692252Z [ OK ] ConcatOpt.CombineConcatsLongChain (2 ms) 2023-01-11T20:58:20.7692914Z [ RUN ] ConcatOpt.CombineConcatsMutation 2023-01-11T20:58:20.7707175Z [ OK ] ConcatOpt.CombineConcatsMutation (1 ms) 2023-01-11T20:58:20.7707806Z [----------] 3 tests from ConcatOpt (6 ms total) 2023-01-11T20:58:20.7708058Z 2023-01-11T20:58:20.7708359Z [----------] 4 tests from ConstantPoolingTest 2023-01-11T20:58:20.7708885Z [ RUN ] ConstantPoolingTest.Int 2023-01-11T20:58:20.7714190Z [ OK ] ConstantPoolingTest.Int (0 ms) 2023-01-11T20:58:20.7714956Z [ RUN ] ConstantPoolingTest.PoolingAcrossBlocks 2023-01-11T20:58:20.7728969Z [ OK ] ConstantPoolingTest.PoolingAcrossBlocks (1 ms) 2023-01-11T20:58:20.7729715Z [ RUN ] ConstantPoolingTest.PoolingDifferentDevices 2023-01-11T20:58:20.7758348Z [ OK ] ConstantPoolingTest.PoolingDifferentDevices (2 ms) 2023-01-11T20:58:20.7759053Z [ RUN ] ConstantPoolingTest.DictConstantPooling 2023-01-11T20:58:20.7771320Z [ OK ] ConstantPoolingTest.DictConstantPooling (1 ms) 2023-01-11T20:58:20.7772023Z [----------] 4 tests from ConstantPoolingTest (6 ms total) 2023-01-11T20:58:20.7772330Z 2023-01-11T20:58:20.7772601Z [----------] 1 test from CleanupPassTest 2023-01-11T20:58:20.7773099Z [ RUN ] CleanupPassTest.Basic 2023-01-11T20:58:20.7797322Z [ OK ] CleanupPassTest.Basic (2 ms) 2023-01-11T20:58:20.7797943Z [----------] 1 test from CleanupPassTest (2 ms total) 2023-01-11T20:58:20.7798217Z 2023-01-11T20:58:20.7798564Z [----------] 1 test from CreateAutodiffSubgraphsTest 2023-01-11T20:58:20.7799163Z [ RUN ] CreateAutodiffSubgraphsTest.Basic 2023-01-11T20:58:20.7852331Z [ OK ] CreateAutodiffSubgraphsTest.Basic (5 ms) 2023-01-11T20:58:20.7853039Z [----------] 1 test from CreateAutodiffSubgraphsTest (5 ms total) 2023-01-11T20:58:20.7853347Z 2023-01-11T20:58:20.7853622Z [----------] 4 tests from CustomClassTest 2023-01-11T20:58:20.7854181Z [ RUN ] CustomClassTest.TorchbindIValueAPI 2023-01-11T20:58:20.7938207Z [ OK ] CustomClassTest.TorchbindIValueAPI (8 ms) 2023-01-11T20:58:20.7938815Z [ RUN ] CustomClassTest.ScalarTypeClass 2023-01-11T20:58:20.7959199Z [ OK ] CustomClassTest.ScalarTypeClass (2 ms) 2023-01-11T20:58:20.7959803Z [ RUN ] CustomClassTest.TestDocString 2023-01-11T20:58:20.7960400Z [ OK ] CustomClassTest.TestDocString (0 ms) 2023-01-11T20:58:20.7960965Z [ RUN ] CustomClassTest.Serialization 2023-01-11T20:58:20.8190170Z [ OK ] CustomClassTest.Serialization (22 ms) 2023-01-11T20:58:20.8190825Z [----------] 4 tests from CustomClassTest (33 ms total) 2023-01-11T20:58:20.8191123Z 2023-01-11T20:58:20.8191428Z [----------] 5 tests from CustomOperatorTest 2023-01-11T20:58:20.8191999Z [ RUN ] CustomOperatorTest.InferredSchema 2023-01-11T20:58:20.8208756Z [ OK ] CustomOperatorTest.InferredSchema (1 ms) 2023-01-11T20:58:20.8209391Z [ RUN ] CustomOperatorTest.ExplicitSchema 2023-01-11T20:58:20.8226115Z [ OK ] CustomOperatorTest.ExplicitSchema (1 ms) 2023-01-11T20:58:20.8226482Z [ RUN ] CustomOperatorTest.ListParameters 2023-01-11T20:58:20.8238669Z [ OK ] CustomOperatorTest.ListParameters (1 ms) 2023-01-11T20:58:20.8239032Z [ RUN ] CustomOperatorTest.ListParameters2 2023-01-11T20:58:20.8254220Z [ OK ] CustomOperatorTest.ListParameters2 (1 ms) 2023-01-11T20:58:20.8254796Z [ RUN ] CustomOperatorTest.Aliasing 2023-01-11T20:58:20.8272863Z [ OK ] CustomOperatorTest.Aliasing (1 ms) 2023-01-11T20:58:20.8273513Z [----------] 5 tests from CustomOperatorTest (8 ms total) 2023-01-11T20:58:20.8273822Z 2023-01-11T20:58:20.8273997Z [----------] 2 tests from TestCustomOperator 2023-01-11T20:58:20.8274365Z [ RUN ] TestCustomOperator.OperatorGeneratorUndeclared 2023-01-11T20:58:20.8274856Z [ OK ] TestCustomOperator.OperatorGeneratorUndeclared (0 ms) 2023-01-11T20:58:20.8275265Z [ RUN ] TestCustomOperator.OperatorGeneratorBasic 2023-01-11T20:58:20.8283464Z [ OK ] TestCustomOperator.OperatorGeneratorBasic (0 ms) 2023-01-11T20:58:20.8284095Z [----------] 2 tests from TestCustomOperator (1 ms total) 2023-01-11T20:58:20.8284467Z 2023-01-11T20:58:20.8284648Z [----------] 1 test from EliminateDeadCodeTest 2023-01-11T20:58:20.8284941Z [ RUN ] EliminateDeadCodeTest.Basic 2023-01-11T20:58:20.8312452Z [ OK ] EliminateDeadCodeTest.Basic (2 ms) 2023-01-11T20:58:20.8312834Z [----------] 1 test from EliminateDeadCodeTest (2 ms total) 2023-01-11T20:58:20.8313008Z 2023-01-11T20:58:20.8313149Z [----------] 2 tests from FuserTest 2023-01-11T20:58:20.8313414Z [ RUN ] FuserTest.FusionAliasing 2023-01-11T20:58:20.8355364Z [ OK ] FuserTest.FusionAliasing (4 ms) 2023-01-11T20:58:20.8355682Z [ RUN ] FuserTest.KernelCaching 2023-01-11T20:58:20.8405737Z [ OK ] FuserTest.KernelCaching (4 ms) 2023-01-11T20:58:20.8406330Z [----------] 2 tests from FuserTest (9 ms total) 2023-01-11T20:58:20.8406511Z 2023-01-11T20:58:20.8406675Z [----------] 1 test from GraphExecutorTest 2023-01-11T20:58:20.8407000Z [ RUN ] GraphExecutorTest.runAsync_executor 2023-01-11T20:58:20.8719375Z [ OK ] GraphExecutorTest.runAsync_executor (31 ms) 2023-01-11T20:58:20.8720075Z [----------] 1 test from GraphExecutorTest (31 ms total) 2023-01-11T20:58:20.8720375Z 2023-01-11T20:58:20.8720869Z [----------] 5 tests from GraphIteratorTest 2023-01-11T20:58:20.8721311Z [ RUN ] GraphIteratorTest.ConstantReturnGraph 2023-01-11T20:58:20.8722000Z [ OK ] GraphIteratorTest.ConstantReturnGraph (0 ms) 2023-01-11T20:58:20.8722589Z [ RUN ] GraphIteratorTest.GraphWithParameters 2023-01-11T20:58:20.8725590Z [ OK ] GraphIteratorTest.GraphWithParameters (0 ms) 2023-01-11T20:58:20.8726172Z [ RUN ] GraphIteratorTest.GraphWithIf 2023-01-11T20:58:20.8734884Z [ OK ] GraphIteratorTest.GraphWithIf (0 ms) 2023-01-11T20:58:20.8735489Z [ RUN ] GraphIteratorTest.GraphWithNestedIf 2023-01-11T20:58:20.8757837Z [ OK ] GraphIteratorTest.GraphWithNestedIf (2 ms) 2023-01-11T20:58:20.8758437Z [ RUN ] GraphIteratorTest.GraphWithLoop 2023-01-11T20:58:20.8771002Z [ OK ] GraphIteratorTest.GraphWithLoop (1 ms) 2023-01-11T20:58:20.8771658Z [----------] 5 tests from GraphIteratorTest (5 ms total) 2023-01-11T20:58:20.8771882Z 2023-01-11T20:58:20.8772081Z [----------] 1 test from CSDebugInfoSerializaitionTest 2023-01-11T20:58:20.8772455Z [ RUN ] CSDebugInfoSerializaitionTest.TwoSubmodules 2023-01-11T20:58:20.8838979Z [ OK ] CSDebugInfoSerializaitionTest.TwoSubmodules (6 ms) 2023-01-11T20:58:20.8839686Z [----------] 1 test from CSDebugInfoSerializaitionTest (6 ms total) 2023-01-11T20:58:20.8839880Z 2023-01-11T20:58:20.8840027Z [----------] 1 test from InlinerTest 2023-01-11T20:58:20.8840289Z [ RUN ] InlinerTest.Basic 2023-01-11T20:58:20.8882310Z [ OK ] InlinerTest.Basic (4 ms) 2023-01-11T20:58:20.8883016Z [----------] 1 test from InlinerTest (4 ms total) 2023-01-11T20:58:20.8883238Z 2023-01-11T20:58:20.8883389Z [----------] 1 test from InterfaceTest 2023-01-11T20:58:20.8883722Z [ RUN ] InterfaceTest.ModuleInterfaceSerialization 2023-01-11T20:58:20.9118884Z [ OK ] InterfaceTest.ModuleInterfaceSerialization (23 ms) 2023-01-11T20:58:20.9119533Z [----------] 1 test from InterfaceTest (23 ms total) 2023-01-11T20:58:20.9119692Z 2023-01-11T20:58:20.9119849Z [----------] 4 tests from TypeCheckTest 2023-01-11T20:58:20.9120128Z [ RUN ] TypeCheckTest.MatchingType 2023-01-11T20:58:20.9135887Z [ OK ] TypeCheckTest.MatchingType (1 ms) 2023-01-11T20:58:20.9136472Z [ RUN ] TypeCheckTest.SizeMismatch 2023-01-11T20:58:20.9148703Z [ OK ] TypeCheckTest.SizeMismatch (1 ms) 2023-01-11T20:58:20.9149275Z [ RUN ] TypeCheckTest.GradientMismatch 2023-01-11T20:58:20.9160860Z [ OK ] TypeCheckTest.GradientMismatch (1 ms) 2023-01-11T20:58:20.9161446Z [ RUN ] TypeCheckTest.ScalarTypeMismatch 2023-01-11T20:58:20.9173943Z [ OK ] TypeCheckTest.ScalarTypeMismatch (1 ms) 2023-01-11T20:58:20.9174727Z [----------] 4 tests from TypeCheckTest (5 ms total) 2023-01-11T20:58:20.9175009Z 2023-01-11T20:58:20.9175176Z [----------] 3 tests from InterpreterTest 2023-01-11T20:58:20.9175503Z [ RUN ] InterpreterTest.IgnorableArgsInSchema 2023-01-11T20:58:20.9235595Z [ OK ] InterpreterTest.IgnorableArgsInSchema (6 ms) 2023-01-11T20:58:20.9236238Z [ RUN ] InterpreterTest.IgnorableArgsInSchemaWithOut 2023-01-11T20:58:20.9244570Z [ OK ] InterpreterTest.IgnorableArgsInSchemaWithOut (0 ms) 2023-01-11T20:58:20.9245165Z [ RUN ] InterpreterTest.runAsyncBasicTest 2023-01-11T20:58:20.9456981Z [ OK ] InterpreterTest.runAsyncBasicTest (21 ms) 2023-01-11T20:58:20.9457686Z [----------] 3 tests from InterpreterTest (28 ms total) 2023-01-11T20:58:20.9457910Z 2023-01-11T20:58:20.9458124Z [----------] 1 test from EnableRethrowCaughtExceptionTest 2023-01-11T20:58:20.9458906Z [ RUN ] EnableRethrowCaughtExceptionTest.EnableRethrowCaughtExceptionTestRethrowsCaughtException 2023-01-11T20:58:20.9679800Z [ OK ] EnableRethrowCaughtExceptionTest.EnableRethrowCaughtExceptionTestRethrowsCaughtException (22 ms) 2023-01-11T20:58:20.9680969Z [----------] 1 test from EnableRethrowCaughtExceptionTest (22 ms total) 2023-01-11T20:58:20.9681334Z 2023-01-11T20:58:20.9681579Z [----------] 4 tests from IRTest 2023-01-11T20:58:20.9681875Z [ RUN ] IRTest.Attributes 2023-01-11T20:58:20.9682151Z [ OK ] IRTest.Attributes (0 ms) 2023-01-11T20:58:20.9682410Z [ RUN ] IRTest.Blocks 2023-01-11T20:58:20.9707325Z [ OK ] IRTest.Blocks (2 ms) 2023-01-11T20:58:20.9707841Z [ RUN ] IRTest.CommonAncestor 2023-01-11T20:58:20.9721989Z [ OK ] IRTest.CommonAncestor (1 ms) 2023-01-11T20:58:20.9722511Z [ RUN ] IRTest.OperatorMap 2023-01-11T20:58:20.9734555Z [ OK ] IRTest.OperatorMap (1 ms) 2023-01-11T20:58:20.9735118Z [----------] 4 tests from IRTest (5 ms total) 2023-01-11T20:58:20.9735397Z 2023-01-11T20:58:20.9735665Z [----------] 21 tests from IRParserTest 2023-01-11T20:58:20.9735947Z [ RUN ] IRParserTest.Basic 2023-01-11T20:58:20.9741118Z [ OK ] IRParserTest.Basic (0 ms) 2023-01-11T20:58:20.9741666Z [ RUN ] IRParserTest.NestedBlock 2023-01-11T20:58:20.9747937Z [ OK ] IRParserTest.NestedBlock (0 ms) 2023-01-11T20:58:20.9748451Z [ RUN ] IRParserTest.If 2023-01-11T20:58:20.9762177Z [ OK ] IRParserTest.If (1 ms) 2023-01-11T20:58:20.9762681Z [ RUN ] IRParserTest.If2 2023-01-11T20:58:20.9776463Z [ OK ] IRParserTest.If2 (1 ms) 2023-01-11T20:58:20.9777032Z [ RUN ] IRParserTest.InferredTypeIsTensor 2023-01-11T20:58:20.9778452Z [ OK ] IRParserTest.InferredTypeIsTensor (0 ms) 2023-01-11T20:58:20.9778779Z [ RUN ] IRParserTest.ValueReuse 2023-01-11T20:58:20.9781623Z [ OK ] IRParserTest.ValueReuse (0 ms) 2023-01-11T20:58:20.9781972Z [ RUN ] IRParserTest.Attributes 2023-01-11T20:58:20.9793979Z [ OK ] IRParserTest.Attributes (1 ms) 2023-01-11T20:58:20.9794343Z [ RUN ] IRParserTest.OptionalTypes 2023-01-11T20:58:20.9798170Z [ OK ] IRParserTest.OptionalTypes (0 ms) 2023-01-11T20:58:20.9798481Z [ RUN ] IRParserTest.StarTensor 2023-01-11T20:58:20.9802542Z [ OK ] IRParserTest.StarTensor (0 ms) 2023-01-11T20:58:20.9802836Z [ RUN ] IRParserTest.UnshapedTensor 2023-01-11T20:58:20.9806537Z [ OK ] IRParserTest.UnshapedTensor (0 ms) 2023-01-11T20:58:20.9807065Z [ RUN ] IRParserTest.ShapedTensor 2023-01-11T20:58:20.9810789Z [ OK ] IRParserTest.ShapedTensor (0 ms) 2023-01-11T20:58:20.9811113Z [ RUN ] IRParserTest.NestedContrainer 2023-01-11T20:58:20.9818478Z [ OK ] IRParserTest.NestedContrainer (0 ms) 2023-01-11T20:58:20.9818827Z [ RUN ] IRParserTest.MalformedShapeAnnotation 2023-01-11T20:58:20.9822419Z [ OK ] IRParserTest.MalformedShapeAnnotation (0 ms) 2023-01-11T20:58:20.9822748Z [ RUN ] IRParserTest.FileCheck 2023-01-11T20:58:20.9825151Z [ OK ] IRParserTest.FileCheck (0 ms) 2023-01-11T20:58:20.9825445Z [ RUN ] IRParserTest.Strides 2023-01-11T20:58:20.9829897Z [ OK ] IRParserTest.Strides (0 ms) 2023-01-11T20:58:20.9830255Z [ RUN ] IRParserTest.MalformedStrides 2023-01-11T20:58:20.9832829Z [ OK ] IRParserTest.MalformedStrides (0 ms) 2023-01-11T20:58:20.9833236Z [ RUN ] IRParserTest.TensorShapes 2023-01-11T20:58:20.9837945Z [ OK ] IRParserTest.TensorShapes (0 ms) 2023-01-11T20:58:20.9838299Z [ RUN ] IRParserTest.DeviceAndRequiresGradTensors 2023-01-11T20:58:20.9850264Z [ OK ] IRParserTest.DeviceAndRequiresGradTensors (1 ms) 2023-01-11T20:58:20.9850619Z [ RUN ] IRParserTest.ListConstant 2023-01-11T20:58:20.9853595Z [ OK ] IRParserTest.ListConstant (0 ms) 2023-01-11T20:58:20.9853924Z [ RUN ] IRParserTest.PartialStarTensor 2023-01-11T20:58:20.9856541Z [ OK ] IRParserTest.PartialStarTensor (0 ms) 2023-01-11T20:58:20.9856892Z [ RUN ] IRParserTest.ComplexTensorAttributes 2023-01-11T20:58:20.9862091Z [ OK ] IRParserTest.ComplexTensorAttributes (0 ms) 2023-01-11T20:58:20.9862579Z [----------] 21 tests from IRParserTest (12 ms total) 2023-01-11T20:58:20.9862809Z 2023-01-11T20:58:20.9862964Z [----------] 2 tests from JitTypeTest 2023-01-11T20:58:20.9863244Z [ RUN ] JitTypeTest.IsComplete 2023-01-11T20:58:20.9863538Z [ OK ] JitTypeTest.IsComplete (0 ms) 2023-01-11T20:58:20.9863813Z [ RUN ] JitTypeTest.UnifyTypes 2023-01-11T20:58:20.9866481Z [ OK ] JitTypeTest.UnifyTypes (0 ms) 2023-01-11T20:58:20.9866814Z [----------] 2 tests from JitTypeTest (0 ms total) 2023-01-11T20:58:20.9866970Z 2023-01-11T20:58:20.9867139Z [----------] 42 tests from LiteInterpreterTest 2023-01-11T20:58:20.9867470Z [ RUN ] LiteInterpreterTest.UpsampleNearest2d 2023-01-11T20:58:21.0036190Z [ OK ] LiteInterpreterTest.UpsampleNearest2d (16 ms) 2023-01-11T20:58:21.0036592Z [ RUN ] LiteInterpreterTest.CheckAttrAccess 2023-01-11T20:58:21.0052405Z [ OK ] LiteInterpreterTest.CheckAttrAccess (1 ms) 2023-01-11T20:58:21.0052795Z [ RUN ] LiteInterpreterTest.MethodInvocation 2023-01-11T20:58:21.0406270Z [ OK ] LiteInterpreterTest.MethodInvocation (35 ms) 2023-01-11T20:58:21.0406623Z [ RUN ] LiteInterpreterTest.Conv 2023-01-11T20:58:21.0406984Z [ OK ] LiteInterpreterTest.Conv (0 ms) 2023-01-11T20:58:21.0407303Z [ RUN ] LiteInterpreterTest.Inline 2023-01-11T20:58:21.0527447Z [ OK ] LiteInterpreterTest.Inline (12 ms) 2023-01-11T20:58:21.0527754Z [ RUN ] LiteInterpreterTest.Tuple 2023-01-11T20:58:21.0619970Z [ OK ] LiteInterpreterTest.Tuple (9 ms) 2023-01-11T20:58:21.0620367Z [ RUN ] LiteInterpreterTest.AtenFormat 2023-01-11T20:58:21.0701499Z [ OK ] LiteInterpreterTest.AtenFormat (8 ms) 2023-01-11T20:58:21.0701889Z [ RUN ] LiteInterpreterTest.PrimDevice 2023-01-11T20:58:21.0753359Z [ OK ] LiteInterpreterTest.PrimDevice (5 ms) 2023-01-11T20:58:21.0753728Z [ RUN ] LiteInterpreterTest.Dict 2023-01-11T20:58:21.0843561Z [ OK ] LiteInterpreterTest.Dict (8 ms) 2023-01-11T20:58:21.0843976Z [ RUN ] LiteInterpreterTest.List 2023-01-11T20:58:21.0966644Z [ OK ] LiteInterpreterTest.List (12 ms) 2023-01-11T20:58:21.0967210Z [ RUN ] LiteInterpreterTest.PrimOverload 2023-01-11T20:58:21.0967810Z [ OK ] LiteInterpreterTest.PrimOverload (0 ms) 2023-01-11T20:58:21.0968132Z [ RUN ] LiteInterpreterTest.Prim 2023-01-11T20:58:21.1020869Z [ OK ] LiteInterpreterTest.Prim (5 ms) 2023-01-11T20:58:21.1021178Z [ RUN ] LiteInterpreterTest.PrimScalar 2023-01-11T20:58:21.1081013Z [ OK ] LiteInterpreterTest.PrimScalar (5 ms) 2023-01-11T20:58:21.1081355Z [ RUN ] LiteInterpreterTest.LoadOrigJit 2023-01-11T20:58:21.1168686Z [ OK ] LiteInterpreterTest.LoadOrigJit (8 ms) 2023-01-11T20:58:21.1169026Z [ RUN ] LiteInterpreterTest.WrongMethodName 2023-01-11T20:58:21.1231562Z [ OK ] LiteInterpreterTest.WrongMethodName (6 ms) 2023-01-11T20:58:21.1231994Z [ RUN ] LiteInterpreterTest.SetState 2023-01-11T20:58:21.1646969Z [ OK ] LiteInterpreterTest.SetState (41 ms) 2023-01-11T20:58:21.1647498Z [ RUN ] LiteInterpreterTest.BuiltinClass 2023-01-11T20:58:21.1761045Z [ OK ] LiteInterpreterTest.BuiltinClass (11 ms) 2023-01-11T20:58:21.1761407Z [ RUN ] LiteInterpreterTest.BuiltinFunction 2023-01-11T20:58:21.1806822Z [ OK ] LiteInterpreterTest.BuiltinFunction (4 ms) 2023-01-11T20:58:21.1807566Z [ RUN ] LiteInterpreterTest.GetRuntimeByteCodeVersion 2023-01-11T20:58:21.1808064Z [ OK ] LiteInterpreterTest.GetRuntimeByteCodeVersion (0 ms) 2023-01-11T20:58:21.1808485Z [ RUN ] LiteInterpreterTest.GetRuntimeOperatorsVersion 2023-01-11T20:58:21.1808897Z [ OK ] LiteInterpreterTest.GetRuntimeOperatorsVersion (0 ms) 2023-01-11T20:58:21.1809299Z [ RUN ] LiteInterpreterTest.GetByteCodeVersion 2023-01-11T20:58:21.1813312Z [ OK ] LiteInterpreterTest.GetByteCodeVersion (0 ms) 2023-01-11T20:58:21.1813675Z [ RUN ] LiteInterpreterTest.GetContainTypes 2023-01-11T20:58:21.1837097Z [ OK ] LiteInterpreterTest.GetContainTypes (2 ms) 2023-01-11T20:58:21.1837519Z [ RUN ] LiteInterpreterTest.BackPortByteCodeModelAllVersions 2023-01-11T20:58:21.7935887Z [ OK ] LiteInterpreterTest.BackPortByteCodeModelAllVersions (609 ms) 2023-01-11T20:58:21.7936374Z [ RUN ] LiteInterpreterTest.GetRuntimeOpsAndInfo 2023-01-11T20:58:21.8660398Z [ OK ] LiteInterpreterTest.GetRuntimeOpsAndInfo (72 ms) 2023-01-11T20:58:21.8660937Z [ RUN ] LiteInterpreterTest.isCompatibleSuccess 2023-01-11T20:58:21.9363828Z [ OK ] LiteInterpreterTest.isCompatibleSuccess (70 ms) 2023-01-11T20:58:21.9364411Z [ RUN ] LiteInterpreterTest.isCompatibleFail 2023-01-11T20:58:22.0760113Z [ OK ] LiteInterpreterTest.isCompatibleFail (139 ms) 2023-01-11T20:58:22.0760736Z [ RUN ] LiteInterpreterTest.Eval 2023-01-11T20:58:22.0872866Z [ OK ] LiteInterpreterTest.Eval (11 ms) 2023-01-11T20:58:22.0873492Z [ RUN ] LiteInterpreterTest.FindWrongMethodName 2023-01-11T20:58:22.0919142Z [ OK ] LiteInterpreterTest.FindWrongMethodName (4 ms) 2023-01-11T20:58:22.0919535Z [ RUN ] LiteInterpreterTest.FindAndRunMethod 2023-01-11T20:58:22.1014008Z [ OK ] LiteInterpreterTest.FindAndRunMethod (9 ms) 2023-01-11T20:58:22.1014664Z [ RUN ] LiteInterpreterTest.RunMethodVariadic 2023-01-11T20:58:22.1111346Z [ OK ] LiteInterpreterTest.RunMethodVariadic (9 ms) 2023-01-11T20:58:22.1111765Z [ RUN ] LiteInterpreterTest.DuplicateSetState 2023-01-11T20:58:22.1263647Z [ OK ] LiteInterpreterTest.DuplicateSetState (15 ms) 2023-01-11T20:58:22.1264261Z [ RUN ] LiteInterpreterTest.ExtraFiles 2023-01-11T20:58:22.1328057Z [ OK ] LiteInterpreterTest.ExtraFiles (6 ms) 2023-01-11T20:58:22.1328472Z [ RUN ] LiteInterpreterTest.OpNameExportFetchRootOperators 2023-01-11T20:58:22.1444878Z [ OK ] LiteInterpreterTest.OpNameExportFetchRootOperators (11 ms) 2023-01-11T20:58:22.1445448Z [ RUN ] LiteInterpreterTest.DefaultArgsConv 2023-01-11T20:58:22.1445806Z [ OK ] LiteInterpreterTest.DefaultArgsConv (0 ms) 2023-01-11T20:58:22.1446161Z [ RUN ] LiteInterpreterTest.DefaultArgsPinv 2023-01-11T20:58:22.1775998Z [ OK ] LiteInterpreterTest.DefaultArgsPinv (32 ms) 2023-01-11T20:58:22.1776487Z [ RUN ] LiteInterpreterTest.DefaultArgsTensorinvSpecifyDefault 2023-01-11T20:58:22.1872127Z [ OK ] LiteInterpreterTest.DefaultArgsTensorinvSpecifyDefault (9 ms) 2023-01-11T20:58:22.1872612Z [ RUN ] LiteInterpreterTest.DefaultArgsPinvWithOutArg 2023-01-11T20:58:22.2069260Z [ OK ] LiteInterpreterTest.DefaultArgsPinvWithOutArg (19 ms) 2023-01-11T20:58:22.2069798Z [ RUN ] LiteInterpreterTest.DefaultArgsWithOutArg 2023-01-11T20:58:22.2158294Z [ OK ] LiteInterpreterTest.DefaultArgsWithOutArg (8 ms) 2023-01-11T20:58:22.2158869Z [ RUN ] LiteInterpreterTest.TestExceptionStackWithTwoLevelModuleHierarchy 2023-01-11T20:58:22.2401819Z [ OK ] LiteInterpreterTest.TestExceptionStackWithTwoLevelModuleHierarchy (24 ms) 2023-01-11T20:58:22.2402465Z [ RUN ] LiteInterpreterTest.OperatorCacheDifferentiatesDefaultArgs 2023-01-11T20:58:22.2890905Z [ OK ] LiteInterpreterTest.OperatorCacheDifferentiatesDefaultArgs (48 ms) 2023-01-11T20:58:22.2891534Z [ RUN ] LiteInterpreterTest.OperatorSize1 2023-01-11T20:58:22.2949844Z [ OK ] LiteInterpreterTest.OperatorSize1 (5 ms) 2023-01-11T20:58:22.2950434Z [ RUN ] LiteInterpreterTest.OperatorTest2 2023-01-11T20:58:22.3167613Z [ OK ] LiteInterpreterTest.OperatorTest2 (21 ms) 2023-01-11T20:58:22.3168294Z [----------] 42 tests from LiteInterpreterTest (1329 ms total) 2023-01-11T20:58:22.3168624Z 2023-01-11T20:58:22.3168822Z [----------] 3 tests from RunTimeTest 2023-01-11T20:58:22.3169156Z [ RUN ] RunTimeTest.ParseBytecode 2023-01-11T20:58:22.3170149Z [ OK ] RunTimeTest.ParseBytecode (0 ms) 2023-01-11T20:58:22.3170704Z [ RUN ] RunTimeTest.ParseOperator 2023-01-11T20:58:22.3173319Z [ OK ] RunTimeTest.ParseOperator (0 ms) 2023-01-11T20:58:22.3173935Z [ RUN ] RunTimeTest.RuntimeCall 2023-01-11T20:58:22.3178535Z [ OK ] RunTimeTest.RuntimeCall (0 ms) 2023-01-11T20:58:22.3179099Z [----------] 3 tests from RunTimeTest (1 ms total) 2023-01-11T20:58:22.3179401Z 2023-01-11T20:58:22.3179622Z [----------] 11 tests from LiteInterpreterUpgraderTest 2023-01-11T20:58:22.3179973Z [ RUN ] LiteInterpreterUpgraderTest.DivTensorV2 2023-01-11T20:58:22.3193862Z [ OK ] LiteInterpreterUpgraderTest.DivTensorV2 (1 ms) 2023-01-11T20:58:22.3194491Z [ RUN ] LiteInterpreterUpgraderTest.DivTensorOutV2 2023-01-11T20:58:22.3206405Z [ OK ] LiteInterpreterUpgraderTest.DivTensorOutV2 (1 ms) 2023-01-11T20:58:22.3207045Z [ RUN ] LiteInterpreterUpgraderTest.DivTensorInplaceV2 2023-01-11T20:58:22.3218928Z [ OK ] LiteInterpreterUpgraderTest.DivTensorInplaceV2 (1 ms) 2023-01-11T20:58:22.3219538Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarFloatV2 2023-01-11T20:58:22.3231201Z [ OK ] LiteInterpreterUpgraderTest.DivScalarFloatV2 (1 ms) 2023-01-11T20:58:22.3231861Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarReciprocalFloatV2 2023-01-11T20:58:22.3243373Z expect output: 0.5000 2023-01-11T20:58:22.3244081Z [ CPUFloatType{1} ]actual output: 0.5000 2023-01-11T20:58:22.3245049Z [ CPUFloatType{1} ][ OK ] LiteInterpreterUpgraderTest.DivScalarReciprocalFloatV2 (1 ms) 2023-01-11T20:58:22.3245618Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarReciprocalIntV2 2023-01-11T20:58:22.3257407Z [ OK ] LiteInterpreterUpgraderTest.DivScalarReciprocalIntV2 (1 ms) 2023-01-11T20:58:22.3257922Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarScalarV2 2023-01-11T20:58:22.3266797Z [ OK ] LiteInterpreterUpgraderTest.DivScalarScalarV2 (0 ms) 2023-01-11T20:58:22.3267272Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarIntV2 2023-01-11T20:58:22.3278395Z [ OK ] LiteInterpreterUpgraderTest.DivScalarIntV2 (1 ms) 2023-01-11T20:58:22.3278900Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarInplaceFloatV2 2023-01-11T20:58:22.3290731Z [ OK ] LiteInterpreterUpgraderTest.DivScalarInplaceFloatV2 (1 ms) 2023-01-11T20:58:22.3291260Z [ RUN ] LiteInterpreterUpgraderTest.DivScalarInplaceIntV2 2023-01-11T20:58:22.3302389Z [ OK ] LiteInterpreterUpgraderTest.DivScalarInplaceIntV2 (1 ms) 2023-01-11T20:58:22.3303055Z [ RUN ] LiteInterpreterUpgraderTest.Upgrader 2023-01-11T20:58:22.3306094Z [ OK ] LiteInterpreterUpgraderTest.Upgrader (0 ms) 2023-01-11T20:58:22.3306535Z [----------] 11 tests from LiteInterpreterUpgraderTest (12 ms total) 2023-01-11T20:58:22.3306728Z 2023-01-11T20:58:22.3306916Z [----------] 29 tests from LiteInterpreterDirectTest 2023-01-11T20:58:22.3307288Z [ RUN ] LiteInterpreterDirectTest.UpsampleNearest2d 2023-01-11T20:58:22.3439927Z [ OK ] LiteInterpreterDirectTest.UpsampleNearest2d (13 ms) 2023-01-11T20:58:22.3440433Z [ RUN ] LiteInterpreterDirectTest.CheckAttrAccess 2023-01-11T20:58:22.3441245Z [ OK ] LiteInterpreterDirectTest.CheckAttrAccess (0 ms) 2023-01-11T20:58:22.3441657Z [ RUN ] LiteInterpreterDirectTest.MethodInvocation 2023-01-11T20:58:22.3519670Z hello 2023-01-11T20:58:22.3524555Z hello 3 2023-01-11T20:58:22.3620599Z hello 2023-01-11T20:58:22.3625248Z hello 3 2023-01-11T20:58:22.3686244Z hello 2023-01-11T20:58:22.3690707Z hello 3 2023-01-11T20:58:22.3693817Z [ OK ] LiteInterpreterDirectTest.MethodInvocation (25 ms) 2023-01-11T20:58:22.3694214Z [ RUN ] LiteInterpreterDirectTest.Conv 2023-01-11T20:58:22.3694845Z [ OK ] LiteInterpreterDirectTest.Conv (0 ms) 2023-01-11T20:58:22.3695243Z [ RUN ] LiteInterpreterDirectTest.Inline 2023-01-11T20:58:22.3767695Z [ OK ] LiteInterpreterDirectTest.Inline (7 ms) 2023-01-11T20:58:22.3768103Z [ RUN ] LiteInterpreterDirectTest.Tuple 2023-01-11T20:58:22.3819999Z [ OK ] LiteInterpreterDirectTest.Tuple (5 ms) 2023-01-11T20:58:22.3820379Z [ RUN ] LiteInterpreterDirectTest.Dict 2023-01-11T20:58:22.3869603Z [ OK ] LiteInterpreterDirectTest.Dict (4 ms) 2023-01-11T20:58:22.3870228Z [ RUN ] LiteInterpreterDirectTest.Prim 2023-01-11T20:58:22.3909185Z [ OK ] LiteInterpreterDirectTest.Prim (3 ms) 2023-01-11T20:58:22.3909608Z [ RUN ] LiteInterpreterDirectTest.PrimScalar 2023-01-11T20:58:22.3953942Z [ OK ] LiteInterpreterDirectTest.PrimScalar (4 ms) 2023-01-11T20:58:22.3954403Z [ RUN ] LiteInterpreterDirectTest.WrongMethodName 2023-01-11T20:58:22.3997149Z [ OK ] LiteInterpreterDirectTest.WrongMethodName (4 ms) 2023-01-11T20:58:22.3997524Z [ RUN ] LiteInterpreterDirectTest.SetState 2023-01-11T20:58:22.4294053Z [ OK ] LiteInterpreterDirectTest.SetState (29 ms) 2023-01-11T20:58:22.4294584Z [ RUN ] LiteInterpreterDirectTest.BuiltinFunction 2023-01-11T20:58:22.4314180Z [ OK ] LiteInterpreterDirectTest.BuiltinFunction (2 ms) 2023-01-11T20:58:22.4315312Z [ RUN ] LiteInterpreterDirectTest.GetRuntimeByteCodeVersion 2023-01-11T20:58:22.4315807Z [ OK ] LiteInterpreterDirectTest.GetRuntimeByteCodeVersion (0 ms) 2023-01-11T20:58:22.4316274Z [ RUN ] LiteInterpreterDirectTest.GetRuntimeOperatorsVersion 2023-01-11T20:58:22.4316746Z [ OK ] LiteInterpreterDirectTest.GetRuntimeOperatorsVersion (0 ms) 2023-01-11T20:58:22.4317164Z [ RUN ] LiteInterpreterDirectTest.GetByteCodeVersion 2023-01-11T20:58:22.4320928Z [ OK ] LiteInterpreterDirectTest.GetByteCodeVersion (0 ms) 2023-01-11T20:58:22.4321416Z [ RUN ] LiteInterpreterDirectTest.GetRuntimeOpsAndInfo 2023-01-11T20:58:22.5035648Z [ OK ] LiteInterpreterDirectTest.GetRuntimeOpsAndInfo (71 ms) 2023-01-11T20:58:22.5036358Z [ RUN ] LiteInterpreterDirectTest.Eval 2023-01-11T20:58:22.5108195Z [ OK ] LiteInterpreterDirectTest.Eval (7 ms) 2023-01-11T20:58:22.5108938Z [ RUN ] LiteInterpreterDirectTest.FindWrongMethodName 2023-01-11T20:58:22.5133741Z [ OK ] LiteInterpreterDirectTest.FindWrongMethodName (2 ms) 2023-01-11T20:58:22.5134724Z [ RUN ] LiteInterpreterDirectTest.FindAndRunMethod 2023-01-11T20:58:22.5207894Z [ OK ] LiteInterpreterDirectTest.FindAndRunMethod (7 ms) 2023-01-11T20:58:22.5208681Z [ RUN ] LiteInterpreterDirectTest.RunMethodVariadic 2023-01-11T20:58:22.5276923Z [ OK ] LiteInterpreterDirectTest.RunMethodVariadic (6 ms) 2023-01-11T20:58:22.5277700Z [ RUN ] LiteInterpreterDirectTest.DuplicateSetState 2023-01-11T20:58:22.5346936Z [ OK ] LiteInterpreterDirectTest.DuplicateSetState (6 ms) 2023-01-11T20:58:22.5347795Z [ RUN ] LiteInterpreterDirectTest.OpNameExportFetchRootOperators 2023-01-11T20:58:22.5405198Z [ OK ] LiteInterpreterDirectTest.OpNameExportFetchRootOperators (5 ms) 2023-01-11T20:58:22.5406068Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsConv 2023-01-11T20:58:22.5406795Z [ OK ] LiteInterpreterDirectTest.DefaultArgsConv (0 ms) 2023-01-11T20:58:22.5407490Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsPinv 2023-01-11T20:58:22.5667166Z [ OK ] LiteInterpreterDirectTest.DefaultArgsPinv (26 ms) 2023-01-11T20:58:22.5668318Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsTensorinvSpecifyDefault 2023-01-11T20:58:22.5746768Z [ OK ] LiteInterpreterDirectTest.DefaultArgsTensorinvSpecifyDefault (7 ms) 2023-01-11T20:58:22.5747889Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsPinvWithOutArg 2023-01-11T20:58:22.5941503Z [ OK ] LiteInterpreterDirectTest.DefaultArgsPinvWithOutArg (19 ms) 2023-01-11T20:58:22.5942480Z [ RUN ] LiteInterpreterDirectTest.DefaultArgsWithOutArg 2023-01-11T20:58:22.6004203Z [ OK ] LiteInterpreterDirectTest.DefaultArgsWithOutArg (6 ms) 2023-01-11T20:58:22.6005233Z [ RUN ] LiteInterpreterDirectTest.TestExceptionStackWithTwoLevelModuleHierarchy 2023-01-11T20:58:22.6187073Z [ OK ] LiteInterpreterDirectTest.TestExceptionStackWithTwoLevelModuleHierarchy (18 ms) 2023-01-11T20:58:22.6188177Z [ RUN ] LiteInterpreterDirectTest.OperatorCacheDifferentiatesDefaultArgs 2023-01-11T20:58:22.6488960Z [ OK ] LiteInterpreterDirectTest.OperatorCacheDifferentiatesDefaultArgs (30 ms) 2023-01-11T20:58:22.6489874Z [----------] 29 tests from LiteInterpreterDirectTest (318 ms total) 2023-01-11T20:58:22.6490172Z 2023-01-11T20:58:22.6490454Z [----------] 7 tests from LiteTrainerTest 2023-01-11T20:58:22.6490952Z [ RUN ] LiteTrainerTest.Params 2023-01-11T20:58:22.7634856Z [ OK ] LiteTrainerTest.Params (114 ms) 2023-01-11T20:58:22.7635399Z [ RUN ] LiteTrainerTest.SGD 2023-01-11T20:58:22.8747657Z [ OK ] LiteTrainerTest.SGD (111 ms) 2023-01-11T20:58:22.8748581Z [ RUN ] LiteTrainerTest.SequentialSampler 2023-01-11T20:58:22.8749188Z [ OK ] LiteTrainerTest.SequentialSampler (0 ms) 2023-01-11T20:58:22.8749928Z [ RUN ] LiteTrainerTest.RandomSamplerReturnsIndicesInCorrectRange 2023-01-11T20:58:22.8750819Z [ OK ] LiteTrainerTest.RandomSamplerReturnsIndicesInCorrectRange (0 ms) 2023-01-11T20:58:22.8751682Z [ RUN ] LiteTrainerTest.RandomSamplerReturnsLessValuesForLastBatch 2023-01-11T20:58:22.8752573Z [ OK ] LiteTrainerTest.RandomSamplerReturnsLessValuesForLastBatch (0 ms) 2023-01-11T20:58:22.8753337Z [ RUN ] LiteTrainerTest.RandomSamplerResetsWell 2023-01-11T20:58:22.8754018Z [ OK ] LiteTrainerTest.RandomSamplerResetsWell (0 ms) 2023-01-11T20:58:22.8754800Z [ RUN ] LiteTrainerTest.RandomSamplerResetsWithNewSizeWell 2023-01-11T20:58:22.8756221Z [ OK ] LiteTrainerTest.RandomSamplerResetsWithNewSizeWell (0 ms) 2023-01-11T20:58:22.8756915Z [----------] 7 tests from LiteTrainerTest (226 ms total) 2023-01-11T20:58:22.8757205Z 2023-01-11T20:58:22.8757450Z [----------] 6 tests from MobileTest 2023-01-11T20:58:22.8758153Z [ RUN ] MobileTest.SaveLoadParametersEmpty 2023-01-11T20:58:22.8814820Z [ OK ] MobileTest.SaveLoadParametersEmpty (5 ms) 2023-01-11T20:58:22.8815500Z [ RUN ] MobileTest.SaveParametersDefaultsToZip 2023-01-11T20:58:22.8816086Z [ OK ] MobileTest.SaveParametersDefaultsToZip (0 ms) 2023-01-11T20:58:22.8816746Z [ RUN ] MobileTest.SaveParametersCanUseFlatbuffer 2023-01-11T20:58:22.8820605Z [ OK ] MobileTest.SaveParametersCanUseFlatbuffer (0 ms) 2023-01-11T20:58:22.8821348Z [ RUN ] MobileTest.SaveLoadParametersUsingFlatbuffers 2023-01-11T20:58:22.8832768Z [ OK ] MobileTest.SaveLoadParametersUsingFlatbuffers (1 ms) 2023-01-11T20:58:22.8833619Z [ RUN ] MobileTest.LoadParametersUnexpectedFormatShouldThrow 2023-01-11T20:58:22.8855116Z [ OK ] MobileTest.LoadParametersUnexpectedFormatShouldThrow (2 ms) 2023-01-11T20:58:22.8855959Z [ RUN ] MobileTest.LoadParametersEmptyDataShouldThrow 2023-01-11T20:58:22.8876752Z [ OK ] MobileTest.LoadParametersEmptyDataShouldThrow (2 ms) 2023-01-11T20:58:22.8877419Z [----------] 6 tests from MobileTest (11 ms total) 2023-01-11T20:58:22.8877685Z 2023-01-11T20:58:22.8877937Z [----------] 1 test from MemoryDAGTest 2023-01-11T20:58:22.8878381Z [ RUN ] MemoryDAGTest.Basic 2023-01-11T20:58:22.8879352Z [ OK ] MemoryDAGTest.Basic (0 ms) 2023-01-11T20:58:22.8879883Z [----------] 1 test from MemoryDAGTest (0 ms total) 2023-01-11T20:58:22.8880138Z 2023-01-11T20:58:22.8880419Z [----------] 1 test from InternedStringsTest 2023-01-11T20:58:22.8880904Z [ RUN ] InternedStringsTest.Basic 2023-01-11T20:58:22.8881437Z [ OK ] InternedStringsTest.Basic (0 ms) 2023-01-11T20:58:22.8882043Z [----------] 1 test from InternedStringsTest (0 ms total) 2023-01-11T20:58:22.8882324Z 2023-01-11T20:58:22.8882602Z [----------] 1 test from FromQualStringTest 2023-01-11T20:58:22.8883058Z [ RUN ] FromQualStringTest.Basic 2023-01-11T20:58:22.8883984Z [ OK ] FromQualStringTest.Basic (0 ms) 2023-01-11T20:58:22.8884481Z [----------] 1 test from FromQualStringTest (0 ms total) 2023-01-11T20:58:22.8884650Z 2023-01-11T20:58:22.8884804Z [----------] 1 test from THNNConvTest 2023-01-11T20:58:22.8885075Z [ RUN ] THNNConvTest.Basic 2023-01-11T20:58:22.9014146Z [ OK ] THNNConvTest.Basic (12 ms) 2023-01-11T20:58:22.9014941Z [----------] 1 test from THNNConvTest (12 ms total) 2023-01-11T20:58:22.9015109Z 2023-01-11T20:58:22.9015291Z [----------] 1 test from ATenNativeBatchNormTest 2023-01-11T20:58:22.9015778Z [ RUN ] ATenNativeBatchNormTest.Basic 2023-01-11T20:58:22.9122030Z [ OK ] ATenNativeBatchNormTest.Basic (10 ms) 2023-01-11T20:58:22.9122740Z [----------] 1 test from ATenNativeBatchNormTest (10 ms total) 2023-01-11T20:58:22.9122941Z 2023-01-11T20:58:22.9123114Z [----------] 2 tests from CustomFusionTest 2023-01-11T20:58:22.9123396Z [ RUN ] CustomFusionTest.Basic 2023-01-11T20:58:22.9138872Z [ OK ] CustomFusionTest.Basic (1 ms) 2023-01-11T20:58:22.9139443Z [ RUN ] CustomFusionTest.NestedBlocks 2023-01-11T20:58:22.9164223Z [ OK ] CustomFusionTest.NestedBlocks (2 ms) 2023-01-11T20:58:22.9164828Z [----------] 2 tests from CustomFusionTest (4 ms total) 2023-01-11T20:58:22.9165093Z 2023-01-11T20:58:22.9165249Z [----------] 1 test from ControlFlowTest 2023-01-11T20:58:22.9165526Z [ RUN ] ControlFlowTest.Basic 2023-01-11T20:58:22.9253680Z [ OK ] ControlFlowTest.Basic (8 ms) 2023-01-11T20:58:22.9254287Z [----------] 1 test from ControlFlowTest (8 ms total) 2023-01-11T20:58:22.9254589Z 2023-01-11T20:58:22.9254749Z [----------] 1 test from ProtoTest 2023-01-11T20:58:22.9255202Z [ RUN ] ProtoTest.Basic 2023-01-11T20:58:22.9255464Z [ OK ] ProtoTest.Basic (0 ms) 2023-01-11T20:58:22.9255762Z [----------] 1 test from ProtoTest (0 ms total) 2023-01-11T20:58:22.9255909Z 2023-01-11T20:58:22.9256070Z [----------] 9 tests from SchemaParserTest 2023-01-11T20:58:22.9256363Z [ RUN ] SchemaParserTest.NestedArrays 2023-01-11T20:58:22.9257304Z [ OK ] SchemaParserTest.NestedArrays (0 ms) 2023-01-11T20:58:22.9257622Z [ RUN ] SchemaParserTest.OutVariant 2023-01-11T20:58:22.9264406Z [ OK ] SchemaParserTest.OutVariant (0 ms) 2023-01-11T20:58:22.9264712Z [ RUN ] SchemaParserTest.NamedReturns 2023-01-11T20:58:22.9267124Z [ OK ] SchemaParserTest.NamedReturns (0 ms) 2023-01-11T20:58:22.9267439Z [ RUN ] SchemaParserTest.Futures 2023-01-11T20:58:22.9268643Z [ OK ] SchemaParserTest.Futures (0 ms) 2023-01-11T20:58:22.9268984Z [ RUN ] SchemaParserTest.AnnotatedAliasSets 2023-01-11T20:58:22.9270662Z [ OK ] SchemaParserTest.AnnotatedAliasSets (0 ms) 2023-01-11T20:58:22.9271058Z [ RUN ] SchemaParserTest.TensorListAnnotatedAliasSets 2023-01-11T20:58:22.9273350Z [ OK ] SchemaParserTest.TensorListAnnotatedAliasSets (0 ms) 2023-01-11T20:58:22.9273780Z [ RUN ] SchemaParserTest.AnnotatedAliasWithoutBeforeSet 2023-01-11T20:58:22.9276109Z [ OK ] SchemaParserTest.AnnotatedAliasWithoutBeforeSet (0 ms) 2023-01-11T20:58:22.9276496Z [ RUN ] SchemaParserTest.BeforeAfterSets 2023-01-11T20:58:22.9279935Z [ OK ] SchemaParserTest.BeforeAfterSets (0 ms) 2023-01-11T20:58:22.9280288Z [ RUN ] SchemaParserTest.BeforeAfterSets2 2023-01-11T20:58:22.9283976Z [ OK ] SchemaParserTest.BeforeAfterSets2 (0 ms) 2023-01-11T20:58:22.9284602Z [----------] 9 tests from SchemaParserTest (2 ms total) 2023-01-11T20:58:22.9284886Z 2023-01-11T20:58:22.9285160Z [----------] 2 tests from TopologicalIndexTest 2023-01-11T20:58:22.9285513Z [ RUN ] TopologicalIndexTest.Basic 2023-01-11T20:58:22.9286093Z [ OK ] TopologicalIndexTest.Basic (0 ms) 2023-01-11T20:58:22.9286530Z [ RUN ] TopologicalIndexTest.Reindex 2023-01-11T20:58:22.9298296Z [ OK ] TopologicalIndexTest.Reindex (1 ms) 2023-01-11T20:58:22.9298922Z [----------] 2 tests from TopologicalIndexTest (1 ms total) 2023-01-11T20:58:22.9299098Z 2023-01-11T20:58:22.9299262Z [----------] 7 tests from RecordFunctionTest 2023-01-11T20:58:22.9299595Z [ RUN ] RecordFunctionTest.TracedTestInputsOutputs 2023-01-11T20:58:22.9363542Z [ OK ] RecordFunctionTest.TracedTestInputsOutputs (6 ms) 2023-01-11T20:58:22.9363936Z [ RUN ] RecordFunctionTest.SampledCallbacks 2023-01-11T20:58:23.0357465Z [ OK ] RecordFunctionTest.SampledCallbacks (99 ms) 2023-01-11T20:58:23.0358242Z [ RUN ] RecordFunctionTest.RecordFunctionGuard 2023-01-11T20:58:23.0358750Z [ OK ] RecordFunctionTest.RecordFunctionGuard (0 ms) 2023-01-11T20:58:23.0359099Z [ RUN ] RecordFunctionTest.Callbacks 2023-01-11T20:58:23.0378539Z [ OK ] RecordFunctionTest.Callbacks (2 ms) 2023-01-11T20:58:23.0379099Z [ RUN ] RecordFunctionTest.ShouldRun 2023-01-11T20:58:23.0379754Z [ OK ] RecordFunctionTest.ShouldRun (0 ms) 2023-01-11T20:58:23.0380305Z [ RUN ] RecordFunctionTest.Basic 2023-01-11T20:58:23.0396827Z [ OK ] RecordFunctionTest.Basic (1 ms) 2023-01-11T20:58:23.0397202Z [ RUN ] RecordFunctionTest.OperatorNameOverload 2023-01-11T20:58:23.0399299Z [ OK ] RecordFunctionTest.OperatorNameOverload (0 ms) 2023-01-11T20:58:23.0399681Z [----------] 7 tests from RecordFunctionTest (110 ms total) 2023-01-11T20:58:23.0399889Z 2023-01-11T20:58:23.0400281Z [----------] 1 test from ThreadLocalDebugInfoTest 2023-01-11T20:58:23.0400614Z [ RUN ] ThreadLocalDebugInfoTest.Basic 2023-01-11T20:58:23.0411809Z [ OK ] ThreadLocalDebugInfoTest.Basic (1 ms) 2023-01-11T20:58:23.0412228Z [----------] 1 test from ThreadLocalDebugInfoTest (1 ms total) 2023-01-11T20:58:23.0412411Z 2023-01-11T20:58:23.0412572Z [----------] 1 test from TestSymIntArrayRef 2023-01-11T20:58:23.0412892Z [ RUN ] TestSymIntArrayRef.BasicConversion 2023-01-11T20:58:23.0420774Z [ OK ] TestSymIntArrayRef.BasicConversion (0 ms) 2023-01-11T20:58:23.0421226Z [----------] 1 test from TestSymIntArrayRef (0 ms total) 2023-01-11T20:58:23.0421400Z 2023-01-11T20:58:23.0421546Z [----------] 4 tests from TestSymInt 2023-01-11T20:58:23.0421862Z [ RUN ] TestSymInt.NarrowCopyWithSymbolicInt 2023-01-11T20:58:23.0428917Z [ OK ] TestSymInt.NarrowCopyWithSymbolicInt (0 ms) 2023-01-11T20:58:23.0429270Z [ RUN ] TestSymInt.NarrowCopy 2023-01-11T20:58:23.0436092Z [ OK ] TestSymInt.NarrowCopy (0 ms) 2023-01-11T20:58:23.0436423Z [ RUN ] TestSymInt.AddSymbolicInt 2023-01-11T20:58:23.0436734Z [ OK ] TestSymInt.AddSymbolicInt (0 ms) 2023-01-11T20:58:23.0437076Z [ RUN ] TestSymInt.TestSymIntToSymNodeDispatch 2023-01-11T20:58:23.0442933Z [ OK ] TestSymInt.TestSymIntToSymNodeDispatch (0 ms) 2023-01-11T20:58:23.0443288Z [----------] 4 tests from TestSymInt (2 ms total) 2023-01-11T20:58:23.0443442Z 2023-01-11T20:58:23.0443604Z [----------] 1 test from FallbackGraphsTest 2023-01-11T20:58:23.0443905Z [ RUN ] FallbackGraphsTest.Basic 2023-01-11T20:58:23.0563851Z [ OK ] FallbackGraphsTest.Basic (12 ms) 2023-01-11T20:58:23.0564245Z [----------] 1 test from FallbackGraphsTest (12 ms total) 2023-01-11T20:58:23.0564415Z 2023-01-11T20:58:23.0564583Z [----------] 1 test from NoneSchemaMatchTest 2023-01-11T20:58:23.0564880Z [ RUN ] NoneSchemaMatchTest.Basic 2023-01-11T20:58:23.0570204Z [ OK ] NoneSchemaMatchTest.Basic (0 ms) 2023-01-11T20:58:23.0570791Z [----------] 1 test from NoneSchemaMatchTest (0 ms total) 2023-01-11T20:58:23.0571104Z 2023-01-11T20:58:23.0571307Z [----------] 1 test from PassManagementTest 2023-01-11T20:58:23.0571600Z [ RUN ] PassManagementTest.Basic 2023-01-11T20:58:23.0580626Z [ OK ] PassManagementTest.Basic (0 ms) 2023-01-11T20:58:23.0581018Z [----------] 1 test from PassManagementTest (1 ms total) 2023-01-11T20:58:23.0581355Z 2023-01-11T20:58:23.0581511Z [----------] 5 tests from LoopPeelerTest 2023-01-11T20:58:23.0581825Z [ RUN ] LoopPeelerTest.NoInductionVariableUse 2023-01-11T20:58:23.0622823Z [ OK ] LoopPeelerTest.NoInductionVariableUse (4 ms) 2023-01-11T20:58:23.0623373Z [ RUN ] LoopPeelerTest.YesInductionVariableUse 2023-01-11T20:58:23.0662478Z [ OK ] LoopPeelerTest.YesInductionVariableUse (3 ms) 2023-01-11T20:58:23.0662913Z [ RUN ] LoopPeelerTest.LoopWithTerminationCondition 2023-01-11T20:58:23.0716141Z [ OK ] LoopPeelerTest.LoopWithTerminationCondition (5 ms) 2023-01-11T20:58:23.0716552Z [ RUN ] LoopPeelerTest.SimpleNestedLoops 2023-01-11T20:58:23.0790259Z [ OK ] LoopPeelerTest.SimpleNestedLoops (7 ms) 2023-01-11T20:58:23.0790670Z [ RUN ] LoopPeelerTest.SimpleNestedLoops2 2023-01-11T20:58:23.0880156Z [ OK ] LoopPeelerTest.SimpleNestedLoops2 (8 ms) 2023-01-11T20:58:23.0880540Z [----------] 5 tests from LoopPeelerTest (29 ms total) 2023-01-11T20:58:23.0880706Z 2023-01-11T20:58:23.0880836Z [----------] 1 test from JitTracing 2023-01-11T20:58:23.0881093Z [ RUN ] JitTracing.Basic 2023-01-11T20:58:23.1871603Z [ OK ] JitTracing.Basic (99 ms) 2023-01-11T20:58:23.1871935Z [----------] 1 test from JitTracing (99 ms total) 2023-01-11T20:58:23.1872092Z 2023-01-11T20:58:23.1872300Z [----------] 1 test from InsertAndEliminateRedundantGuardsTest 2023-01-11T20:58:23.1872694Z [ RUN ] InsertAndEliminateRedundantGuardsTest.Basic 2023-01-11T20:58:23.1935680Z [ OK ] InsertAndEliminateRedundantGuardsTest.Basic (6 ms) 2023-01-11T20:58:23.1936195Z [----------] 1 test from InsertAndEliminateRedundantGuardsTest (6 ms total) 2023-01-11T20:58:23.1936417Z 2023-01-11T20:58:23.1936569Z [----------] 1 test from InsertBailOutsTest 2023-01-11T20:58:23.1936859Z [ RUN ] InsertBailOutsTest.Basic 2023-01-11T20:58:23.2059713Z [ OK ] InsertBailOutsTest.Basic (12 ms) 2023-01-11T20:58:23.2060358Z [----------] 1 test from InsertBailOutsTest (12 ms total) 2023-01-11T20:58:23.2060548Z 2023-01-11T20:58:23.2060795Z [----------] 2 tests from ProfilerTest 2023-01-11T20:58:23.2061081Z [ RUN ] ProfilerTest.Basic 2023-01-11T20:58:23.2985380Z [ OK ] ProfilerTest.Basic (92 ms) 2023-01-11T20:58:23.2985750Z [ RUN ] ProfilerTest.OptionalProfiling 2023-01-11T20:58:23.3004292Z [ OK ] ProfilerTest.OptionalProfiling (1 ms) 2023-01-11T20:58:23.3004664Z [----------] 2 tests from ProfilerTest (94 ms total) 2023-01-11T20:58:23.3004832Z 2023-01-11T20:58:23.3005033Z [----------] 2 tests from CallStackTest 2023-01-11T20:58:23.3005296Z [ RUN ] CallStackTest.Basic 2023-01-11T20:58:23.3082681Z [ OK ] CallStackTest.Basic (7 ms) 2023-01-11T20:58:23.3082995Z [ RUN ] CallStackTest.Caching 2023-01-11T20:58:23.3141612Z [ OK ] CallStackTest.Caching (5 ms) 2023-01-11T20:58:23.3142229Z [----------] 2 tests from CallStackTest (13 ms total) 2023-01-11T20:58:23.3142466Z 2023-01-11T20:58:23.3142647Z [----------] 2 tests from InlinedCallStackTest 2023-01-11T20:58:23.3142984Z [ RUN ] InlinedCallStackTest.BlockAnnotation 2023-01-11T20:58:23.3244267Z [ OK ] InlinedCallStackTest.BlockAnnotation (10 ms) 2023-01-11T20:58:23.3244845Z [ RUN ] InlinedCallStackTest.SelfCallMethods 2023-01-11T20:58:23.3396273Z [ OK ] InlinedCallStackTest.SelfCallMethods (15 ms) 2023-01-11T20:58:23.3396936Z [----------] 2 tests from InlinedCallStackTest (25 ms total) 2023-01-11T20:58:23.3397113Z 2023-01-11T20:58:23.3397278Z [----------] 1 test from AutogradSymbolsTest 2023-01-11T20:58:23.3397630Z [ RUN ] AutogradSymbolsTest.Basic 2023-01-11T20:58:23.3398466Z [ OK ] AutogradSymbolsTest.Basic (0 ms) 2023-01-11T20:58:23.3399023Z [----------] 1 test from AutogradSymbolsTest (0 ms total) 2023-01-11T20:58:23.3399195Z 2023-01-11T20:58:23.3399369Z [----------] 1 test from DefaultArgTypeHintingTest 2023-01-11T20:58:23.3399705Z [ RUN ] DefaultArgTypeHintingTest.Basic 2023-01-11T20:58:23.3427471Z [ OK ] DefaultArgTypeHintingTest.Basic (2 ms) 2023-01-11T20:58:23.3428158Z [----------] 1 test from DefaultArgTypeHintingTest (2 ms total) 2023-01-11T20:58:23.3428506Z 2023-01-11T20:58:23.3428761Z [----------] 5 tests from FuturesTest 2023-01-11T20:58:23.3429081Z [ RUN ] FuturesTest.Basic 2023-01-11T20:58:23.3429348Z [ OK ] FuturesTest.Basic (0 ms) 2023-01-11T20:58:23.3429596Z [ RUN ] FuturesTest.Error 2023-01-11T20:58:23.3441567Z [ OK ] FuturesTest.Error (1 ms) 2023-01-11T20:58:23.3442197Z [ RUN ] FuturesTest.Then 2023-01-11T20:58:23.3442703Z [ OK ] FuturesTest.Then (0 ms) 2023-01-11T20:58:23.3442994Z [ RUN ] FuturesTest.CollectAll 2023-01-11T20:58:23.3445151Z [ OK ] FuturesTest.CollectAll (0 ms) 2023-01-11T20:58:23.3445705Z [ RUN ] FuturesTest.CollectAny 2023-01-11T20:58:23.3447275Z [ OK ] FuturesTest.CollectAny (0 ms) 2023-01-11T20:58:23.3447867Z [----------] 5 tests from FuturesTest (1 ms total) 2023-01-11T20:58:23.3448142Z 2023-01-11T20:58:23.3448460Z [----------] 1 test from TLSFutureCallbacksTest 2023-01-11T20:58:23.3449026Z [ RUN ] TLSFutureCallbacksTest.Basic 2023-01-11T20:58:23.3467839Z [ OK ] TLSFutureCallbacksTest.Basic (2 ms) 2023-01-11T20:58:23.3468474Z [----------] 1 test from TLSFutureCallbacksTest (2 ms total) 2023-01-11T20:58:23.3468793Z 2023-01-11T20:58:23.3469153Z [----------] 1 test from ProfilerDisableInCallbackTest 2023-01-11T20:58:23.3469904Z [ RUN ] ProfilerDisableInCallbackTest.Basic 2023-01-11T20:58:23.3489200Z [ OK ] ProfilerDisableInCallbackTest.Basic (2 ms) 2023-01-11T20:58:23.3489814Z [----------] 1 test from ProfilerDisableInCallbackTest (2 ms total) 2023-01-11T20:58:23.3490014Z 2023-01-11T20:58:23.3490189Z [----------] 2 tests from RecordDebugHandles 2023-01-11T20:58:23.3490477Z [ RUN ] RecordDebugHandles.Basic 2023-01-11T20:58:23.3499620Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:300] Completed Stage: Warm Up 2023-01-11T20:58:23.3504948Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:306] Completed Stage: Collection 2023-01-11T20:58:23.3506865Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:310] Completed Stage: Post Processing 2023-01-11T20:58:23.3510470Z [ OK ] RecordDebugHandles.Basic (2 ms) 2023-01-11T20:58:23.3510812Z [ RUN ] RecordDebugHandles.ScopedCallbacks 2023-01-11T20:58:23.3513378Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:300] Completed Stage: Warm Up 2023-01-11T20:58:23.3544913Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:306] Completed Stage: Collection 2023-01-11T20:58:23.3546617Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:310] Completed Stage: Post Processing 2023-01-11T20:58:23.3550891Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:300] Completed Stage: Warm Up 2023-01-11T20:58:23.3579017Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:306] Completed Stage: Collection 2023-01-11T20:58:23.3580371Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:310] Completed Stage: Post Processing 2023-01-11T20:58:23.3585770Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:300] Completed Stage: Warm Up 2023-01-11T20:58:23.3639939Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:306] Completed Stage: Collection 2023-01-11T20:58:23.3641470Z STAGE:2023-01-11 20:58:23 41:41 ActivityProfilerController.cpp:310] Completed Stage: Post Processing 2023-01-11T20:58:23.3646877Z [ OK ] RecordDebugHandles.ScopedCallbacks (13 ms) 2023-01-11T20:58:23.3647297Z [----------] 2 tests from RecordDebugHandles (15 ms total) 2023-01-11T20:58:23.3647475Z 2023-01-11T20:58:23.3647641Z [----------] 1 test from IValueKWargsTest 2023-01-11T20:58:23.3647931Z [ RUN ] IValueKWargsTest.Basic 2023-01-11T20:58:23.3705510Z [ OK ] IValueKWargsTest.Basic (5 ms) 2023-01-11T20:58:23.3705867Z [----------] 1 test from IValueKWargsTest (5 ms total) 2023-01-11T20:58:23.3706075Z 2023-01-11T20:58:23.3706276Z [----------] 1 test from ComputeFlopsTest 2023-01-11T20:58:23.3706604Z [ RUN ] ComputeFlopsTest.Basic 2023-01-11T20:58:23.3720695Z [W util.cpp:501] Warning: Failed to compute flops for op aten::conv2d because both input and weight must be size 4. (function computeFlops) 2023-01-11T20:58:23.3721186Z [W util.cpp:516] Warning: Failed to compute flops for op aten::conv2d because stride must be size 2 and cannot be 0. (function computeFlops) 2023-01-11T20:58:23.3721802Z [W util.cpp:472] Warning: Calculating flops for aten::conv2d requires groups, padding, stride, dilation, input_size, and weight_size in saved arguments. (function computeFlops) 2023-01-11T20:58:23.3722271Z [W util.cpp:545] Warning: Calculating flops for aten::mm requires mat1_size and mat2_size in saved arguments. (function computeFlops) 2023-01-11T20:58:23.3722712Z [ OK ] ComputeFlopsTest.Basic (0 ms) 2023-01-11T20:58:23.3723040Z [----------] 1 test from ComputeFlopsTest (0 ms total) 2023-01-11T20:58:23.3723205Z 2023-01-11T20:58:23.3723357Z [----------] 1 test from TestConstant 2023-01-11T20:58:23.3723638Z [ RUN ] TestConstant.TensorGrad 2023-01-11T20:58:23.3723939Z [ OK ] TestConstant.TensorGrad (0 ms) 2023-01-11T20:58:23.3724243Z [----------] 1 test from TestConstant (0 ms total) 2023-01-11T20:58:23.3724398Z 2023-01-11T20:58:23.3724541Z [----------] 1 test from TestMutation 2023-01-11T20:58:23.3724804Z [ RUN ] TestMutation.Basic 2023-01-11T20:58:23.3733243Z [ OK ] TestMutation.Basic (2 ms) 2023-01-11T20:58:23.3733718Z [----------] 1 test from TestMutation (2 ms total) 2023-01-11T20:58:23.3733871Z 2023-01-11T20:58:23.3734078Z [----------] 1 test from TestInplaceToFunctionalActivation 2023-01-11T20:58:23.3734629Z [ RUN ] TestInplaceToFunctionalActivation.Basic 2023-01-11T20:58:23.3744075Z [ OK ] TestInplaceToFunctionalActivation.Basic (0 ms) 2023-01-11T20:58:23.3744576Z [----------] 1 test from TestInplaceToFunctionalActivation (1 ms total) 2023-01-11T20:58:23.3744776Z 2023-01-11T20:58:23.3744951Z [----------] 1 test from TestRegisterShapeOp 2023-01-11T20:58:23.3745244Z [ RUN ] TestRegisterShapeOp.Basic 2023-01-11T20:58:25.6708011Z [ OK ] TestRegisterShapeOp.Basic (2296 ms) 2023-01-11T20:58:25.6708515Z [----------] 1 test from TestRegisterShapeOp (2296 ms total) 2023-01-11T20:58:25.6708690Z 2023-01-11T20:58:25.6708904Z [----------] 1 test from TestFunctionalToInplaceActivation 2023-01-11T20:58:25.6709283Z [ RUN ] TestFunctionalToInplaceActivation.Basic 2023-01-11T20:58:25.6717146Z [ OK ] TestFunctionalToInplaceActivation.Basic (0 ms) 2023-01-11T20:58:25.6717801Z [----------] 1 test from TestFunctionalToInplaceActivation (1 ms total) 2023-01-11T20:58:25.6718006Z 2023-01-11T20:58:25.6718176Z [----------] 2 tests from TestFunctionExecutor 2023-01-11T20:58:25.6718518Z [ RUN ] TestFunctionExecutor.SimpleExecutorTest 2023-01-11T20:58:25.6773849Z [ OK ] TestFunctionExecutor.SimpleExecutorTest (5 ms) 2023-01-11T20:58:25.6774250Z [ RUN ] TestFunctionExecutor.RunDecompositionTest 2023-01-11T20:58:25.7007351Z [ OK ] TestFunctionExecutor.RunDecompositionTest (23 ms) 2023-01-11T20:58:25.7007977Z [----------] 2 tests from TestFunctionExecutor (28 ms total) 2023-01-11T20:58:25.7008153Z 2023-01-11T20:58:25.7008323Z [----------] 1 test from TestShapeGraphLinting 2023-01-11T20:58:25.7008638Z [ RUN ] TestShapeGraphLinting.Basic 2023-01-11T20:58:25.7054074Z [ OK ] TestShapeGraphLinting.Basic (4 ms) 2023-01-11T20:58:25.7054636Z [----------] 1 test from TestShapeGraphLinting (4 ms total) 2023-01-11T20:58:25.7054913Z 2023-01-11T20:58:25.7055185Z [----------] 1 test from Composed 2023-01-11T20:58:25.7055645Z [ RUN ] Composed.ComposedOp 2023-01-11T20:58:25.7055944Z [ OK ] Composed.ComposedOp (0 ms) 2023-01-11T20:58:25.7056225Z [----------] 1 test from Composed (0 ms total) 2023-01-11T20:58:25.7056367Z 2023-01-11T20:58:25.7056528Z [----------] 1 test from ConstantPropagation 2023-01-11T20:58:25.7056902Z [ RUN ] ConstantPropagation.CustomClassesCanBePropagated 2023-01-11T20:58:25.7080846Z [ OK ] ConstantPropagation.CustomClassesCanBePropagated (2 ms) 2023-01-11T20:58:25.7081353Z [----------] 1 test from ConstantPropagation (2 ms total) 2023-01-11T20:58:25.7081522Z 2023-01-11T20:58:25.7081825Z [----------] 19 tests from MobileTypeParserTest 2023-01-11T20:58:25.7082119Z [ RUN ] MobileTypeParserTest.Int 2023-01-11T20:58:25.7082492Z [ OK ] MobileTypeParserTest.Int (0 ms) 2023-01-11T20:58:25.7083073Z [ RUN ] MobileTypeParserTest.NestedContainersAnnotationStr 2023-01-11T20:58:25.7083726Z [ OK ] MobileTypeParserTest.NestedContainersAnnotationStr (0 ms) 2023-01-11T20:58:25.7084227Z [ RUN ] MobileTypeParserTest.TorchBindClass 2023-01-11T20:58:25.7084643Z [ OK ] MobileTypeParserTest.TorchBindClass (0 ms) 2023-01-11T20:58:25.7085299Z [ RUN ] MobileTypeParserTest.ListOfTorchBindClass 2023-01-11T20:58:25.7085898Z [ OK ] MobileTypeParserTest.ListOfTorchBindClass (0 ms) 2023-01-11T20:58:25.7086592Z [ RUN ] MobileTypeParserTest.NestedContainersAnnotationStrWithSpaces 2023-01-11T20:58:25.7087409Z [ OK ] MobileTypeParserTest.NestedContainersAnnotationStrWithSpaces (0 ms) 2023-01-11T20:58:25.7088002Z [ RUN ] MobileTypeParserTest.NamedTuple 2023-01-11T20:58:25.7088655Z [ OK ] MobileTypeParserTest.NamedTuple (0 ms) 2023-01-11T20:58:25.7089082Z [ RUN ] MobileTypeParserTest.DictNestedNamedTupleTypeList 2023-01-11T20:58:25.7090989Z [ OK ] MobileTypeParserTest.DictNestedNamedTupleTypeList (0 ms) 2023-01-11T20:58:25.7091655Z [ RUN ] MobileTypeParserTest.NamedTupleNestedNamedTupleTypeList 2023-01-11T20:58:25.7092999Z [ OK ] MobileTypeParserTest.NamedTupleNestedNamedTupleTypeList (0 ms) 2023-01-11T20:58:25.7093663Z [ RUN ] MobileTypeParserTest.NamedTupleNestedNamedTuple 2023-01-11T20:58:25.7094621Z [ OK ] MobileTypeParserTest.NamedTupleNestedNamedTuple (0 ms) 2023-01-11T20:58:25.7095132Z [ RUN ] MobileTypeParserTest.Empty 2023-01-11T20:58:25.7121373Z [ OK ] MobileTypeParserTest.Empty (2 ms) 2023-01-11T20:58:25.7121976Z [ RUN ] MobileTypeParserTest.TypoRaises 2023-01-11T20:58:25.7157495Z [ OK ] MobileTypeParserTest.TypoRaises (3 ms) 2023-01-11T20:58:25.7158185Z [ RUN ] MobileTypeParserTest.MismatchBracketRaises 2023-01-11T20:58:25.7193523Z [ OK ] MobileTypeParserTest.MismatchBracketRaises (3 ms) 2023-01-11T20:58:25.7194177Z [ RUN ] MobileTypeParserTest.MismatchBracketRaises2 2023-01-11T20:58:25.7229287Z [ OK ] MobileTypeParserTest.MismatchBracketRaises2 (3 ms) 2023-01-11T20:58:25.7229929Z [ RUN ] MobileTypeParserTest.DictWithoutValueRaises 2023-01-11T20:58:25.7260706Z [ OK ] MobileTypeParserTest.DictWithoutValueRaises (3 ms) 2023-01-11T20:58:25.7261506Z [ RUN ] MobileTypeParserTest.ListArgCountMismatchRaises 2023-01-11T20:58:25.7296846Z [ OK ] MobileTypeParserTest.ListArgCountMismatchRaises (3 ms) 2023-01-11T20:58:25.7297510Z [ RUN ] MobileTypeParserTest.DictArgCountMismatchRaises 2023-01-11T20:58:25.7327466Z [ OK ] MobileTypeParserTest.DictArgCountMismatchRaises (3 ms) 2023-01-11T20:58:25.7328125Z [ RUN ] MobileTypeParserTest.ValidTypeWithExtraStuffRaises 2023-01-11T20:58:25.7348443Z [ OK ] MobileTypeParserTest.ValidTypeWithExtraStuffRaises (2 ms) 2023-01-11T20:58:25.7349077Z [ RUN ] MobileTypeParserTest.NonIdentifierRaises 2023-01-11T20:58:25.7368923Z [ OK ] MobileTypeParserTest.NonIdentifierRaises (2 ms) 2023-01-11T20:58:25.7369609Z [ RUN ] MobileTypeParserTest.DictNestedNamedTupleTypeListRaises 2023-01-11T20:58:25.7413179Z [ OK ] MobileTypeParserTest.DictNestedNamedTupleTypeListRaises (4 ms) 2023-01-11T20:58:25.7413735Z [----------] 19 tests from MobileTypeParserTest (33 ms total) 2023-01-11T20:58:25.7413911Z 2023-01-11T20:58:25.7414074Z [----------] 13 tests from ModuleAPITest 2023-01-11T20:58:25.7414671Z [ RUN ] ModuleAPITest.MethodRunAsync 2023-01-11T20:58:25.7715705Z [ OK ] ModuleAPITest.MethodRunAsync (30 ms) 2023-01-11T20:58:25.7716042Z [ RUN ] ModuleAPITest.Clone 2023-01-11T20:58:25.7718043Z [ OK ] ModuleAPITest.Clone (0 ms) 2023-01-11T20:58:25.7718386Z [ RUN ] ModuleAPITest.CloneWithModuleInterface 2023-01-11T20:58:25.7822288Z [ OK ] ModuleAPITest.CloneWithModuleInterface (10 ms) 2023-01-11T20:58:25.7822741Z [ RUN ] ModuleAPITest.Copy 2023-01-11T20:58:25.7824032Z [ OK ] ModuleAPITest.Copy (0 ms) 2023-01-11T20:58:25.7824317Z [ RUN ] ModuleAPITest.DeepCopy 2023-01-11T20:58:25.7831032Z [ OK ] ModuleAPITest.DeepCopy (0 ms) 2023-01-11T20:58:25.7831562Z [ RUN ] ModuleAPITest.DeepCopyString 2023-01-11T20:58:25.7832321Z [ OK ] ModuleAPITest.DeepCopyString (0 ms) 2023-01-11T20:58:25.7833601Z [ RUN ] ModuleAPITest.DeepCopyEnum 2023-01-11T20:58:25.7834200Z [ OK ] ModuleAPITest.DeepCopyEnum (0 ms) 2023-01-11T20:58:25.7834543Z [ RUN ] ModuleAPITest.DeepCopyPreservesAliasing 2023-01-11T20:58:25.7840387Z [ OK ] ModuleAPITest.DeepCopyPreservesAliasing (0 ms) 2023-01-11T20:58:25.7840995Z [ RUN ] ModuleAPITest.Constants 2023-01-11T20:58:25.7841516Z [ OK ] ModuleAPITest.Constants (0 ms) 2023-01-11T20:58:25.7841992Z [ RUN ] ModuleAPITest.Parameters 2023-01-11T20:58:25.7842942Z [ OK ] ModuleAPITest.Parameters (0 ms) 2023-01-11T20:58:25.7843485Z [ RUN ] ModuleAPITest.Define 2023-01-11T20:58:25.7913006Z [ OK ] ModuleAPITest.Define (6 ms) 2023-01-11T20:58:25.7913529Z [ RUN ] ModuleAPITest.Freezing 2023-01-11T20:58:25.7976698Z [ OK ] ModuleAPITest.Freezing (6 ms) 2023-01-11T20:58:25.7977336Z [ RUN ] ModuleAPITest.OfiFreezesTraining 2023-01-11T20:58:25.8039680Z [ OK ] ModuleAPITest.OfiFreezesTraining (6 ms) 2023-01-11T20:58:25.8040171Z [----------] 13 tests from ModuleAPITest (62 ms total) 2023-01-11T20:58:25.8040340Z 2023-01-11T20:58:25.8040520Z [----------] 6 tests from PeepholeOptimizeTest 2023-01-11T20:58:25.8040837Z [ RUN ] PeepholeOptimizeTest.IsAndIsNot 2023-01-11T20:58:25.8048809Z [ OK ] PeepholeOptimizeTest.IsAndIsNot (0 ms) 2023-01-11T20:58:25.8049464Z [ RUN ] PeepholeOptimizeTest.IsAndIsNot2 2023-01-11T20:58:25.8057315Z [ OK ] PeepholeOptimizeTest.IsAndIsNot2 (0 ms) 2023-01-11T20:58:25.8057671Z [ RUN ] PeepholeOptimizeTest.IsAndIsNot3 2023-01-11T20:58:25.8068068Z [ OK ] PeepholeOptimizeTest.IsAndIsNot3 (1 ms) 2023-01-11T20:58:25.8068481Z [ RUN ] PeepholeOptimizeTest.UnwrapOptional 2023-01-11T20:58:25.8078129Z [ OK ] PeepholeOptimizeTest.UnwrapOptional (0 ms) 2023-01-11T20:58:25.8078581Z [ RUN ] PeepholeOptimizeTest.UnwrapOptional2 2023-01-11T20:58:25.8088466Z [ OK ] PeepholeOptimizeTest.UnwrapOptional2 (0 ms) 2023-01-11T20:58:25.8088830Z [ RUN ] PeepholeOptimizeTest.AddMMFusion 2023-01-11T20:58:25.8100478Z [ OK ] PeepholeOptimizeTest.AddMMFusion (1 ms) 2023-01-11T20:58:25.8101111Z [----------] 6 tests from PeepholeOptimizeTest (6 ms total) 2023-01-11T20:58:25.8101294Z 2023-01-11T20:58:25.8101464Z [----------] 5 tests from QualifiedNameTest 2023-01-11T20:58:25.8101784Z [ RUN ] QualifiedNameTest.PrefixConstruction 2023-01-11T20:58:25.8102159Z [ OK ] QualifiedNameTest.PrefixConstruction (0 ms) 2023-01-11T20:58:25.8102524Z [ RUN ] QualifiedNameTest.DottedConstruction 2023-01-11T20:58:25.8102893Z [ OK ] QualifiedNameTest.DottedConstruction (0 ms) 2023-01-11T20:58:25.8103228Z [ RUN ] QualifiedNameTest.BadInputRaises 2023-01-11T20:58:25.8149460Z [ OK ] QualifiedNameTest.BadInputRaises (4 ms) 2023-01-11T20:58:25.8149942Z [ RUN ] QualifiedNameTest.Equality 2023-01-11T20:58:25.8150320Z [ OK ] QualifiedNameTest.Equality (0 ms) 2023-01-11T20:58:25.8150750Z [ RUN ] QualifiedNameTest.IsPrefixOf 2023-01-11T20:58:25.8151155Z [ OK ] QualifiedNameTest.IsPrefixOf (0 ms) 2023-01-11T20:58:25.8151498Z [----------] 5 tests from QualifiedNameTest (4 ms total) 2023-01-11T20:58:25.8151648Z 2023-01-11T20:58:25.8151817Z [----------] 6 tests from SerializationTest 2023-01-11T20:58:25.8152161Z [ RUN ] SerializationTest.ExtraFilesHookPreference 2023-01-11T20:58:25.8171009Z [W export_module.cpp:587] Warning: An extra files hook attempted to write metadata.json but this is already written in extra files and so will be skipped. This warning will only appear once per process. (function operator()) 2023-01-11T20:58:25.8248195Z [ OK ] SerializationTest.ExtraFilesHookPreference (9 ms) 2023-01-11T20:58:25.8248587Z [ RUN ] SerializationTest.ExtraFileHooksNoSecret 2023-01-11T20:58:25.8261289Z [ OK ] SerializationTest.ExtraFileHooksNoSecret (1 ms) 2023-01-11T20:58:25.8261682Z [ RUN ] SerializationTest.ExtraFileHooksWithSecret 2023-01-11T20:58:25.8274622Z [ OK ] SerializationTest.ExtraFileHooksWithSecret (1 ms) 2023-01-11T20:58:25.8275057Z [ RUN ] SerializationTest.TypeTags 2023-01-11T20:58:25.8307012Z [ OK ] SerializationTest.TypeTags (3 ms) 2023-01-11T20:58:25.8307356Z [ RUN ] SerializationTest.ParentDirNotExist 2023-01-11T20:58:25.8343119Z [ OK ] SerializationTest.ParentDirNotExist (3 ms) 2023-01-11T20:58:25.8343514Z [ RUN ] SerializationTest.CalculateNecessaryArgsTest 2023-01-11T20:58:25.8345701Z [ OK ] SerializationTest.CalculateNecessaryArgsTest (0 ms) 2023-01-11T20:58:25.8346192Z [----------] 6 tests from SerializationTest (19 ms total) 2023-01-11T20:58:25.8346360Z 2023-01-11T20:58:25.8346517Z [----------] 3 tests from TestSourceRoundTrip 2023-01-11T20:58:25.8346853Z [ RUN ] TestSourceRoundTrip.UpsampleNearest2d 2023-01-11T20:58:25.8571196Z [ OK ] TestSourceRoundTrip.UpsampleNearest2d (22 ms) 2023-01-11T20:58:25.8571579Z [ RUN ] TestSourceRoundTrip.CheckAttrAccess 2023-01-11T20:58:25.8580164Z [ OK ] TestSourceRoundTrip.CheckAttrAccess (0 ms) 2023-01-11T20:58:25.8580527Z [ RUN ] TestSourceRoundTrip.MethodInvocation 2023-01-11T20:58:25.9360346Z [ OK ] TestSourceRoundTrip.MethodInvocation (77 ms) 2023-01-11T20:58:25.9361002Z [----------] 3 tests from TestSourceRoundTrip (101 ms total) 2023-01-11T20:58:25.9361181Z 2023-01-11T20:58:25.9361326Z [----------] 1 test from TestSaveLoad 2023-01-11T20:58:25.9361630Z [ RUN ] TestSaveLoad.LoadWithoutDebugInfo 2023-01-11T20:58:25.9696370Z [ OK ] TestSaveLoad.LoadWithoutDebugInfo (33 ms) 2023-01-11T20:58:25.9696712Z [----------] 1 test from TestSaveLoad (33 ms total) 2023-01-11T20:58:25.9696863Z 2023-01-11T20:58:25.9697053Z [----------] 2 tests from FunctionSchemaIsAliasingTest 2023-01-11T20:58:25.9697394Z [ RUN ] FunctionSchemaIsAliasingTest.Basic 2023-01-11T20:58:25.9699378Z [ OK ] FunctionSchemaIsAliasingTest.Basic (0 ms) 2023-01-11T20:58:25.9699760Z [ RUN ] FunctionSchemaIsAliasingTest.InvalidArgument 2023-01-11T20:58:25.9724630Z [ OK ] FunctionSchemaIsAliasingTest.InvalidArgument (2 ms) 2023-01-11T20:58:25.9725132Z [----------] 2 tests from FunctionSchemaIsAliasingTest (2 ms total) 2023-01-11T20:58:25.9725372Z 2023-01-11T20:58:25.9725565Z [----------] 2 tests from FunctionSchemaIsMutableTest 2023-01-11T20:58:25.9725907Z [ RUN ] FunctionSchemaIsMutableTest.Basic 2023-01-11T20:58:25.9728277Z [ OK ] FunctionSchemaIsMutableTest.Basic (0 ms) 2023-01-11T20:58:25.9728666Z [ RUN ] FunctionSchemaIsMutableTest.InvalidArgument 2023-01-11T20:58:25.9763615Z [ OK ] FunctionSchemaIsMutableTest.InvalidArgument (3 ms) 2023-01-11T20:58:25.9764220Z [----------] 2 tests from FunctionSchemaIsMutableTest (3 ms total) 2023-01-11T20:58:25.9764415Z 2023-01-11T20:58:25.9764598Z [----------] 5 tests from SchemaInfoIsMutableTest 2023-01-11T20:58:25.9764924Z [ RUN ] SchemaInfoIsMutableTest.Basic 2023-01-11T20:58:25.9802249Z [ OK ] SchemaInfoIsMutableTest.Basic (3 ms) 2023-01-11T20:58:25.9802620Z [ RUN ] SchemaInfoIsMutableTest.InvalidArgument 2023-01-11T20:58:25.9837628Z [ OK ] SchemaInfoIsMutableTest.InvalidArgument (3 ms) 2023-01-11T20:58:25.9838013Z [ RUN ] SchemaInfoIsMutableTest.AliasingInputs 2023-01-11T20:58:25.9844880Z [ OK ] SchemaInfoIsMutableTest.AliasingInputs (0 ms) 2023-01-11T20:58:25.9845307Z [ RUN ] SchemaInfoIsMutableTest.InstanceNorm 2023-01-11T20:58:25.9851182Z [ OK ] SchemaInfoIsMutableTest.InstanceNorm (0 ms) 2023-01-11T20:58:25.9851584Z [ RUN ] SchemaInfoIsMutableTest.BatchNorm 2023-01-11T20:58:25.9857737Z [ OK ] SchemaInfoIsMutableTest.BatchNorm (0 ms) 2023-01-11T20:58:25.9858395Z [----------] 5 tests from SchemaInfoIsMutableTest (9 ms total) 2023-01-11T20:58:25.9858720Z 2023-01-11T20:58:25.9858941Z [----------] 2 tests from SchemaInfoIsNonDeterministicTest 2023-01-11T20:58:25.9859325Z [ RUN ] SchemaInfoIsNonDeterministicTest.Basic 2023-01-11T20:58:25.9863139Z [ OK ] SchemaInfoIsNonDeterministicTest.Basic (0 ms) 2023-01-11T20:58:25.9863525Z [ RUN ] SchemaInfoIsNonDeterministicTest.Dropout 2023-01-11T20:58:25.9865825Z [ OK ] SchemaInfoIsNonDeterministicTest.Dropout (0 ms) 2023-01-11T20:58:25.9866264Z [----------] 2 tests from SchemaInfoIsNonDeterministicTest (0 ms total) 2023-01-11T20:58:25.9866462Z 2023-01-11T20:58:25.9866649Z [----------] 3 tests from FunctionSchemaMayAliasTest 2023-01-11T20:58:25.9866977Z [ RUN ] FunctionSchemaMayAliasTest.Basic 2023-01-11T20:58:25.9869822Z [ OK ] FunctionSchemaMayAliasTest.Basic (0 ms) 2023-01-11T20:58:25.9870221Z [ RUN ] FunctionSchemaMayAliasTest.InvalidArgument 2023-01-11T20:58:25.9900666Z [ OK ] FunctionSchemaMayAliasTest.InvalidArgument (3 ms) 2023-01-11T20:58:25.9901037Z [ RUN ] FunctionSchemaMayAliasTest.Wildcard 2023-01-11T20:58:25.9903961Z [ OK ] FunctionSchemaMayAliasTest.Wildcard (0 ms) 2023-01-11T20:58:25.9904540Z [----------] 3 tests from FunctionSchemaMayAliasTest (3 ms total) 2023-01-11T20:58:25.9904729Z 2023-01-11T20:58:25.9904905Z [----------] 7 tests from SchemaInfoMayAliasTest 2023-01-11T20:58:25.9905241Z [ RUN ] SchemaInfoMayAliasTest.AliasingInputs 2023-01-11T20:58:25.9908824Z [ OK ] SchemaInfoMayAliasTest.AliasingInputs (0 ms) 2023-01-11T20:58:25.9909209Z [ RUN ] SchemaInfoMayAliasTest.AliasingOutputs 2023-01-11T20:58:25.9917062Z [ OK ] SchemaInfoMayAliasTest.AliasingOutputs (0 ms) 2023-01-11T20:58:25.9917457Z [ RUN ] SchemaInfoMayAliasTest.AliasingInputOutput 2023-01-11T20:58:25.9922759Z [ OK ] SchemaInfoMayAliasTest.AliasingInputOutput (0 ms) 2023-01-11T20:58:25.9923220Z [ RUN ] SchemaInfoMayAliasTest.MultipleWildcardInputs 2023-01-11T20:58:25.9931466Z [ OK ] SchemaInfoMayAliasTest.MultipleWildcardInputs (0 ms) 2023-01-11T20:58:25.9931950Z [ RUN ] SchemaInfoMayAliasTest.MultipleNonWildcardInputs 2023-01-11T20:58:25.9935973Z [W schema_info.cpp:333] Warning: alias::a appears twice in same argument list which will make aliasing checks more conservative. (function operator()) 2023-01-11T20:58:25.9938309Z [ OK ] SchemaInfoMayAliasTest.MultipleNonWildcardInputs (0 ms) 2023-01-11T20:58:25.9938755Z [ RUN ] SchemaInfoMayAliasTest.MultipleNonWildcardOutputs 2023-01-11T20:58:25.9941804Z [W schema_info.cpp:333] Warning: alias::a appears twice in same argument list which will make aliasing checks more conservative. (function operator()) 2023-01-11T20:58:25.9943375Z [ OK ] SchemaInfoMayAliasTest.MultipleNonWildcardOutputs (0 ms) 2023-01-11T20:58:25.9943841Z [ RUN ] SchemaInfoMayAliasTest.MismatchingTypes 2023-01-11T20:58:25.9946028Z [ OK ] SchemaInfoMayAliasTest.MismatchingTypes (0 ms) 2023-01-11T20:58:25.9946444Z [----------] 7 tests from SchemaInfoMayAliasTest (4 ms total) 2023-01-11T20:58:25.9946625Z 2023-01-11T20:58:25.9946831Z [----------] 3 tests from FunctionSchemaMayContainAliasTest 2023-01-11T20:58:25.9947198Z [ RUN ] FunctionSchemaMayContainAliasTest.Basic 2023-01-11T20:58:25.9950286Z [ OK ] FunctionSchemaMayContainAliasTest.Basic (0 ms) 2023-01-11T20:58:25.9950682Z [ RUN ] FunctionSchemaMayContainAliasTest.Wildcard 2023-01-11T20:58:25.9954414Z [ OK ] FunctionSchemaMayContainAliasTest.Wildcard (0 ms) 2023-01-11T20:58:25.9954976Z [ RUN ] FunctionSchemaMayContainAliasTest.InputAndOutputContainers 2023-01-11T20:58:25.9957791Z [ OK ] FunctionSchemaMayContainAliasTest.InputAndOutputContainers (0 ms) 2023-01-11T20:58:25.9958582Z [----------] 3 tests from FunctionSchemaMayContainAliasTest (1 ms total) 2023-01-11T20:58:25.9958787Z 2023-01-11T20:58:25.9958984Z [----------] 6 tests from SchemaInfoMayContainAliasTest 2023-01-11T20:58:25.9959398Z [ RUN ] SchemaInfoMayContainAliasTest.ContainAliasInputsEqual 2023-01-11T20:58:25.9963103Z [ OK ] SchemaInfoMayContainAliasTest.ContainAliasInputsEqual (0 ms) 2023-01-11T20:58:25.9963594Z [ RUN ] SchemaInfoMayContainAliasTest.ContainAliasInputsContained 2023-01-11T20:58:25.9969650Z [ OK ] SchemaInfoMayContainAliasTest.ContainAliasInputsContained (0 ms) 2023-01-11T20:58:25.9970105Z [ RUN ] SchemaInfoMayContainAliasTest.ContainAliasOutputs 2023-01-11T20:58:25.9978649Z [ OK ] SchemaInfoMayContainAliasTest.ContainAliasOutputs (0 ms) 2023-01-11T20:58:25.9979108Z [ RUN ] SchemaInfoMayContainAliasTest.ContainAliasInputOutput 2023-01-11T20:58:25.9987333Z [ OK ] SchemaInfoMayContainAliasTest.ContainAliasInputOutput (0 ms) 2023-01-11T20:58:25.9987915Z [ RUN ] SchemaInfoMayContainAliasTest.InputAndOutputContainers 2023-01-11T20:58:25.9994546Z [ OK ] SchemaInfoMayContainAliasTest.InputAndOutputContainers (0 ms) 2023-01-11T20:58:25.9995206Z [ RUN ] SchemaInfoMayContainAliasTest.Wildcard 2023-01-11T20:58:26.0002356Z [ OK ] SchemaInfoMayContainAliasTest.Wildcard (0 ms) 2023-01-11T20:58:26.0003034Z [----------] 6 tests from SchemaInfoMayContainAliasTest (4 ms total) 2023-01-11T20:58:26.0003228Z 2023-01-11T20:58:26.0003394Z [----------] 2 tests from SchemaMatchingTest 2023-01-11T20:58:26.0003690Z [ RUN ] SchemaMatchingTest.VarType 2023-01-11T20:58:26.0057801Z [ OK ] SchemaMatchingTest.VarType (5 ms) 2023-01-11T20:58:26.0058123Z [ RUN ] SchemaMatchingTest.VarType2 2023-01-11T20:58:26.0111839Z [ OK ] SchemaMatchingTest.VarType2 (5 ms) 2023-01-11T20:58:26.0112263Z [----------] 2 tests from SchemaMatchingTest (10 ms total) 2023-01-11T20:58:26.0112433Z 2023-01-11T20:58:26.0112569Z [----------] 6 tests from StackOptTest 2023-01-11T20:58:26.0112873Z [ RUN ] StackOptTest.UseVariadicStack 2023-01-11T20:58:26.0949455Z [ OK ] StackOptTest.UseVariadicStack (83 ms) 2023-01-11T20:58:26.0949863Z [ RUN ] StackOptTest.UseVariadicStackReplaceMultiple 2023-01-11T20:58:26.1505723Z [ OK ] StackOptTest.UseVariadicStackReplaceMultiple (55 ms) 2023-01-11T20:58:26.1506202Z [ RUN ] StackOptTest.UseVariadicStackWithMultipleListUses 2023-01-11T20:58:26.1797485Z [ OK ] StackOptTest.UseVariadicStackWithMultipleListUses (29 ms) 2023-01-11T20:58:26.1797966Z [ RUN ] StackOptTest.UseVariadicStackWithListMutationAfterCat 2023-01-11T20:58:26.2215795Z [ OK ] StackOptTest.UseVariadicStackWithListMutationAfterCat (41 ms) 2023-01-11T20:58:26.2216302Z [ RUN ] StackOptTest.UseVariadicStackWithListMutationBeforeCat 2023-01-11T20:58:26.2684152Z [ OK ] StackOptTest.UseVariadicStackWithListMutationBeforeCat (46 ms) 2023-01-11T20:58:26.2684753Z [ RUN ] StackOptTest.UseVariadicStackWithMultipleListMutations 2023-01-11T20:58:26.3474458Z [ OK ] StackOptTest.UseVariadicStackWithMultipleListMutations (78 ms) 2023-01-11T20:58:26.3475106Z [----------] 6 tests from StackOptTest (336 ms total) 2023-01-11T20:58:26.3475266Z 2023-01-11T20:58:26.3475448Z [----------] 16 tests from SubgraphMatcherTest 2023-01-11T20:58:26.3475763Z [ RUN ] SubgraphMatcherTest.Trivial1 2023-01-11T20:58:26.3478707Z [ OK ] SubgraphMatcherTest.Trivial1 (0 ms) 2023-01-11T20:58:26.3479014Z [ RUN ] SubgraphMatcherTest.Trivial2 2023-01-11T20:58:26.3480011Z [ OK ] SubgraphMatcherTest.Trivial2 (0 ms) 2023-01-11T20:58:26.3480353Z [ RUN ] SubgraphMatcherTest.Trivial3 2023-01-11T20:58:26.3487511Z [ OK ] SubgraphMatcherTest.Trivial3 (0 ms) 2023-01-11T20:58:26.3487835Z [ RUN ] SubgraphMatcherTest.Trivial4 2023-01-11T20:58:26.3489457Z [ OK ] SubgraphMatcherTest.Trivial4 (0 ms) 2023-01-11T20:58:26.3489856Z [ RUN ] SubgraphMatcherTest.Linear1 2023-01-11T20:58:26.3499026Z [ OK ] SubgraphMatcherTest.Linear1 (0 ms) 2023-01-11T20:58:26.3499349Z [ RUN ] SubgraphMatcherTest.Linear2 2023-01-11T20:58:26.3500544Z [ OK ] SubgraphMatcherTest.Linear2 (0 ms) 2023-01-11T20:58:26.3500899Z [ RUN ] SubgraphMatcherTest.Diamond1 2023-01-11T20:58:26.3516216Z [ OK ] SubgraphMatcherTest.Diamond1 (1 ms) 2023-01-11T20:58:26.3516575Z [ RUN ] SubgraphMatcherTest.Diamond2 2023-01-11T20:58:26.3518868Z [ OK ] SubgraphMatcherTest.Diamond2 (0 ms) 2023-01-11T20:58:26.3519219Z [ RUN ] SubgraphMatcherTest.XPattern 2023-01-11T20:58:26.3531458Z [ OK ] SubgraphMatcherTest.XPattern (1 ms) 2023-01-11T20:58:26.3531866Z [ RUN ] SubgraphMatcherTest.MultipleMatches 2023-01-11T20:58:26.3539201Z [ OK ] SubgraphMatcherTest.MultipleMatches (0 ms) 2023-01-11T20:58:26.3539631Z [ RUN ] SubgraphMatcherTest.OverlappingMatches 2023-01-11T20:58:26.3547575Z [ OK ] SubgraphMatcherTest.OverlappingMatches (0 ms) 2023-01-11T20:58:26.3548021Z [ RUN ] SubgraphMatcherTest.MatchInBasicBlocks1 2023-01-11T20:58:26.3562208Z [ OK ] SubgraphMatcherTest.MatchInBasicBlocks1 (1 ms) 2023-01-11T20:58:26.3562647Z [ RUN ] SubgraphMatcherTest.MatchInBasicBlocks2 2023-01-11T20:58:26.3574003Z [ OK ] SubgraphMatcherTest.MatchInBasicBlocks2 (1 ms) 2023-01-11T20:58:26.3574539Z [ RUN ] SubgraphMatcherTest.MatchesAttributes 2023-01-11T20:58:26.3603463Z [ OK ] SubgraphMatcherTest.MatchesAttributes (2 ms) 2023-01-11T20:58:26.3603881Z [ RUN ] SubgraphMatcherTest.BadPattern 2023-01-11T20:58:26.3646864Z [ OK ] SubgraphMatcherTest.BadPattern (4 ms) 2023-01-11T20:58:26.3647265Z [ RUN ] SubgraphMatcherTest.MultiOutput 2023-01-11T20:58:26.3666580Z [ OK ] SubgraphMatcherTest.MultiOutput (1 ms) 2023-01-11T20:58:26.3667036Z [----------] 16 tests from SubgraphMatcherTest (19 ms total) 2023-01-11T20:58:26.3667213Z 2023-01-11T20:58:26.3667515Z [----------] 4 tests from SubgraphRewriterTest 2023-01-11T20:58:26.3667826Z [ RUN ] SubgraphRewriterTest.FilterMatch 2023-01-11T20:58:26.3695769Z [ OK ] SubgraphRewriterTest.FilterMatch (2 ms) 2023-01-11T20:58:26.3696120Z [ RUN ] SubgraphRewriterTest.FilterNoMatch 2023-01-11T20:58:26.3708609Z [ OK ] SubgraphRewriterTest.FilterNoMatch (1 ms) 2023-01-11T20:58:26.3709013Z [ RUN ] SubgraphRewriterTest.MultiOutput 2023-01-11T20:58:26.3774256Z [ OK ] SubgraphRewriterTest.MultiOutput (6 ms) 2023-01-11T20:58:26.3774920Z [ RUN ] SubgraphRewriterTest.OutputType 2023-01-11T20:58:26.3799031Z [ OK ] SubgraphRewriterTest.OutputType (2 ms) 2023-01-11T20:58:26.3799717Z [----------] 4 tests from SubgraphRewriterTest (13 ms total) 2023-01-11T20:58:26.3799940Z 2023-01-11T20:58:26.3800107Z [----------] 3 tests from SubgraphUtilsTest 2023-01-11T20:58:26.3800391Z [ RUN ] SubgraphUtilsTest.Basic 2023-01-11T20:58:26.3846853Z [ OK ] SubgraphUtilsTest.Basic (4 ms) 2023-01-11T20:58:26.3847200Z [ RUN ] SubgraphUtilsTest.MergeSubgraphs 2023-01-11T20:58:26.3883696Z [ OK ] SubgraphUtilsTest.MergeSubgraphs (3 ms) 2023-01-11T20:58:26.3884027Z [ RUN ] SubgraphUtilsTest.GraphName 2023-01-11T20:58:26.3894204Z [ OK ] SubgraphUtilsTest.GraphName (1 ms) 2023-01-11T20:58:26.3894991Z [----------] 3 tests from SubgraphUtilsTest (9 ms total) 2023-01-11T20:58:26.3895286Z 2023-01-11T20:58:26.3895481Z [----------] 8 tests from UnionTypeTest 2023-01-11T20:58:26.3895791Z [ RUN ] UnionTypeTest.UnionOperatorEquals 2023-01-11T20:58:26.3896961Z [ OK ] UnionTypeTest.UnionOperatorEquals (0 ms) 2023-01-11T20:58:26.3897636Z [ RUN ] UnionTypeTest.UnionCreate_OptionalT1AndOptionalT2 2023-01-11T20:58:26.3934480Z [ OK ] UnionTypeTest.UnionCreate_OptionalT1AndOptionalT2 (0 ms) 2023-01-11T20:58:26.3935235Z [ RUN ] UnionTypeTest.UnionCreate_OptionalTAndT 2023-01-11T20:58:26.3935916Z [ OK ] UnionTypeTest.UnionCreate_OptionalTAndT (0 ms) 2023-01-11T20:58:26.3936636Z [ RUN ] UnionTypeTest.UnionCreate_TupleWithSubtypingRelationship 2023-01-11T20:58:26.3937431Z [ OK ] UnionTypeTest.UnionCreate_TupleWithSubtypingRelationship (0 ms) 2023-01-11T20:58:26.3937881Z [ RUN ] UnionTypeTest.UnionCreate_ContainerTAndT 2023-01-11T20:58:26.3938231Z [ OK ] UnionTypeTest.UnionCreate_ContainerTAndT (0 ms) 2023-01-11T20:58:26.3938785Z [ RUN ] UnionTypeTest.UnionCreate_OptionalContainerTAndContainerTAndT 2023-01-11T20:58:26.3939234Z [ OK ] UnionTypeTest.UnionCreate_OptionalContainerTAndContainerTAndT (0 ms) 2023-01-11T20:58:26.3939612Z [ RUN ] UnionTypeTest.Subtyping_NumberType 2023-01-11T20:58:26.3939934Z [ OK ] UnionTypeTest.Subtyping_NumberType (0 ms) 2023-01-11T20:58:26.3940267Z [ RUN ] UnionTypeTest.Subtyping_OptionalType 2023-01-11T20:58:26.3940606Z [ OK ] UnionTypeTest.Subtyping_OptionalType (0 ms) 2023-01-11T20:58:26.3940935Z [----------] 8 tests from UnionTypeTest (1 ms total) 2023-01-11T20:58:26.3941090Z 2023-01-11T20:58:26.3941250Z [----------] 2 tests from ScriptProfileTest 2023-01-11T20:58:26.3941538Z [ RUN ] ScriptProfileTest.Basic 2023-01-11T20:58:26.3941836Z [ OK ] ScriptProfileTest.Basic (0 ms) 2023-01-11T20:58:26.3942194Z [ RUN ] ScriptProfileTest.CallingOrder 2023-01-11T20:58:26.3943131Z [ OK ] ScriptProfileTest.CallingOrder (3 ms) 2023-01-11T20:58:26.3943781Z [----------] 2 tests from ScriptProfileTest (3 ms total) 2023-01-11T20:58:26.3943975Z 2023-01-11T20:58:26.3944140Z [----------] 7 tests from ShapeAnalysisTest 2023-01-11T20:58:26.3944527Z [ RUN ] ShapeAnalysisTest.DynamicShapesFusion 2023-01-11T20:58:26.4851512Z [ OK ] ShapeAnalysisTest.DynamicShapesFusion (90 ms) 2023-01-11T20:58:26.4851962Z [ RUN ] ShapeAnalysisTest.MovingConstantOutOfFusionGroups 2023-01-11T20:58:26.5072851Z [ OK ] ShapeAnalysisTest.MovingConstantOutOfFusionGroups (22 ms) 2023-01-11T20:58:26.5073434Z [ RUN ] ShapeAnalysisTest.SymbolicShapeAPI 2023-01-11T20:58:26.5999092Z [ OK ] ShapeAnalysisTest.SymbolicShapeAPI (92 ms) 2023-01-11T20:58:26.5999652Z [ RUN ] ShapeAnalysisTest.BoundedSymbolicShapes 2023-01-11T20:58:26.6108268Z [ OK ] ShapeAnalysisTest.BoundedSymbolicShapes (10 ms) 2023-01-11T20:58:26.6108677Z [ RUN ] ShapeAnalysisTest.SymbolicShapeCaching 2023-01-11T20:58:26.6224280Z [ OK ] ShapeAnalysisTest.SymbolicShapeCaching (11 ms) 2023-01-11T20:58:26.6224671Z [ RUN ] ShapeAnalysisTest.ShapeCacheMultipleFns 2023-01-11T20:58:26.6634877Z [ OK ] ShapeAnalysisTest.ShapeCacheMultipleFns (40 ms) 2023-01-11T20:58:26.6635291Z [ RUN ] ShapeAnalysisTest.TestShapeMultipleReturns 2023-01-11T20:58:26.6790561Z [ OK ] ShapeAnalysisTest.TestShapeMultipleReturns (15 ms) 2023-01-11T20:58:26.6791332Z [----------] 7 tests from ShapeAnalysisTest (284 ms total) 2023-01-11T20:58:26.6791567Z 2023-01-11T20:58:26.6791773Z [----------] 5 tests from JitLoggingTest 2023-01-11T20:58:26.6792274Z [ RUN ] JitLoggingTest.CheckSetLoggingLevel 2023-01-11T20:58:26.6792788Z [ OK ] JitLoggingTest.CheckSetLoggingLevel (0 ms) 2023-01-11T20:58:26.6793587Z [ RUN ] JitLoggingTest.CheckSetMultipleLogLevels 2023-01-11T20:58:26.6794262Z [ OK ] JitLoggingTest.CheckSetMultipleLogLevels (0 ms) 2023-01-11T20:58:26.6795033Z [ RUN ] JitLoggingTest.CheckLoggingLevelAfterUnset 2023-01-11T20:58:26.6795788Z [ OK ] JitLoggingTest.CheckLoggingLevelAfterUnset (0 ms) 2023-01-11T20:58:26.6796479Z [ RUN ] JitLoggingTest.CheckAfterChangingLevel 2023-01-11T20:58:26.6797206Z [ OK ] JitLoggingTest.CheckAfterChangingLevel (0 ms) 2023-01-11T20:58:26.6797896Z [ RUN ] JitLoggingTest.CheckOutputStreamSetting 2023-01-11T20:58:26.6798310Z [ OK ] JitLoggingTest.CheckOutputStreamSetting (0 ms) 2023-01-11T20:58:26.6798666Z [----------] 5 tests from JitLoggingTest (0 ms total) 2023-01-11T20:58:26.6798821Z 2023-01-11T20:58:26.6798971Z [----------] 9 tests from FileFormatTest 2023-01-11T20:58:26.6799306Z [ RUN ] FileFormatTest.IdentifiesFlatbufferStream 2023-01-11T20:58:26.6799897Z [ OK ] FileFormatTest.IdentifiesFlatbufferStream (0 ms) 2023-01-11T20:58:26.6800261Z [ RUN ] FileFormatTest.IdentifiesZipStream 2023-01-11T20:58:26.6800611Z [ OK ] FileFormatTest.IdentifiesZipStream (0 ms) 2023-01-11T20:58:26.6800963Z [ RUN ] FileFormatTest.FlatbufferTakesPrecedence 2023-01-11T20:58:26.6801344Z [ OK ] FileFormatTest.FlatbufferTakesPrecedence (0 ms) 2023-01-11T20:58:26.6801713Z [ RUN ] FileFormatTest.HandlesUnknownStream 2023-01-11T20:58:26.6802054Z [ OK ] FileFormatTest.HandlesUnknownStream (0 ms) 2023-01-11T20:58:26.6802401Z [ RUN ] FileFormatTest.ShortStreamIsUnknown 2023-01-11T20:58:26.6802750Z [ OK ] FileFormatTest.ShortStreamIsUnknown (0 ms) 2023-01-11T20:58:26.6803100Z [ RUN ] FileFormatTest.EmptyStreamIsUnknown 2023-01-11T20:58:26.6803439Z [ OK ] FileFormatTest.EmptyStreamIsUnknown (0 ms) 2023-01-11T20:58:26.6803782Z [ RUN ] FileFormatTest.BadStreamIsUnknown 2023-01-11T20:58:26.6804121Z [ OK ] FileFormatTest.BadStreamIsUnknown (0 ms) 2023-01-11T20:58:26.6804493Z [ RUN ] FileFormatTest.StreamOffsetIsObservedAndRestored 2023-01-11T20:58:26.6804991Z [ OK ] FileFormatTest.StreamOffsetIsObservedAndRestored (0 ms) 2023-01-11T20:58:26.6805377Z [ RUN ] FileFormatTest.HandlesMissingFile 2023-01-11T20:58:26.6805708Z [ OK ] FileFormatTest.HandlesMissingFile (0 ms) 2023-01-11T20:58:26.6806043Z [----------] 9 tests from FileFormatTest (0 ms total) 2023-01-11T20:58:26.6806199Z 2023-01-11T20:58:26.6806350Z [----------] 35 tests from FlatbufferTest 2023-01-11T20:58:26.6806659Z [ RUN ] FlatbufferTest.UpsampleNearest2d 2023-01-11T20:58:26.6951325Z [ OK ] FlatbufferTest.UpsampleNearest2d (15 ms) 2023-01-11T20:58:26.6951774Z [ RUN ] FlatbufferTest.UpsampleNearest2dWithCopyTensorMemory 2023-01-11T20:58:26.7101814Z [ OK ] FlatbufferTest.UpsampleNearest2dWithCopyTensorMemory (15 ms) 2023-01-11T20:58:26.7102310Z [ RUN ] FlatbufferTest.CheckAttrAccess 2023-01-11T20:58:26.7105090Z [ OK ] FlatbufferTest.CheckAttrAccess (0 ms) 2023-01-11T20:58:26.7105682Z [ RUN ] FlatbufferTest.MethodInvocation 2023-01-11T20:58:26.7380412Z [ OK ] FlatbufferTest.MethodInvocation (27 ms) 2023-01-11T20:58:26.7380984Z [ RUN ] FlatbufferTest.FlatbufferBackPortTest 2023-01-11T20:58:26.7845593Z [ OK ] FlatbufferTest.FlatbufferBackPortTest (46 ms) 2023-01-11T20:58:26.7846138Z [ RUN ] FlatbufferTest.ExtraFiles 2023-01-11T20:58:26.7880979Z [ OK ] FlatbufferTest.ExtraFiles (3 ms) 2023-01-11T20:58:26.7881476Z [ RUN ] FlatbufferTest.Conv 2023-01-11T20:58:26.7881974Z [ OK ] FlatbufferTest.Conv (0 ms) 2023-01-11T20:58:26.7882599Z [ RUN ] FlatbufferTest.ConvWithCopyTensorMemory 2023-01-11T20:58:26.7883302Z [ OK ] FlatbufferTest.ConvWithCopyTensorMemory (0 ms) 2023-01-11T20:58:26.7883677Z [ RUN ] FlatbufferTest.Inline 2023-01-11T20:58:26.7964841Z [ OK ] FlatbufferTest.Inline (8 ms) 2023-01-11T20:58:26.7965485Z [ RUN ] FlatbufferTest.InlineWithCopyTensorMemory 2023-01-11T20:58:26.8047360Z [ OK ] FlatbufferTest.InlineWithCopyTensorMemory (8 ms) 2023-01-11T20:58:26.8047965Z [ RUN ] FlatbufferTest.Tuple 2023-01-11T20:58:26.8105859Z [ OK ] FlatbufferTest.Tuple (5 ms) 2023-01-11T20:58:26.8106385Z [ RUN ] FlatbufferTest.Dict 2023-01-11T20:58:26.8163734Z [ OK ] FlatbufferTest.Dict (5 ms) 2023-01-11T20:58:26.8164269Z [ RUN ] FlatbufferTest.Prim 2023-01-11T20:58:26.8207657Z [ OK ] FlatbufferTest.Prim (4 ms) 2023-01-11T20:58:26.8208392Z [ RUN ] FlatbufferTest.PrimScalar 2023-01-11T20:58:26.8257810Z [ OK ] FlatbufferTest.PrimScalar (4 ms) 2023-01-11T20:58:26.8258426Z [ RUN ] FlatbufferTest.WrongMethodName 2023-01-11T20:58:26.8322967Z [ OK ] FlatbufferTest.WrongMethodName (6 ms) 2023-01-11T20:58:26.8323536Z [ RUN ] FlatbufferTest.SetState 2023-01-11T20:58:26.8666040Z [ OK ] FlatbufferTest.SetState (34 ms) 2023-01-11T20:58:26.8666566Z [ RUN ] FlatbufferTest.BuiltinClass 2023-01-11T20:58:26.8741600Z [ OK ] FlatbufferTest.BuiltinClass (7 ms) 2023-01-11T20:58:26.8741952Z [ RUN ] FlatbufferTest.BuiltinFunction 2023-01-11T20:58:26.8767161Z [ OK ] FlatbufferTest.BuiltinFunction (2 ms) 2023-01-11T20:58:26.8767735Z [ RUN ] FlatbufferTest.Eval 2023-01-11T20:58:26.8844506Z [ OK ] FlatbufferTest.Eval (7 ms) 2023-01-11T20:58:26.8844849Z [ RUN ] FlatbufferTest.FindWrongMethodName 2023-01-11T20:58:26.8873877Z [ OK ] FlatbufferTest.FindWrongMethodName (2 ms) 2023-01-11T20:58:26.8874245Z [ RUN ] FlatbufferTest.FindAndRunMethod 2023-01-11T20:58:26.8957001Z [ OK ] FlatbufferTest.FindAndRunMethod (8 ms) 2023-01-11T20:58:26.8957552Z [ RUN ] FlatbufferTest.RunMethodVariadic 2023-01-11T20:58:26.9032360Z [ OK ] FlatbufferTest.RunMethodVariadic (7 ms) 2023-01-11T20:58:26.9032726Z [ RUN ] FlatbufferTest.DuplicateSetState 2023-01-11T20:58:26.9145882Z [ OK ] FlatbufferTest.DuplicateSetState (11 ms) 2023-01-11T20:58:26.9146513Z [ RUN ] FlatbufferTest.OpNameExportFetchRootOperators 2023-01-11T20:58:26.9212415Z [ OK ] FlatbufferTest.OpNameExportFetchRootOperators (6 ms) 2023-01-11T20:58:26.9212838Z [ RUN ] FlatbufferTest.DefaultArgsConv 2023-01-11T20:58:26.9213182Z [ OK ] FlatbufferTest.DefaultArgsConv (0 ms) 2023-01-11T20:58:26.9213527Z [ RUN ] FlatbufferTest.DefaultArgsPinv 2023-01-11T20:58:26.9588231Z [ OK ] FlatbufferTest.DefaultArgsPinv (37 ms) 2023-01-11T20:58:26.9588714Z [ RUN ] FlatbufferTest.DefaultArgsTensorinvSpecifyDefault 2023-01-11T20:58:26.9694693Z [ OK ] FlatbufferTest.DefaultArgsTensorinvSpecifyDefault (10 ms) 2023-01-11T20:58:26.9695140Z [ RUN ] FlatbufferTest.DefaultArgsPinvWithOutArg 2023-01-11T20:58:26.9881658Z [ OK ] FlatbufferTest.DefaultArgsPinvWithOutArg (18 ms) 2023-01-11T20:58:26.9882026Z [ RUN ] FlatbufferTest.DefaultArgsWithOutArg 2023-01-11T20:58:26.9999847Z [ OK ] FlatbufferTest.DefaultArgsWithOutArg (11 ms) 2023-01-11T20:58:27.0000275Z [ RUN ] FlatbufferTest.OperatorCacheDifferentiatesDefaultArgs 2023-01-11T20:58:27.0340483Z [ OK ] FlatbufferTest.OperatorCacheDifferentiatesDefaultArgs (33 ms) 2023-01-11T20:58:27.0340925Z [ RUN ] FlatbufferTest.OperatorSize1 2023-01-11T20:58:27.0369226Z [ OK ] FlatbufferTest.OperatorSize1 (2 ms) 2023-01-11T20:58:27.0369825Z [ RUN ] FlatbufferTest.BoolAndDoubleList 2023-01-11T20:58:27.0373985Z [ OK ] FlatbufferTest.BoolAndDoubleList (0 ms) 2023-01-11T20:58:27.0374781Z [ RUN ] FlatbufferTest.OperatorTest2 2023-01-11T20:58:27.0501122Z [ OK ] FlatbufferTest.OperatorTest2 (12 ms) 2023-01-11T20:58:27.0501538Z [ RUN ] FlatbufferTest.DetachedBufferSmoke 2023-01-11T20:58:27.0501893Z [ OK ] FlatbufferTest.DetachedBufferSmoke (0 ms) 2023-01-11T20:58:27.0502256Z [ RUN ] FlatbufferTest.DetachedBufferNullOwner 2023-01-11T20:58:27.0502629Z [ OK ] FlatbufferTest.DetachedBufferNullOwner (0 ms) 2023-01-11T20:58:27.0502986Z [----------] 35 tests from FlatbufferTest (370 ms total) 2023-01-11T20:58:27.0503146Z 2023-01-11T20:58:27.0503318Z [----------] 3 tests from TestSourceFlatbuffer 2023-01-11T20:58:27.0503906Z [ RUN ] TestSourceFlatbuffer.UpsampleNearest2d 2023-01-11T20:58:27.0753485Z [ OK ] TestSourceFlatbuffer.UpsampleNearest2d (25 ms) 2023-01-11T20:58:27.0753867Z [ RUN ] TestSourceFlatbuffer.CheckAttrAccess 2023-01-11T20:58:27.0765249Z [ OK ] TestSourceFlatbuffer.CheckAttrAccess (1 ms) 2023-01-11T20:58:27.0765623Z [ RUN ] TestSourceFlatbuffer.MethodInvocation 2023-01-11T20:58:27.1595396Z [ OK ] TestSourceFlatbuffer.MethodInvocation (82 ms) 2023-01-11T20:58:27.1595787Z [----------] 3 tests from TestSourceFlatbuffer (109 ms total) 2023-01-11T20:58:27.1595970Z 2023-01-11T20:58:27.1596157Z [----------] 10 tests from FlatbufferUpgraderTest 2023-01-11T20:58:27.1596495Z [ RUN ] FlatbufferUpgraderTest.DivTensorV2 2023-01-11T20:58:27.1603717Z [ OK ] FlatbufferUpgraderTest.DivTensorV2 (0 ms) 2023-01-11T20:58:27.1604108Z [ RUN ] FlatbufferUpgraderTest.DivTensorOutV2 2023-01-11T20:58:27.1610841Z [ OK ] FlatbufferUpgraderTest.DivTensorOutV2 (0 ms) 2023-01-11T20:58:27.1611233Z [ RUN ] FlatbufferUpgraderTest.DivTensorInplaceV2 2023-01-11T20:58:27.1617852Z [ OK ] FlatbufferUpgraderTest.DivTensorInplaceV2 (0 ms) 2023-01-11T20:58:27.1618254Z [ RUN ] FlatbufferUpgraderTest.DivScalarFloatV2 2023-01-11T20:58:27.1624189Z [ OK ] FlatbufferUpgraderTest.DivScalarFloatV2 (0 ms) 2023-01-11T20:58:27.1624655Z [ RUN ] FlatbufferUpgraderTest.DivScalarReciprocalFloatV2 2023-01-11T20:58:27.1630483Z [ OK ] FlatbufferUpgraderTest.DivScalarReciprocalFloatV2 (0 ms) 2023-01-11T20:58:27.1630947Z [ RUN ] FlatbufferUpgraderTest.DivScalarReciprocalIntV2 2023-01-11T20:58:27.1637098Z [ OK ] FlatbufferUpgraderTest.DivScalarReciprocalIntV2 (0 ms) 2023-01-11T20:58:27.1637567Z [ RUN ] FlatbufferUpgraderTest.DivScalarScalarV2 2023-01-11T20:58:27.1640515Z [ OK ] FlatbufferUpgraderTest.DivScalarScalarV2 (0 ms) 2023-01-11T20:58:27.1640910Z [ RUN ] FlatbufferUpgraderTest.DivScalarIntV2 2023-01-11T20:58:27.1646688Z [ OK ] FlatbufferUpgraderTest.DivScalarIntV2 (0 ms) 2023-01-11T20:58:27.1647089Z [ RUN ] FlatbufferUpgraderTest.DivScalarInplaceFloatV2 2023-01-11T20:58:27.1652831Z [ OK ] FlatbufferUpgraderTest.DivScalarInplaceFloatV2 (0 ms) 2023-01-11T20:58:27.1653256Z [ RUN ] FlatbufferUpgraderTest.DivScalarInplaceIntV2 2023-01-11T20:58:27.1659094Z [ OK ] FlatbufferUpgraderTest.DivScalarInplaceIntV2 (0 ms) 2023-01-11T20:58:27.1659500Z [----------] 10 tests from FlatbufferUpgraderTest (6 ms total) 2023-01-11T20:58:27.1659694Z 2023-01-11T20:58:27.1659925Z [----------] 12 tests from AliasAnalysisTest/BatchAndInstanceNormFixture 2023-01-11T20:58:27.1660398Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/0 2023-01-11T20:58:27.1671638Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/0 (1 ms) 2023-01-11T20:58:27.1672131Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/1 2023-01-11T20:58:27.1682691Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/1 (1 ms) 2023-01-11T20:58:27.1683192Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/2 2023-01-11T20:58:27.1693903Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/2 (1 ms) 2023-01-11T20:58:27.1694742Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/3 2023-01-11T20:58:27.1705262Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNorm/3 (1 ms) 2023-01-11T20:58:27.1705828Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/0 2023-01-11T20:58:27.1716405Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/0 (1 ms) 2023-01-11T20:58:27.1717025Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/1 2023-01-11T20:58:27.1726811Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/1 (1 ms) 2023-01-11T20:58:27.1727413Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/2 2023-01-11T20:58:27.1737219Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/2 (1 ms) 2023-01-11T20:58:27.1737834Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/3 2023-01-11T20:58:27.1747471Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchAndInstanceNormTrainingUnknown/3 (1 ms) 2023-01-11T20:58:27.1748077Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/0 2023-01-11T20:58:27.1758207Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/0 (1 ms) 2023-01-11T20:58:27.1758886Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/1 2023-01-11T20:58:27.1768261Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/1 (0 ms) 2023-01-11T20:58:27.1768842Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/2 2023-01-11T20:58:27.1778326Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/2 (0 ms) 2023-01-11T20:58:27.1778894Z [ RUN ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/3 2023-01-11T20:58:27.1788783Z [ OK ] AliasAnalysisTest/BatchAndInstanceNormFixture.BatchNormTrainingWithNoMeanOrVar/3 (0 ms) 2023-01-11T20:58:27.1789425Z [----------] 12 tests from AliasAnalysisTest/BatchAndInstanceNormFixture (12 ms total) 2023-01-11T20:58:27.1789638Z 2023-01-11T20:58:27.1789896Z [----------] 10 tests from PyTorch/LiteInterpreterDynamicTypeTestFixture 2023-01-11T20:58:27.1790339Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/0 2023-01-11T20:58:46.7318812Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/0 (19552 ms) 2023-01-11T20:58:46.7319339Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/1 2023-01-11T20:59:13.1976843Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/1 (26465 ms) 2023-01-11T20:59:13.1977732Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/2 2023-01-11T20:59:46.2657178Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/2 (33067 ms) 2023-01-11T20:59:46.2658016Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/3 2023-01-11T21:00:19.1610904Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/3 (32895 ms) 2023-01-11T21:00:19.1611455Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/4 2023-01-11T21:00:51.4193314Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/4 (32258 ms) 2023-01-11T21:00:51.4193841Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/5 2023-01-11T21:01:24.9575505Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/5 (33538 ms) 2023-01-11T21:01:24.9576029Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/6 2023-01-11T21:01:56.0528378Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/6 (31095 ms) 2023-01-11T21:01:56.0528914Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/7 2023-01-11T21:02:27.8293183Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/7 (31776 ms) 2023-01-11T21:02:27.8293729Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/8 2023-01-11T21:02:56.2489077Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/8 (28419 ms) 2023-01-11T21:02:56.2489603Z [ RUN ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/9 2023-01-11T21:03:24.7472727Z [ OK ] PyTorch/LiteInterpreterDynamicTypeTestFixture.Conformance/9 (28498 ms) 2023-01-11T21:03:24.7473501Z [----------] 10 tests from PyTorch/LiteInterpreterDynamicTypeTestFixture (297568 ms total) 2023-01-11T21:03:24.7473814Z 2023-01-11T21:03:24.7474941Z [----------] Global test environment tear-down 2023-01-11T21:03:24.8018452Z [==========] 569 tests from 119 test suites ran. (307065 ms total) 2023-01-11T21:03:24.8018804Z [ PASSED ] 569 tests. 2023-01-11T21:03:25.3236332Z + [[ linux-focal-py3.7-clang7-tsan == *cuda* ]] 2023-01-11T21:03:25.3236848Z + /opt/conda/lib/python3.7/site-packages/torch/bin/test_lazy --gtest_output=xml:test/test-reports/cpp-unittest/test_libtorch/test_lazy.xml 2023-01-11T21:03:29.0752047Z CUDA not available. Disabling CUDA and MultiCUDA tests 2023-01-11T21:03:29.0787198Z Note: Google Test filter = *-*_CUDA:*_MultiCUDA 2023-01-11T21:03:29.0787772Z [==========] Running 611 tests from 10 test suites. 2023-01-11T21:03:29.0788323Z [----------] Global test environment set-up. 2023-01-11T21:03:29.0788850Z [----------] 11 tests from BackendDeviceTest 2023-01-11T21:03:29.0789356Z [ RUN ] BackendDeviceTest.BackendDeviceType 2023-01-11T21:03:29.0789970Z [ OK ] BackendDeviceTest.BackendDeviceType (0 ms) 2023-01-11T21:03:29.0790505Z [ RUN ] BackendDeviceTest.Basic1 2023-01-11T21:03:29.0791025Z [ OK ] BackendDeviceTest.Basic1 (0 ms) 2023-01-11T21:03:29.0791565Z [ RUN ] BackendDeviceTest.Basic2 2023-01-11T21:03:29.0792088Z [ OK ] BackendDeviceTest.Basic2 (0 ms) 2023-01-11T21:03:29.0792611Z [ RUN ] BackendDeviceTest.Basic3 2023-01-11T21:03:29.0793155Z [ OK ] BackendDeviceTest.Basic3 (0 ms) 2023-01-11T21:03:29.0793679Z [ RUN ] BackendDeviceTest.Basic4 2023-01-11T21:03:29.0794209Z [ OK ] BackendDeviceTest.Basic4 (0 ms) 2023-01-11T21:03:29.0794836Z [ RUN ] BackendDeviceTest.Compare 2023-01-11T21:03:29.0795381Z [ OK ] BackendDeviceTest.Compare (0 ms) 2023-01-11T21:03:29.0795896Z [ RUN ] BackendDeviceTest.Ostream 2023-01-11T21:03:29.0796432Z [ OK ] BackendDeviceTest.Ostream (0 ms) 2023-01-11T21:03:29.0796975Z [ RUN ] BackendDeviceTest.FromAten 2023-01-11T21:03:29.0810718Z [ OK ] BackendDeviceTest.FromAten (1 ms) 2023-01-11T21:03:29.0811305Z [ RUN ] BackendDeviceTest.ToAten 2023-01-11T21:03:29.0811802Z [ OK ] BackendDeviceTest.ToAten (0 ms) 2023-01-11T21:03:29.0812340Z [ RUN ] BackendDeviceTest.GetBackendDevice1 2023-01-11T21:03:29.1022370Z [ OK ] BackendDeviceTest.GetBackendDevice1 (21 ms) 2023-01-11T21:03:29.1022894Z [ RUN ] BackendDeviceTest.GetBackendDevice2 2023-01-11T21:03:29.1023465Z [ OK ] BackendDeviceTest.GetBackendDevice2 (0 ms) 2023-01-11T21:03:29.1023861Z [----------] 11 tests from BackendDeviceTest (23 ms total) 2023-01-11T21:03:29.1024124Z 2023-01-11T21:03:29.1024278Z [----------] 2 tests from CacheTest 2023-01-11T21:03:29.1024677Z [ RUN ] CacheTest.BasicTest 2023-01-11T21:03:29.1025075Z [ OK ] CacheTest.BasicTest (0 ms) 2023-01-11T21:03:29.1025502Z [ RUN ] CacheTest.ShapeCacheTestForDynamicShape 2023-01-11T21:03:29.1026204Z [ OK ] CacheTest.ShapeCacheTestForDynamicShape (0 ms) 2023-01-11T21:03:29.1027017Z [----------] 2 tests from CacheTest (0 ms total) 2023-01-11T21:03:29.1027273Z 2023-01-11T21:03:29.1027532Z [----------] 5 tests from IrTest 2023-01-11T21:03:29.1027948Z [ RUN ] IrTest.BasicTest 2023-01-11T21:03:29.1028448Z [ OK ] IrTest.BasicTest (0 ms) 2023-01-11T21:03:29.1028732Z [ RUN ] IrTest.MetaDataTest 2023-01-11T21:03:29.1029065Z [ OK ] IrTest.MetaDataTest (0 ms) 2023-01-11T21:03:29.1029558Z [ RUN ] IrTest.TsNodeTest 2023-01-11T21:03:29.1029980Z [ OK ] IrTest.TsNodeTest (0 ms) 2023-01-11T21:03:29.1030247Z [ RUN ] IrTest.DimensionNodeTest 2023-01-11T21:03:29.1030710Z [ OK ] IrTest.DimensionNodeTest (0 ms) 2023-01-11T21:03:29.1031288Z [ RUN ] IrTest.DimensionIsDynamicTest 2023-01-11T21:03:29.1031630Z [ OK ] IrTest.DimensionIsDynamicTest (0 ms) 2023-01-11T21:03:29.1031936Z [----------] 5 tests from IrTest (0 ms total) 2023-01-11T21:03:29.1032112Z 2023-01-11T21:03:29.1032371Z [----------] 2 tests from IrUtilTest 2023-01-11T21:03:29.1032865Z [ RUN ] IrUtilTest.BasicTest 2023-01-11T21:03:29.1033163Z [ OK ] IrUtilTest.BasicTest (0 ms) 2023-01-11T21:03:29.1033530Z [ RUN ] IrUtilTest.TestCircle 2023-01-11T21:03:29.1060072Z [ OK ] IrUtilTest.TestCircle (2 ms) 2023-01-11T21:03:29.1060453Z [----------] 2 tests from IrUtilTest (2 ms total) 2023-01-11T21:03:29.1060617Z 2023-01-11T21:03:29.1060757Z [----------] 2 tests from HashTest 2023-01-11T21:03:29.1061060Z [ RUN ] HashTest.Scalar 2023-01-11T21:03:29.1061339Z [ OK ] HashTest.Scalar (0 ms) 2023-01-11T21:03:29.1061578Z [ RUN ] HashTest.Sanity 2023-01-11T21:03:29.1064641Z [ OK ] HashTest.Sanity (0 ms) 2023-01-11T21:03:29.1064998Z [----------] 2 tests from HashTest (0 ms total) 2023-01-11T21:03:29.1065160Z 2023-01-11T21:03:29.1065346Z [----------] 3 tests from PermutationUtilTest 2023-01-11T21:03:29.1065693Z [ RUN ] PermutationUtilTest.TestInversePermutation 2023-01-11T21:03:29.1095447Z [ OK ] PermutationUtilTest.TestInversePermutation (3 ms) 2023-01-11T21:03:29.1095846Z [ RUN ] PermutationUtilTest.TestIsPermutation 2023-01-11T21:03:29.1096210Z [ OK ] PermutationUtilTest.TestIsPermutation (0 ms) 2023-01-11T21:03:29.1096565Z [ RUN ] PermutationUtilTest.TestPermute 2023-01-11T21:03:29.1137725Z [ OK ] PermutationUtilTest.TestPermute (4 ms) 2023-01-11T21:03:29.1138283Z [----------] 3 tests from PermutationUtilTest (7 ms total) 2023-01-11T21:03:29.1138554Z 2023-01-11T21:03:29.1138800Z [----------] 7 tests from ShapeTest 2023-01-11T21:03:29.1175759Z [ RUN ] ShapeTest.Basic1 2023-01-11T21:03:29.1176334Z [ OK ] ShapeTest.Basic1 (0 ms) 2023-01-11T21:03:29.1176825Z [ RUN ] ShapeTest.Basic2 2023-01-11T21:03:29.1177292Z [ OK ] ShapeTest.Basic2 (0 ms) 2023-01-11T21:03:29.1177701Z [ RUN ] ShapeTest.Basic3 2023-01-11T21:03:29.1178191Z [ OK ] ShapeTest.Basic3 (0 ms) 2023-01-11T21:03:29.1178709Z [ RUN ] ShapeTest.SetScalarType 2023-01-11T21:03:29.1179237Z [ OK ] ShapeTest.SetScalarType (0 ms) 2023-01-11T21:03:29.1179724Z [ RUN ] ShapeTest.SetSize 2023-01-11T21:03:29.1180051Z [ OK ] ShapeTest.SetSize (0 ms) 2023-01-11T21:03:29.1180446Z [ RUN ] ShapeTest.Equal 2023-01-11T21:03:29.1180774Z [ OK ] ShapeTest.Equal (0 ms) 2023-01-11T21:03:29.1181035Z [ RUN ] ShapeTest.Ostream 2023-01-11T21:03:29.1181301Z [ OK ] ShapeTest.Ostream (0 ms) 2023-01-11T21:03:29.1181588Z [----------] 7 tests from ShapeTest (0 ms total) 2023-01-11T21:03:29.1181932Z 2023-01-11T21:03:29.1182088Z [----------] 2 tests from TrieCacheTest 2023-01-11T21:03:29.1182396Z [ RUN ] TrieCacheTest.TestSinglePath 2023-01-11T21:03:29.1182706Z [ OK ] TrieCacheTest.TestSinglePath (0 ms) 2023-01-11T21:03:29.1183021Z [ RUN ] TrieCacheTest.TestTwoPaths 2023-01-11T21:03:29.1183432Z [ OK ] TrieCacheTest.TestTwoPaths (0 ms) 2023-01-11T21:03:29.1183867Z [----------] 2 tests from TrieCacheTest (0 ms total) 2023-01-11T21:03:29.1184071Z 2023-01-11T21:03:29.1184350Z [----------] 3 tests from UtilTest 2023-01-11T21:03:29.1184859Z [ RUN ] UtilTest.ExceptionCleanup 2023-01-11T21:03:29.1185298Z [ OK ] UtilTest.ExceptionCleanup (0 ms) 2023-01-11T21:03:29.1185564Z [ RUN ] UtilTest.MaybeRef 2023-01-11T21:03:29.1185829Z [ OK ] UtilTest.MaybeRef (0 ms) 2023-01-11T21:03:29.1186113Z [ RUN ] UtilTest.Iota 2023-01-11T21:03:29.1186487Z [ OK ] UtilTest.Iota (0 ms) 2023-01-11T21:03:29.1186855Z [----------] 3 tests from UtilTest (0 ms total) 2023-01-11T21:03:29.1187126Z 2023-01-11T21:03:29.1187415Z [----------] 574 tests from LazyOpsTest 2023-01-11T21:03:29.1187856Z [ RUN ] LazyOpsTest.TestScalarTensor 2023-01-11T21:03:29.2377929Z [ OK ] LazyOpsTest.TestScalarTensor (122 ms) 2023-01-11T21:03:29.2378279Z [ RUN ] LazyOpsTest.TestClone 2023-01-11T21:03:29.2410858Z [ OK ] LazyOpsTest.TestClone (3 ms) 2023-01-11T21:03:29.2411390Z [ RUN ] LazyOpsTest.TestTo 2023-01-11T21:03:29.2420688Z [ OK ] LazyOpsTest.TestTo (0 ms) 2023-01-11T21:03:29.2421285Z [ RUN ] LazyOpsTest.TestIsFloatingPoint 2023-01-11T21:03:29.2423357Z [ OK ] LazyOpsTest.TestIsFloatingPoint (0 ms) 2023-01-11T21:03:29.2423945Z [ RUN ] LazyOpsTest.TestIsSigned 2023-01-11T21:03:29.2425840Z [ OK ] LazyOpsTest.TestIsSigned (0 ms) 2023-01-11T21:03:29.2426419Z [ RUN ] LazyOpsTest.TestCastByte 2023-01-11T21:03:29.8376997Z [ OK ] LazyOpsTest.TestCastByte (594 ms) 2023-01-11T21:03:29.8377359Z [ RUN ] LazyOpsTest.TestCastChar 2023-01-11T21:03:29.8415789Z [ OK ] LazyOpsTest.TestCastChar (3 ms) 2023-01-11T21:03:29.8416121Z [ RUN ] LazyOpsTest.TestCastShort 2023-01-11T21:03:29.8452008Z [ OK ] LazyOpsTest.TestCastShort (3 ms) 2023-01-11T21:03:29.8452316Z [ RUN ] LazyOpsTest.TestCastInt 2023-01-11T21:03:29.8487785Z [ OK ] LazyOpsTest.TestCastInt (3 ms) 2023-01-11T21:03:29.8488093Z [ RUN ] LazyOpsTest.TestCastLong 2023-01-11T21:03:29.8523733Z [ OK ] LazyOpsTest.TestCastLong (3 ms) 2023-01-11T21:03:29.8524050Z [ RUN ] LazyOpsTest.TestCastFloat 2023-01-11T21:03:29.8528945Z [ OK ] LazyOpsTest.TestCastFloat (0 ms) 2023-01-11T21:03:29.8529292Z [ RUN ] LazyOpsTest.TestRetainType 2023-01-11T21:03:29.8537678Z [ OK ] LazyOpsTest.TestRetainType (0 ms) 2023-01-11T21:03:29.8538038Z [ RUN ] LazyOpsTest.TestLogicalTypeWithInterop 2023-01-11T21:03:29.8641464Z [ OK ] LazyOpsTest.TestLogicalTypeWithInterop (10 ms) 2023-01-11T21:03:29.8641833Z [ RUN ] LazyOpsTest.TestAdd 2023-01-11T21:03:29.8682518Z [ OK ] LazyOpsTest.TestAdd (4 ms) 2023-01-11T21:03:29.8682894Z [ RUN ] LazyOpsTest.TestAddHalf 2023-01-11T21:03:29.8720748Z [ OK ] LazyOpsTest.TestAddHalf (3 ms) 2023-01-11T21:03:29.8721151Z [ RUN ] LazyOpsTest.TestAddMixedPrecision 2023-01-11T21:03:29.8758866Z [ OK ] LazyOpsTest.TestAddMixedPrecision (3 ms) 2023-01-11T21:03:29.8759213Z [ RUN ] LazyOpsTest.TestAddInPlace 2023-01-11T21:03:29.8824920Z [ OK ] LazyOpsTest.TestAddInPlace (6 ms) 2023-01-11T21:03:29.8825241Z [ RUN ] LazyOpsTest.TestAddScalar 2023-01-11T21:03:29.8862464Z [ OK ] LazyOpsTest.TestAddScalar (3 ms) 2023-01-11T21:03:29.8862798Z [ RUN ] LazyOpsTest.TestAddScalarInPlace 2023-01-11T21:03:29.8926274Z [ OK ] LazyOpsTest.TestAddScalarInPlace (6 ms) 2023-01-11T21:03:29.8926623Z [ RUN ] LazyOpsTest.TestAddZeroSizeDim 2023-01-11T21:03:29.8962804Z [ OK ] LazyOpsTest.TestAddZeroSizeDim (3 ms) 2023-01-11T21:03:29.8963096Z [ RUN ] LazyOpsTest.TestSub 2023-01-11T21:03:29.9004122Z [ OK ] LazyOpsTest.TestSub (4 ms) 2023-01-11T21:03:29.9004428Z [ RUN ] LazyOpsTest.TestSubInPlace 2023-01-11T21:03:29.9068333Z [ OK ] LazyOpsTest.TestSubInPlace (6 ms) 2023-01-11T21:03:29.9068703Z [ RUN ] LazyOpsTest.TestSubScalar 2023-01-11T21:03:29.9105483Z [ OK ] LazyOpsTest.TestSubScalar (3 ms) 2023-01-11T21:03:29.9105810Z [ RUN ] LazyOpsTest.TestSubScalarInPlace 2023-01-11T21:03:29.9168314Z [ OK ] LazyOpsTest.TestSubScalarInPlace (6 ms) 2023-01-11T21:03:29.9168625Z [ RUN ] LazyOpsTest.TestMul 2023-01-11T21:03:29.9205263Z [ OK ] LazyOpsTest.TestMul (3 ms) 2023-01-11T21:03:29.9205570Z [ RUN ] LazyOpsTest.TestMulInPlace 2023-01-11T21:03:29.9268017Z [ OK ] LazyOpsTest.TestMulInPlace (6 ms) 2023-01-11T21:03:29.9268332Z [ RUN ] LazyOpsTest.TestMulScalar 2023-01-11T21:03:29.9303974Z [ OK ] LazyOpsTest.TestMulScalar (3 ms) 2023-01-11T21:03:29.9304286Z [ RUN ] LazyOpsTest.TestMulScalarInPlace 2023-01-11T21:03:29.9366168Z [ OK ] LazyOpsTest.TestMulScalarInPlace (6 ms) 2023-01-11T21:03:29.9366472Z [ RUN ] LazyOpsTest.TestDiv 2023-01-11T21:03:30.0494156Z [ OK ] LazyOpsTest.TestDiv (112 ms) 2023-01-11T21:03:30.0494680Z [ RUN ] LazyOpsTest.TestDivWithRoundingMode 2023-01-11T21:03:30.4253829Z [ OK ] LazyOpsTest.TestDivWithRoundingMode (375 ms) 2023-01-11T21:03:30.4254206Z [ RUN ] LazyOpsTest.TestDivInPlace 2023-01-11T21:03:30.4309522Z [ OK ] LazyOpsTest.TestDivInPlace (5 ms) 2023-01-11T21:03:30.4310165Z [ RUN ] LazyOpsTest.TestDivInPlaceWithRoundingMode 2023-01-11T21:03:30.4496114Z [ OK ] LazyOpsTest.TestDivInPlaceWithRoundingMode (18 ms) 2023-01-11T21:03:30.4496468Z [ RUN ] LazyOpsTest.TestDivScalar 2023-01-11T21:03:30.4873827Z [ OK ] LazyOpsTest.TestDivScalar (37 ms) 2023-01-11T21:03:30.4874166Z [ RUN ] LazyOpsTest.TestDivScalarInPlace 2023-01-11T21:03:30.4984392Z [ OK ] LazyOpsTest.TestDivScalarInPlace (11 ms) 2023-01-11T21:03:30.4984721Z [ RUN ] LazyOpsTest.TestDivOut 2023-01-11T21:03:30.5035803Z [ OK ] LazyOpsTest.TestDivOut (5 ms) 2023-01-11T21:03:30.5036109Z [ RUN ] LazyOpsTest.TestRsubScalar 2023-01-11T21:03:30.5073981Z [ OK ] LazyOpsTest.TestRsubScalar (3 ms) 2023-01-11T21:03:30.5074255Z [ RUN ] LazyOpsTest.TestNe 2023-01-11T21:03:30.5105793Z [ OK ] LazyOpsTest.TestNe (3 ms) 2023-01-11T21:03:30.5106089Z [ RUN ] LazyOpsTest.TestNeInplace 2023-01-11T21:03:30.5160903Z [ OK ] LazyOpsTest.TestNeInplace (5 ms) 2023-01-11T21:03:30.5161179Z [ RUN ] LazyOpsTest.TestEq 2023-01-11T21:03:30.5192143Z [ OK ] LazyOpsTest.TestEq (3 ms) 2023-01-11T21:03:30.5192435Z [ RUN ] LazyOpsTest.TestEqInplace 2023-01-11T21:03:30.5247303Z [ OK ] LazyOpsTest.TestEqInplace (5 ms) 2023-01-11T21:03:30.5247595Z [ RUN ] LazyOpsTest.TestGe 2023-01-11T21:03:30.5278955Z [ OK ] LazyOpsTest.TestGe (3 ms) 2023-01-11T21:03:30.5279235Z [ RUN ] LazyOpsTest.TestGeInplace 2023-01-11T21:03:30.5334549Z [ OK ] LazyOpsTest.TestGeInplace (5 ms) 2023-01-11T21:03:30.5335071Z [ RUN ] LazyOpsTest.TestLe 2023-01-11T21:03:30.5365724Z [ OK ] LazyOpsTest.TestLe (3 ms) 2023-01-11T21:03:30.5366004Z [ RUN ] LazyOpsTest.TestLeInplace 2023-01-11T21:03:30.5421745Z [ OK ] LazyOpsTest.TestLeInplace (5 ms) 2023-01-11T21:03:30.5422050Z [ RUN ] LazyOpsTest.TestGt 2023-01-11T21:03:30.5453946Z [ OK ] LazyOpsTest.TestGt (3 ms) 2023-01-11T21:03:30.5454277Z [ RUN ] LazyOpsTest.TestGtInplace 2023-01-11T21:03:30.5509744Z [ OK ] LazyOpsTest.TestGtInplace (5 ms) 2023-01-11T21:03:30.5510040Z [ RUN ] LazyOpsTest.TestLt 2023-01-11T21:03:30.5541613Z [ OK ] LazyOpsTest.TestLt (3 ms) 2023-01-11T21:03:30.5541934Z [ RUN ] LazyOpsTest.TestLtInplace 2023-01-11T21:03:30.5597310Z [ OK ] LazyOpsTest.TestLtInplace (5 ms) 2023-01-11T21:03:30.5597605Z [ RUN ] LazyOpsTest.TestNeScalar 2023-01-11T21:03:30.5627071Z [ OK ] LazyOpsTest.TestNeScalar (2 ms) 2023-01-11T21:03:30.5627392Z [ RUN ] LazyOpsTest.TestEqScalar 2023-01-11T21:03:30.5655750Z [ OK ] LazyOpsTest.TestEqScalar (2 ms) 2023-01-11T21:03:30.5656076Z [ RUN ] LazyOpsTest.TestGeScalar 2023-01-11T21:03:30.5685904Z [ OK ] LazyOpsTest.TestGeScalar (2 ms) 2023-01-11T21:03:30.5686255Z [ RUN ] LazyOpsTest.TestGeScalarInplace 2023-01-11T21:03:30.5736866Z [ OK ] LazyOpsTest.TestGeScalarInplace (5 ms) 2023-01-11T21:03:30.5737188Z [ RUN ] LazyOpsTest.TestLeScalar 2023-01-11T21:03:30.5765322Z [ OK ] LazyOpsTest.TestLeScalar (2 ms) 2023-01-11T21:03:30.5765664Z [ RUN ] LazyOpsTest.TestLeScalarInplace 2023-01-11T21:03:30.5815831Z [ OK ] LazyOpsTest.TestLeScalarInplace (4 ms) 2023-01-11T21:03:30.5816163Z [ RUN ] LazyOpsTest.TestGtScalar 2023-01-11T21:03:30.5844656Z [ OK ] LazyOpsTest.TestGtScalar (2 ms) 2023-01-11T21:03:30.5844990Z [ RUN ] LazyOpsTest.TestGtScalarInplace 2023-01-11T21:03:30.5895131Z [ OK ] LazyOpsTest.TestGtScalarInplace (4 ms) 2023-01-11T21:03:30.5895595Z [ RUN ] LazyOpsTest.TestLtScalar 2023-01-11T21:03:30.5923407Z [ OK ] LazyOpsTest.TestLtScalar (2 ms) 2023-01-11T21:03:30.5923990Z [ RUN ] LazyOpsTest.TestLtScalarInplace 2023-01-11T21:03:30.5972995Z [ OK ] LazyOpsTest.TestLtScalarInplace (4 ms) 2023-01-11T21:03:30.5973330Z [ RUN ] LazyOpsTest.TestIntegerAdd 2023-01-11T21:03:30.6115520Z [ OK ] LazyOpsTest.TestIntegerAdd (14 ms) 2023-01-11T21:03:30.6115814Z [ RUN ] LazyOpsTest.TestSVD 2023-01-11T21:03:30.6756830Z [ OK ] LazyOpsTest.TestSVD (64 ms) 2023-01-11T21:03:30.6757148Z [ RUN ] LazyOpsTest.TestQR 2023-01-11T21:03:30.6758496Z [W BatchLinearAlgebra.cpp:2459] Warning: torch.qr is deprecated in favor of torch.linalg.qr and will be removed in a future PyTorch release. 2023-01-11T21:03:30.6759119Z The boolean parameter 'some' has been replaced with a string parameter 'mode'. 2023-01-11T21:03:30.6759380Z Q, R = torch.qr(A, some) 2023-01-11T21:03:30.6759589Z should be replaced with 2023-01-11T21:03:30.6759909Z Q, R = torch.linalg.qr(A, 'reduced' if some else 'complete') (function operator()) 2023-01-11T21:03:30.7003036Z [ OK ] LazyOpsTest.TestQR (24 ms) 2023-01-11T21:03:30.7003391Z [ RUN ] LazyOpsTest.TestSymEig 2023-01-11T21:03:30.7005105Z [W BatchLinearAlgebra.cpp:2910] Warning: torch.symeig is deprecated in favor of torch.linalg.eigh and will be removed in a future PyTorch release. 2023-01-11T21:03:30.7005908Z The default behavior has changed from using the upper triangular portion of the matrix by default to using the lower triangular portion. 2023-01-11T21:03:30.7006391Z L, _ = torch.symeig(A, upper=upper) 2023-01-11T21:03:30.7006597Z should be replaced with 2023-01-11T21:03:30.7007135Z L = torch.linalg.eigvalsh(A, UPLO='U' if upper else 'L') 2023-01-11T21:03:30.7007354Z and 2023-01-11T21:03:30.7007543Z L, V = torch.symeig(A, eigenvectors=True) 2023-01-11T21:03:30.7007745Z should be replaced with 2023-01-11T21:03:30.7008070Z L, V = torch.linalg.eigh(A, UPLO='U' if upper else 'L') (function operator()) 2023-01-11T21:03:30.7183133Z [ OK ] LazyOpsTest.TestSymEig (18 ms) 2023-01-11T21:03:30.7183452Z [ RUN ] LazyOpsTest.TestCholesky 2023-01-11T21:03:30.7189367Z [W BatchLinearAlgebra.cpp:1730] Warning: torch.cholesky is deprecated in favor of torch.linalg.cholesky and will be removed in a future PyTorch release. 2023-01-11T21:03:30.7189945Z L = torch.cholesky(A) 2023-01-11T21:03:30.7190330Z should be replaced with 2023-01-11T21:03:30.7190610Z L = torch.linalg.cholesky(A) 2023-01-11T21:03:30.7190799Z and 2023-01-11T21:03:30.7190980Z U = torch.cholesky(A, upper=True) 2023-01-11T21:03:30.7191172Z should be replaced with 2023-01-11T21:03:30.7191378Z U = torch.linalg.cholesky(A).mH(). 2023-01-11T21:03:30.7191716Z This transform will produce equivalent results for all valid (symmetric positive definite) inputs. (function operator()) 2023-01-11T21:03:30.7267252Z [ OK ] LazyOpsTest.TestCholesky (8 ms) 2023-01-11T21:03:30.7267987Z [ RUN ] LazyOpsTest.TestLogDet 2023-01-11T21:03:30.7432617Z [ OK ] LazyOpsTest.TestLogDet (16 ms) 2023-01-11T21:03:30.7432946Z [ RUN ] LazyOpsTest.TestTriangularSolve 2023-01-11T21:03:30.7436449Z [W BatchLinearAlgebra.cpp:2225] Warning: torch.triangular_solve is deprecated in favor of torch.linalg.solve_triangularand will be removed in a future PyTorch release. 2023-01-11T21:03:30.7437271Z torch.linalg.solve_triangular has its arguments reversed and does not return a copy of one of the inputs. 2023-01-11T21:03:30.7437589Z X = torch.triangular_solve(B, A).solution 2023-01-11T21:03:30.7437803Z should be replaced with 2023-01-11T21:03:30.7438038Z X = torch.linalg.solve_triangular(A, B). (function operator()) 2023-01-11T21:03:31.0566329Z [ OK ] LazyOpsTest.TestTriangularSolve (313 ms) 2023-01-11T21:03:31.0566809Z [ RUN ] LazyOpsTest.TestKthValue 2023-01-11T21:03:31.1078131Z [ OK ] LazyOpsTest.TestKthValue (51 ms) 2023-01-11T21:03:31.1078649Z [ RUN ] LazyOpsTest.TestTopK 2023-01-11T21:03:31.3332652Z [ OK ] LazyOpsTest.TestTopK (225 ms) 2023-01-11T21:03:31.3333116Z [ RUN ] LazyOpsTest.TestSort 2023-01-11T21:03:31.4342673Z [ OK ] LazyOpsTest.TestSort (100 ms) 2023-01-11T21:03:31.4343026Z [ RUN ] LazyOpsTest.TestSortDescWithMinValue 2023-01-11T21:03:31.4405793Z [ OK ] LazyOpsTest.TestSortDescWithMinValue (6 ms) 2023-01-11T21:03:31.4406371Z [ RUN ] LazyOpsTest.TestArgSort 2023-01-11T21:03:31.4563717Z [ OK ] LazyOpsTest.TestArgSort (15 ms) 2023-01-11T21:03:31.4564234Z [ RUN ] LazyOpsTest.TestMin 2023-01-11T21:03:31.4601303Z [ OK ] LazyOpsTest.TestMin (3 ms) 2023-01-11T21:03:31.4601822Z [ RUN ] LazyOpsTest.TestMax 2023-01-11T21:03:31.4637426Z [ OK ] LazyOpsTest.TestMax (3 ms) 2023-01-11T21:03:31.4637978Z [ RUN ] LazyOpsTest.TestUnaryMin 2023-01-11T21:03:31.4667651Z [ OK ] LazyOpsTest.TestUnaryMin (2 ms) 2023-01-11T21:03:31.4667984Z [ RUN ] LazyOpsTest.TestUnaryMax 2023-01-11T21:03:31.4697431Z [ OK ] LazyOpsTest.TestUnaryMax (2 ms) 2023-01-11T21:03:31.4697753Z [ RUN ] LazyOpsTest.TestAll 2023-01-11T21:03:31.4826546Z [ OK ] LazyOpsTest.TestAll (12 ms) 2023-01-11T21:03:31.4826830Z [ RUN ] LazyOpsTest.TestAllDim 2023-01-11T21:03:31.4860714Z [ OK ] LazyOpsTest.TestAllDim (3 ms) 2023-01-11T21:03:31.4861066Z [ RUN ] LazyOpsTest.TestAllDimKeep 2023-01-11T21:03:31.4892895Z [ OK ] LazyOpsTest.TestAllDimKeep (3 ms) 2023-01-11T21:03:31.4893424Z [ RUN ] LazyOpsTest.TestAmax 2023-01-11T21:03:31.5498565Z [ OK ] LazyOpsTest.TestAmax (60 ms) 2023-01-11T21:03:31.5498892Z [ RUN ] LazyOpsTest.TestAmin 2023-01-11T21:03:31.6105999Z [ OK ] LazyOpsTest.TestAmin (60 ms) 2023-01-11T21:03:31.6106355Z [ RUN ] LazyOpsTest.TestAny 2023-01-11T21:03:31.6240819Z [ OK ] LazyOpsTest.TestAny (13 ms) 2023-01-11T21:03:31.6241107Z [ RUN ] LazyOpsTest.TestAnyDim 2023-01-11T21:03:31.6275172Z [ OK ] LazyOpsTest.TestAnyDim (3 ms) 2023-01-11T21:03:31.6275503Z [ RUN ] LazyOpsTest.TestAnyDimKeep 2023-01-11T21:03:31.6307486Z [ OK ] LazyOpsTest.TestAnyDimKeep (3 ms) 2023-01-11T21:03:31.6307814Z [ RUN ] LazyOpsTest.TestMean 2023-01-11T21:03:31.6346593Z [ OK ] LazyOpsTest.TestMean (3 ms) 2023-01-11T21:03:31.6346914Z [ RUN ] LazyOpsTest.TestMeanCast 2023-01-11T21:03:31.6381834Z [ OK ] LazyOpsTest.TestMeanCast (3 ms) 2023-01-11T21:03:31.6382162Z [ RUN ] LazyOpsTest.TestMeanInDim 2023-01-11T21:03:31.6605207Z [ OK ] LazyOpsTest.TestMeanInDim (22 ms) 2023-01-11T21:03:31.6605773Z [ RUN ] LazyOpsTest.TestMeanInDims 2023-01-11T21:03:31.6683879Z [ OK ] LazyOpsTest.TestMeanInDims (7 ms) 2023-01-11T21:03:31.6684520Z [ RUN ] LazyOpsTest.TestMeanInDimsKeepCast 2023-01-11T21:03:31.6761619Z [ OK ] LazyOpsTest.TestMeanInDimsKeepCast (7 ms) 2023-01-11T21:03:31.6762241Z [ RUN ] LazyOpsTest.TestMeanInDimOut 2023-01-11T21:03:31.6986016Z [ OK ] LazyOpsTest.TestMeanInDimOut (22 ms) 2023-01-11T21:03:31.6986556Z [ RUN ] LazyOpsTest.TestStd 2023-01-11T21:03:31.7068841Z [ OK ] LazyOpsTest.TestStd (8 ms) 2023-01-11T21:03:31.7069395Z [ RUN ] LazyOpsTest.TestStdInDim 2023-01-11T21:03:31.7972786Z [ OK ] LazyOpsTest.TestStdInDim (90 ms) 2023-01-11T21:03:31.7973200Z [ RUN ] LazyOpsTest.TestStdWithCorrection 2023-01-11T21:03:31.8417881Z [ OK ] LazyOpsTest.TestStdWithCorrection (44 ms) 2023-01-11T21:03:31.8418502Z [ RUN ] LazyOpsTest.TestStdMeanWithCorrection 2023-01-11T21:03:31.8639969Z [ OK ] LazyOpsTest.TestStdMeanWithCorrection (22 ms) 2023-01-11T21:03:31.8640446Z [ RUN ] LazyOpsTest.TestSum 2023-01-11T21:03:31.8674013Z [ OK ] LazyOpsTest.TestSum (3 ms) 2023-01-11T21:03:31.8674629Z [ RUN ] LazyOpsTest.TestSumCast 2023-01-11T21:03:31.8707375Z [ OK ] LazyOpsTest.TestSumCast (3 ms) 2023-01-11T21:03:31.8707830Z [ RUN ] LazyOpsTest.TestSumU8 2023-01-11T21:03:31.8735705Z [ OK ] LazyOpsTest.TestSumU8 (2 ms) 2023-01-11T21:03:31.8736253Z [ RUN ] LazyOpsTest.TestSumInDim 2023-01-11T21:03:31.8943664Z [ OK ] LazyOpsTest.TestSumInDim (20 ms) 2023-01-11T21:03:31.8944045Z [ RUN ] LazyOpsTest.TestSumInDims 2023-01-11T21:03:31.9016835Z [ OK ] LazyOpsTest.TestSumInDims (7 ms) 2023-01-11T21:03:31.9017161Z [ RUN ] LazyOpsTest.TestSumInDimsKeep 2023-01-11T21:03:31.9091513Z [ OK ] LazyOpsTest.TestSumInDimsKeep (7 ms) 2023-01-11T21:03:31.9091883Z [ RUN ] LazyOpsTest.TestSumInDimsKeepCast 2023-01-11T21:03:31.9164163Z [ OK ] LazyOpsTest.TestSumInDimsKeepCast (7 ms) 2023-01-11T21:03:31.9164496Z [ RUN ] LazyOpsTest.TestVar 2023-01-11T21:03:31.9192918Z [ OK ] LazyOpsTest.TestVar (2 ms) 2023-01-11T21:03:31.9193325Z [ RUN ] LazyOpsTest.TestVarWithDim 2023-01-11T21:03:31.9284985Z [ OK ] LazyOpsTest.TestVarWithDim (9 ms) 2023-01-11T21:03:31.9285311Z [ RUN ] LazyOpsTest.TestVarWithCorrection 2023-01-11T21:03:31.9417725Z [ OK ] LazyOpsTest.TestVarWithCorrection (13 ms) 2023-01-11T21:03:31.9418332Z [ RUN ] LazyOpsTest.TestVarMeanWithCorrection 2023-01-11T21:03:31.9639710Z [ OK ] LazyOpsTest.TestVarMeanWithCorrection (22 ms) 2023-01-11T21:03:31.9640191Z [ RUN ] LazyOpsTest.TestMaxInDim 2023-01-11T21:03:32.0400119Z [ OK ] LazyOpsTest.TestMaxInDim (75 ms) 2023-01-11T21:03:32.0400541Z [ RUN ] LazyOpsTest.TestMinInDim 2023-01-11T21:03:32.0579942Z [ OK ] LazyOpsTest.TestMinInDim (17 ms) 2023-01-11T21:03:32.0580457Z [ RUN ] LazyOpsTest.TestNorm 2023-01-11T21:03:32.0621866Z [ OK ] LazyOpsTest.TestNorm (4 ms) 2023-01-11T21:03:32.0622410Z [ RUN ] LazyOpsTest.TestNormInDim 2023-01-11T21:03:32.0705760Z [ OK ] LazyOpsTest.TestNormInDim (8 ms) 2023-01-11T21:03:32.0706327Z [ RUN ] LazyOpsTest.TestNormInDims 2023-01-11T21:03:32.0780798Z [ OK ] LazyOpsTest.TestNormInDims (7 ms) 2023-01-11T21:03:32.0781335Z [ RUN ] LazyOpsTest.TestNormInDimsKeep 2023-01-11T21:03:32.0855215Z [ OK ] LazyOpsTest.TestNormInDimsKeep (7 ms) 2023-01-11T21:03:32.0855795Z [ RUN ] LazyOpsTest.TestNormalTwoTensor 2023-01-11T21:03:32.0927333Z [ OK ] LazyOpsTest.TestNormalTwoTensor (7 ms) 2023-01-11T21:03:32.0927901Z [ RUN ] LazyOpsTest.TestNormalDoubleMean 2023-01-11T21:03:32.1031137Z [ OK ] LazyOpsTest.TestNormalDoubleMean (10 ms) 2023-01-11T21:03:32.1031481Z [ RUN ] LazyOpsTest.TestNormalDoubleStd 2023-01-11T21:03:32.1051106Z [ OK ] LazyOpsTest.TestNormalDoubleStd (2 ms) 2023-01-11T21:03:32.1051456Z [ RUN ] LazyOpsTest.TestNormalInPlace 2023-01-11T21:03:32.1083377Z [ OK ] LazyOpsTest.TestNormalInPlace (3 ms) 2023-01-11T21:03:32.1083699Z [ RUN ] LazyOpsTest.TestUniformInPlace 2023-01-11T21:03:32.1113610Z [ OK ] LazyOpsTest.TestUniformInPlace (3 ms) 2023-01-11T21:03:32.1114011Z [ RUN ] LazyOpsTest.TestRandomInPlace 2023-01-11T21:03:32.1757015Z [ OK ] LazyOpsTest.TestRandomInPlace (64 ms) 2023-01-11T21:03:32.1757407Z [ RUN ] LazyOpsTest.TestRandomInPlaceDefaultFrom 2023-01-11T21:03:32.2376345Z [ OK ] LazyOpsTest.TestRandomInPlaceDefaultFrom (61 ms) 2023-01-11T21:03:32.2376763Z [ RUN ] LazyOpsTest.TestRandomInPlaceDefault 2023-01-11T21:03:32.2537890Z [ OK ] LazyOpsTest.TestRandomInPlaceDefault (16 ms) 2023-01-11T21:03:32.2538322Z [ RUN ] LazyOpsTest.TestNormGeneral 2023-01-11T21:03:32.2581501Z [ OK ] LazyOpsTest.TestNormGeneral (4 ms) 2023-01-11T21:03:32.2582071Z [ RUN ] LazyOpsTest.TestNormNuclear 2023-01-11T21:03:32.2637149Z [ OK ] LazyOpsTest.TestNormNuclear (5 ms) 2023-01-11T21:03:32.2637690Z [ RUN ] LazyOpsTest.TestFrobeniusNormInDim 2023-01-11T21:03:32.2638650Z [W LinearAlgebra.cpp:2783] Warning: at::frobenius_norm is deprecated and it is just left for JIT compatibility. It will be removed in a future PyTorch release. Please use `linalg.vector_norm(A, 2., dim, keepdim)` instead (function operator()) 2023-01-11T21:03:32.2720429Z [ OK ] LazyOpsTest.TestFrobeniusNormInDim (8 ms) 2023-01-11T21:03:32.2721023Z [ RUN ] LazyOpsTest.TestFrobeniusNormInDims 2023-01-11T21:03:32.2794114Z [ OK ] LazyOpsTest.TestFrobeniusNormInDims (7 ms) 2023-01-11T21:03:32.2794439Z [ RUN ] LazyOpsTest.TestGroupNorm 2023-01-11T21:03:32.3222518Z [ OK ] LazyOpsTest.TestGroupNorm (42 ms) 2023-01-11T21:03:32.3222903Z [ RUN ] LazyOpsTest.TestGroupNormBackward 2023-01-11T21:03:32.8895351Z [ OK ] LazyOpsTest.TestGroupNormBackward (567 ms) 2023-01-11T21:03:32.8895787Z [ RUN ] LazyOpsTest.TestInstanceNorm 2023-01-11T21:03:32.9252111Z [ OK ] LazyOpsTest.TestInstanceNorm (35 ms) 2023-01-11T21:03:32.9252476Z [ RUN ] LazyOpsTest.TestLayerNorm 2023-01-11T21:03:32.9744230Z [ OK ] LazyOpsTest.TestLayerNorm (49 ms) 2023-01-11T21:03:32.9744573Z [ RUN ] LazyOpsTest.TestLayerNormBackward 2023-01-11T21:03:33.2837065Z [ OK ] LazyOpsTest.TestLayerNormBackward (309 ms) 2023-01-11T21:03:33.2837469Z [ RUN ] LazyOpsTest.TestNuclearNorm 2023-01-11T21:03:33.2838133Z [W LinearAlgebra.cpp:2837] Warning: at::nuclear_norm is deprecated and it is just left for JIT compatibility. It will be removed in a future PyTorch release. Please use `linalg.matrix_norm(A, 'nuc', dim, keepdim)` instead (function operator()) 2023-01-11T21:03:33.2921609Z [ OK ] LazyOpsTest.TestNuclearNorm (8 ms) 2023-01-11T21:03:33.2921955Z [ RUN ] LazyOpsTest.TestPairwiseDistance 2023-01-11T21:03:33.3324308Z [ OK ] LazyOpsTest.TestPairwiseDistance (40 ms) 2023-01-11T21:03:33.3324696Z [ RUN ] LazyOpsTest.TestCosineSimilarity 2023-01-11T21:03:33.3836624Z [ OK ] LazyOpsTest.TestCosineSimilarity (51 ms) 2023-01-11T21:03:33.3837004Z [ RUN ] LazyOpsTest.TestCosineEmbeddingLoss 2023-01-11T21:03:33.4993852Z [ OK ] LazyOpsTest.TestCosineEmbeddingLoss (115 ms) 2023-01-11T21:03:33.4994462Z [ RUN ] LazyOpsTest.TestHingeEmbeddingLoss 2023-01-11T21:03:33.5572352Z [ OK ] LazyOpsTest.TestHingeEmbeddingLoss (57 ms) 2023-01-11T21:03:33.5572720Z [ RUN ] LazyOpsTest.TestTripletMarginLoss 2023-01-11T21:03:33.7901550Z [ OK ] LazyOpsTest.TestTripletMarginLoss (232 ms) 2023-01-11T21:03:33.7902196Z [ RUN ] LazyOpsTest.TestBinaryCrossEntropy 2023-01-11T21:03:33.8158675Z [ OK ] LazyOpsTest.TestBinaryCrossEntropy (25 ms) 2023-01-11T21:03:33.8159348Z [ RUN ] LazyOpsTest.TestMarginRankingLoss 2023-01-11T21:03:33.8556358Z [ OK ] LazyOpsTest.TestMarginRankingLoss (39 ms) 2023-01-11T21:03:33.8792381Z [ RUN ] LazyOpsTest.TestBCEWithLogits 2023-01-11T21:03:33.8793189Z [ OK ] LazyOpsTest.TestBCEWithLogits (23 ms) 2023-01-11T21:03:33.8793787Z [ RUN ] LazyOpsTest.TestKlDiv 2023-01-11T21:03:33.9028971Z [ OK ] LazyOpsTest.TestKlDiv (23 ms) 2023-01-11T21:03:33.9029561Z [ RUN ] LazyOpsTest.TestProd 2023-01-11T21:03:33.9042346Z [ OK ] LazyOpsTest.TestProd (1 ms) 2023-01-11T21:03:33.9042896Z [ RUN ] LazyOpsTest.TestProdCast 2023-01-11T21:03:33.9055806Z [ OK ] LazyOpsTest.TestProdCast (1 ms) 2023-01-11T21:03:33.9056347Z [ RUN ] LazyOpsTest.TestProdInDim 2023-01-11T21:03:33.9121711Z [ OK ] LazyOpsTest.TestProdInDim (6 ms) 2023-01-11T21:03:33.9122312Z [ RUN ] LazyOpsTest.TestProdInDimKeepCast 2023-01-11T21:03:33.9183405Z [ OK ] LazyOpsTest.TestProdInDimKeepCast (6 ms) 2023-01-11T21:03:33.9184010Z [ RUN ] LazyOpsTest.TestProdInDimKeep 2023-01-11T21:03:33.9248067Z [ OK ] LazyOpsTest.TestProdInDimKeep (6 ms) 2023-01-11T21:03:33.9248597Z [ RUN ] LazyOpsTest.TestCumSum 2023-01-11T21:03:33.9434385Z [ OK ] LazyOpsTest.TestCumSum (18 ms) 2023-01-11T21:03:33.9435037Z [ RUN ] LazyOpsTest.TestCumSumCast 2023-01-11T21:03:33.9615868Z [ OK ] LazyOpsTest.TestCumSumCast (18 ms) 2023-01-11T21:03:33.9616454Z [ RUN ] LazyOpsTest.TestCumSumLong 2023-01-11T21:03:33.9769502Z [ OK ] LazyOpsTest.TestCumSumLong (15 ms) 2023-01-11T21:03:33.9770102Z [ RUN ] LazyOpsTest.TestCumSumCastLong 2023-01-11T21:03:33.9926075Z [ OK ] LazyOpsTest.TestCumSumCastLong (15 ms) 2023-01-11T21:03:33.9990058Z [ RUN ] LazyOpsTest.TestCumProd 2023-01-11T21:03:33.9990600Z [ OK ] LazyOpsTest.TestCumProd (6 ms) 2023-01-11T21:03:33.9991125Z [ RUN ] LazyOpsTest.TestCumProdCast 2023-01-11T21:03:34.0051946Z [ OK ] LazyOpsTest.TestCumProdCast (6 ms) 2023-01-11T21:03:34.0052518Z [ RUN ] LazyOpsTest.TestCumProdLong 2023-01-11T21:03:34.0155115Z [ OK ] LazyOpsTest.TestCumProdLong (10 ms) 2023-01-11T21:03:34.0155704Z [ RUN ] LazyOpsTest.TestCumProdCastLong 2023-01-11T21:03:34.0263022Z [ OK ] LazyOpsTest.TestCumProdCastLong (10 ms) 2023-01-11T21:03:34.0263576Z [ RUN ] LazyOpsTest.TestArgMin 2023-01-11T21:03:34.0271703Z [ OK ] LazyOpsTest.TestArgMin (0 ms) 2023-01-11T21:03:34.0272244Z [ RUN ] LazyOpsTest.TestArgMinDim 2023-01-11T21:03:34.0288188Z [ OK ] LazyOpsTest.TestArgMinDim (1 ms) 2023-01-11T21:03:34.0288789Z [ RUN ] LazyOpsTest.TestArgMinDimKeep 2023-01-11T21:03:34.0304400Z [ OK ] LazyOpsTest.TestArgMinDimKeep (1 ms) 2023-01-11T21:03:34.0304975Z [ RUN ] LazyOpsTest.TestArgMinSameValue 2023-01-11T21:03:34.0311712Z [ OK ] LazyOpsTest.TestArgMinSameValue (0 ms) 2023-01-11T21:03:34.0312307Z [ RUN ] LazyOpsTest.TestArgMinWrapper 2023-01-11T21:03:34.0328140Z [ OK ] LazyOpsTest.TestArgMinWrapper (1 ms) 2023-01-11T21:03:34.0328715Z [ RUN ] LazyOpsTest.TestArgMax 2023-01-11T21:03:34.0336426Z [ OK ] LazyOpsTest.TestArgMax (0 ms) 2023-01-11T21:03:34.0336863Z [ RUN ] LazyOpsTest.TestArgMaxDim 2023-01-11T21:03:34.0352794Z [ OK ] LazyOpsTest.TestArgMaxDim (1 ms) 2023-01-11T21:03:34.0353369Z [ RUN ] LazyOpsTest.TestArgMaxDimKeep 2023-01-11T21:03:34.0369140Z [ OK ] LazyOpsTest.TestArgMaxDimKeep (1 ms) 2023-01-11T21:03:34.0369719Z [ RUN ] LazyOpsTest.TestArgMaxSameValue 2023-01-11T21:03:34.0376377Z [ OK ] LazyOpsTest.TestArgMaxSameValue (0 ms) 2023-01-11T21:03:34.0376993Z [ RUN ] LazyOpsTest.TestArgMaxWrapper 2023-01-11T21:03:34.0392853Z [ OK ] LazyOpsTest.TestArgMaxWrapper (1 ms) 2023-01-11T21:03:34.0393427Z [ RUN ] LazyOpsTest.TestAsin 2023-01-11T21:03:34.0407302Z [ OK ] LazyOpsTest.TestAsin (1 ms) 2023-01-11T21:03:34.0407843Z [ RUN ] LazyOpsTest.TestAsinh 2023-01-11T21:03:34.0420238Z [ OK ] LazyOpsTest.TestAsinh (1 ms) 2023-01-11T21:03:34.0420800Z [ RUN ] LazyOpsTest.TestAsinhInPlace 2023-01-11T21:03:34.0439920Z [ OK ] LazyOpsTest.TestAsinhInPlace (1 ms) 2023-01-11T21:03:34.0440438Z [ RUN ] LazyOpsTest.TestSin 2023-01-11T21:03:34.0454147Z [ OK ] LazyOpsTest.TestSin (1 ms) 2023-01-11T21:03:34.0454941Z [ RUN ] LazyOpsTest.TestSinh 2023-01-11T21:03:34.0467033Z [ OK ] LazyOpsTest.TestSinh (1 ms) 2023-01-11T21:03:34.0467550Z [ RUN ] LazyOpsTest.TestAcos 2023-01-11T21:03:34.0481180Z [ OK ] LazyOpsTest.TestAcos (1 ms) 2023-01-11T21:03:34.0481713Z [ RUN ] LazyOpsTest.TestAcosh 2023-01-11T21:03:34.0494534Z [ OK ] LazyOpsTest.TestAcosh (1 ms) 2023-01-11T21:03:34.0495107Z [ RUN ] LazyOpsTest.TestAcoshInPlace 2023-01-11T21:03:34.0514787Z [ OK ] LazyOpsTest.TestAcoshInPlace (2 ms) 2023-01-11T21:03:34.0515356Z [ RUN ] LazyOpsTest.TestCos 2023-01-11T21:03:34.0549316Z [ OK ] LazyOpsTest.TestCos (3 ms) 2023-01-11T21:03:34.0549842Z [ RUN ] LazyOpsTest.TestCosh 2023-01-11T21:03:34.0562105Z [ OK ] LazyOpsTest.TestCosh (1 ms) 2023-01-11T21:03:34.0562640Z [ RUN ] LazyOpsTest.TestAtan 2023-01-11T21:03:34.0576185Z [ OK ] LazyOpsTest.TestAtan (1 ms) 2023-01-11T21:03:34.0576712Z [ RUN ] LazyOpsTest.TestAtanh 2023-01-11T21:03:34.0588917Z [ OK ] LazyOpsTest.TestAtanh (1 ms) 2023-01-11T21:03:34.0589486Z [ RUN ] LazyOpsTest.TestAtanhInPlace 2023-01-11T21:03:34.0609092Z [ OK ] LazyOpsTest.TestAtanhInPlace (1 ms) 2023-01-11T21:03:34.0609789Z [ RUN ] LazyOpsTest.TestAtan2 2023-01-11T21:03:34.0624172Z [ OK ] LazyOpsTest.TestAtan2 (1 ms) 2023-01-11T21:03:34.0624693Z [ RUN ] LazyOpsTest.TestTan 2023-01-11T21:03:34.0638190Z [ OK ] LazyOpsTest.TestTan (1 ms) 2023-01-11T21:03:34.0638706Z [ RUN ] LazyOpsTest.TestTanh 2023-01-11T21:03:34.0673386Z [ OK ] LazyOpsTest.TestTanh (3 ms) 2023-01-11T21:03:34.0673943Z [ RUN ] LazyOpsTest.TestClampMinMax 2023-01-11T21:03:34.0708142Z [ OK ] LazyOpsTest.TestClampMinMax (3 ms) 2023-01-11T21:03:34.0708682Z [ RUN ] LazyOpsTest.TestClampMin 2023-01-11T21:03:34.0743840Z [ OK ] LazyOpsTest.TestClampMin (3 ms) 2023-01-11T21:03:34.0744391Z [ RUN ] LazyOpsTest.TestClampMax 2023-01-11T21:03:34.0779488Z [ OK ] LazyOpsTest.TestClampMax (3 ms) 2023-01-11T21:03:34.0780077Z [ RUN ] LazyOpsTest.TestClampMinExplicit 2023-01-11T21:03:34.0812437Z [ OK ] LazyOpsTest.TestClampMinExplicit (3 ms) 2023-01-11T21:03:34.0813009Z [ RUN ] LazyOpsTest.TestClampMaxExplicit 2023-01-11T21:03:34.0825232Z [ OK ] LazyOpsTest.TestClampMaxExplicit (1 ms) 2023-01-11T21:03:34.0826062Z [ RUN ] LazyOpsTest.TestClampMinExplicitInPlace 2023-01-11T21:03:34.0875902Z [ OK ] LazyOpsTest.TestClampMinExplicitInPlace (5 ms) 2023-01-11T21:03:34.0876481Z [ RUN ] LazyOpsTest.TestClampMaxExplicitInPlace 2023-01-11T21:03:34.0895667Z [ OK ] LazyOpsTest.TestClampMaxExplicitInPlace (1 ms) 2023-01-11T21:03:34.0896208Z [ RUN ] LazyOpsTest.TestCeil 2023-01-11T21:03:34.0908765Z [ OK ] LazyOpsTest.TestCeil (1 ms) 2023-01-11T21:03:34.0909279Z [ RUN ] LazyOpsTest.TestFloor 2023-01-11T21:03:34.0941957Z [ OK ] LazyOpsTest.TestFloor (3 ms) 2023-01-11T21:03:34.0942504Z [ RUN ] LazyOpsTest.TestRound 2023-01-11T21:03:34.0956672Z [ OK ] LazyOpsTest.TestRound (1 ms) 2023-01-11T21:03:34.0957218Z [ RUN ] LazyOpsTest.TestTrunc 2023-01-11T21:03:34.0991880Z [ OK ] LazyOpsTest.TestTrunc (3 ms) 2023-01-11T21:03:34.0992434Z [ RUN ] LazyOpsTest.TestFrac 2023-01-11T21:03:34.1024788Z [ OK ] LazyOpsTest.TestFrac (3 ms) 2023-01-11T21:03:34.1025306Z [ RUN ] LazyOpsTest.TestNeg 2023-01-11T21:03:34.1056676Z [ OK ] LazyOpsTest.TestNeg (3 ms) 2023-01-11T21:03:34.1056969Z [ RUN ] LazyOpsTest.TestBitwiseNot 2023-01-11T21:03:34.1084081Z [ OK ] LazyOpsTest.TestBitwiseNot (2 ms) 2023-01-11T21:03:34.1084470Z [ RUN ] LazyOpsTest.TestBitwiseNotInPlace 2023-01-11T21:03:34.1112346Z [ OK ] LazyOpsTest.TestBitwiseNotInPlace (2 ms) 2023-01-11T21:03:34.1112685Z [ RUN ] LazyOpsTest.TestSign 2023-01-11T21:03:34.1125808Z [ OK ] LazyOpsTest.TestSign (1 ms) 2023-01-11T21:03:34.1126182Z [ RUN ] LazyOpsTest.TestSignByte 2023-01-11T21:03:34.1132812Z [ OK ] LazyOpsTest.TestSignByte (0 ms) 2023-01-11T21:03:34.1133177Z [ RUN ] LazyOpsTest.TestAbs 2023-01-11T21:03:34.1165471Z [ OK ] LazyOpsTest.TestAbs (3 ms) 2023-01-11T21:03:34.1165836Z [ RUN ] LazyOpsTest.TestAbsByte 2023-01-11T21:03:34.1191887Z [ OK ] LazyOpsTest.TestAbsByte (2 ms) 2023-01-11T21:03:34.1192273Z [ RUN ] LazyOpsTest.TestEmptyLike 2023-01-11T21:03:34.1195689Z [ OK ] LazyOpsTest.TestEmptyLike (0 ms) 2023-01-11T21:03:34.1196071Z [ RUN ] LazyOpsTest.TestEmptyLikeOptions 2023-01-11T21:03:34.1199036Z [ OK ] LazyOpsTest.TestEmptyLikeOptions (0 ms) 2023-01-11T21:03:34.1199469Z [ RUN ] LazyOpsTest.TestEmpty 2023-01-11T21:03:34.1200418Z [ OK ] LazyOpsTest.TestEmpty (0 ms) 2023-01-11T21:03:34.1200982Z [ RUN ] LazyOpsTest.TestZeroInPlace 2023-01-11T21:03:34.1232090Z [ OK ] LazyOpsTest.TestZeroInPlace (3 ms) 2023-01-11T21:03:34.1232414Z [ RUN ] LazyOpsTest.TestZerosLike 2023-01-11T21:03:34.1260622Z [ OK ] LazyOpsTest.TestZerosLike (1 ms) 2023-01-11T21:03:34.1261115Z [ RUN ] LazyOpsTest.TestZerosLikeOptions 2023-01-11T21:03:34.1261484Z [ OK ] LazyOpsTest.TestZerosLikeOptions (1 ms) 2023-01-11T21:03:34.1261780Z [ RUN ] LazyOpsTest.TestZeros 2023-01-11T21:03:34.1297720Z [ OK ] LazyOpsTest.TestZeros (4 ms) 2023-01-11T21:03:34.1298060Z [ RUN ] LazyOpsTest.TestOnes 2023-01-11T21:03:34.1344520Z [ OK ] LazyOpsTest.TestOnes (4 ms) 2023-01-11T21:03:34.1344893Z [ RUN ] LazyOpsTest.TestOnesLike 2023-01-11T21:03:34.1355818Z [ OK ] LazyOpsTest.TestOnesLike (1 ms) 2023-01-11T21:03:34.1356207Z [ RUN ] LazyOpsTest.TestOnesLikeOptions 2023-01-11T21:03:34.1366799Z [ OK ] LazyOpsTest.TestOnesLikeOptions (1 ms) 2023-01-11T21:03:34.1367175Z [ RUN ] LazyOpsTest.TestFull 2023-01-11T21:03:34.1438939Z [ OK ] LazyOpsTest.TestFull (7 ms) 2023-01-11T21:03:34.1439473Z [ RUN ] LazyOpsTest.TestFullLike 2023-01-11T21:03:34.1450996Z [ OK ] LazyOpsTest.TestFullLike (1 ms) 2023-01-11T21:03:34.1451386Z [ RUN ] LazyOpsTest.TestFullLikeOptions 2023-01-11T21:03:34.1462053Z [ OK ] LazyOpsTest.TestFullLikeOptions (1 ms) 2023-01-11T21:03:34.1462419Z [ RUN ] LazyOpsTest.TestARange 2023-01-11T21:03:34.1552184Z [ OK ] LazyOpsTest.TestARange (8 ms) 2023-01-11T21:03:34.1552550Z [ RUN ] LazyOpsTest.TestARangeOut 2023-01-11T21:03:34.1554280Z [W RangeFactories.cpp:201] Warning: The number of elements in the out tensor of shape [4] is 4 which does not match the computed number of elements 200. Note that this may occur as a result of rounding error. The out tensor will be resized to a tensor of shape (200,). (function operator()) 2023-01-11T21:03:34.1581876Z [ OK ] LazyOpsTest.TestARangeOut (2 ms) 2023-01-11T21:03:34.1582234Z [ RUN ] LazyOpsTest.TestDimARange 2023-01-11T21:03:34.1625501Z [ OK ] LazyOpsTest.TestDimARange (4 ms) 2023-01-11T21:03:34.1625900Z [ RUN ] LazyOpsTest.TestBartlettWindow 2023-01-11T21:03:34.1961693Z [ OK ] LazyOpsTest.TestBartlettWindow (33 ms) 2023-01-11T21:03:34.1962069Z [ RUN ] LazyOpsTest.TestBlackmanWindow 2023-01-11T21:03:34.2219916Z [ OK ] LazyOpsTest.TestBlackmanWindow (25 ms) 2023-01-11T21:03:34.2220617Z [ RUN ] LazyOpsTest.TestHammingWindow 2023-01-11T21:03:34.2406615Z [ OK ] LazyOpsTest.TestHammingWindow (18 ms) 2023-01-11T21:03:34.2407287Z [ RUN ] LazyOpsTest.TestHannWindow 2023-01-11T21:03:34.2655408Z [ OK ] LazyOpsTest.TestHannWindow (24 ms) 2023-01-11T21:03:34.2655904Z [ RUN ] LazyOpsTest.TestLogSigmoid 2023-01-11T21:03:34.4635687Z error: decoding address ranges: invalid range list offset 0x1490 2023-01-11T21:03:34.4636305Z error: decoding address ranges: invalid range list offset 0x15bc 2023-01-11T21:03:34.4636934Z error: decoding address ranges: invalid range list offset 0x15f4 2023-01-11T21:03:34.4637593Z error: decoding address ranges: invalid range list offset 0x1629 2023-01-11T21:03:34.4638744Z error: decoding address ranges: invalid range list offset 0x1640 2023-01-11T21:03:34.4639551Z error: decoding address ranges: invalid range list offset 0x1661 2023-01-11T21:03:34.4641019Z error: decoding address ranges: invalid range list offset 0x168c 2023-01-11T21:03:34.4641985Z error: decoding address ranges: invalid range list offset 0x1760 2023-01-11T21:03:34.4643360Z error: decoding address ranges: invalid range list offset 0x1796 2023-01-11T21:03:34.4644054Z error: decoding address ranges: invalid range list offset 0x1801 2023-01-11T21:03:34.4645087Z error: decoding address ranges: invalid range list offset 0x1836 2023-01-11T21:03:34.4646592Z error: decoding address ranges: invalid range list offset 0x1857 2023-01-11T21:03:34.4646961Z error: decoding address ranges: invalid range list offset 0x18a2 2023-01-11T21:03:34.4648112Z error: decoding address ranges: invalid range list offset 0x18d8 2023-01-11T21:03:34.4648788Z error: decoding address ranges: invalid range list offset 0x18f9 2023-01-11T21:03:34.4649575Z error: decoding address ranges: invalid range list offset 0x1925 2023-01-11T21:03:34.4650365Z error: decoding address ranges: invalid range list offset 0x198f 2023-01-11T21:03:34.4651914Z error: decoding address ranges: invalid range list offset 0x19c5 2023-01-11T21:03:34.4652587Z error: decoding address ranges: invalid range list offset 0x19e6 2023-01-11T21:03:34.4653338Z error: decoding address ranges: invalid range list offset 0x1a12 2023-01-11T21:03:34.4654138Z error: decoding address ranges: invalid range list offset 0x1a33 2023-01-11T21:03:34.4655470Z error: decoding address ranges: invalid range list offset 0x1a4a 2023-01-11T21:03:34.4656064Z error: decoding address ranges: invalid range list offset 0x1a61 2023-01-11T21:03:34.4656889Z error: decoding address ranges: invalid range list offset 0x1a78 2023-01-11T21:03:34.4657556Z error: decoding address ranges: invalid range list offset 0x1a8f 2023-01-11T21:03:34.4658214Z error: decoding address ranges: invalid range list offset 0x1aa6 2023-01-11T21:03:34.4659230Z error: decoding address ranges: invalid range list offset 0x1b25 2023-01-11T21:03:34.4660179Z error: decoding address ranges: invalid range list offset 0x1b7b 2023-01-11T21:03:34.4661374Z error: decoding address ranges: invalid range list offset 0x1bb6 2023-01-11T21:03:34.4662365Z error: decoding address ranges: invalid range list offset 0x1bec 2023-01-11T21:03:34.4663504Z error: decoding address ranges: invalid range list offset 0x1c26 2023-01-11T21:03:34.4664670Z error: decoding address ranges: invalid range list offset 0x1c76 2023-01-11T21:03:34.4666034Z error: decoding address ranges: invalid range list offset 0x1e7d 2023-01-11T21:03:34.4667663Z error: decoding address ranges: invalid range list offset 0x21b3 2023-01-11T21:03:34.4669202Z error: decoding address ranges: invalid range list offset 0x226e 2023-01-11T21:03:34.4670644Z error: decoding address ranges: invalid range list offset 0x3e69 2023-01-11T21:03:34.4675380Z error: decoding address ranges: invalid range list offset 0x4c18 2023-01-11T21:03:34.4678587Z error: decoding address ranges: invalid range list offset 0x527f 2023-01-11T21:03:34.4680553Z error: decoding address ranges: invalid range list offset 0x5f80 2023-01-11T21:03:34.4683104Z error: decoding address ranges: invalid range list offset 0x6288 2023-01-11T21:03:34.4685590Z error: decoding address ranges: invalid range list offset 0x7ee1 2023-01-11T21:03:34.4691500Z error: decoding address ranges: invalid range list offset 0x8084 2023-01-11T21:03:34.4693939Z error: decoding address ranges: invalid range list offset 0x82d4 2023-01-11T21:03:34.4696581Z error: decoding address ranges: invalid range list offset 0x87df 2023-01-11T21:03:34.4699281Z error: decoding address ranges: invalid range list offset 0x882c 2023-01-11T21:03:34.4701256Z error: decoding address ranges: invalid range list offset 0x88a1 2023-01-11T21:03:34.4702079Z error: decoding address ranges: invalid range list offset 0x8921 2023-01-11T21:03:34.4703162Z error: decoding address ranges: invalid range list offset 0x8981 2023-01-11T21:03:34.4704222Z error: decoding address ranges: invalid range list offset 0x89f6 2023-01-11T21:03:34.4706113Z error: decoding address ranges: invalid range list offset 0x8a56 2023-01-11T21:03:34.4706497Z error: decoding address ranges: invalid range list offset 0x9643 2023-01-11T21:03:34.4710839Z error: decoding address ranges: invalid range list offset 0xa031 2023-01-11T21:03:34.4715862Z error: decoding address ranges: invalid range list offset 0xa140 2023-01-11T21:03:34.4718062Z error: decoding address ranges: invalid range list offset 0xaf07 2023-01-11T21:03:34.4723509Z error: decoding address ranges: invalid range list offset 0xb159 2023-01-11T21:03:34.4725811Z error: decoding address ranges: invalid range list offset 0xbbdd 2023-01-11T21:03:34.4729125Z error: decoding address ranges: invalid range list offset 0xc162 2023-01-11T21:03:34.4730762Z error: decoding address ranges: invalid range list offset 0xca72 2023-01-11T21:03:34.4733673Z error: decoding address ranges: invalid range list offset 0xd23f 2023-01-11T21:03:34.4737150Z error: decoding address ranges: invalid range list offset 0xd496 2023-01-11T21:03:34.4738496Z error: decoding address ranges: invalid range list offset 0xd669 2023-01-11T21:03:34.4740812Z error: decoding address ranges: invalid range list offset 0xdc22 2023-01-11T21:03:34.4743636Z error: decoding address ranges: invalid range list offset 0xdc71 2023-01-11T21:03:34.4745449Z error: decoding address ranges: invalid range list offset 0xe056 2023-01-11T21:03:34.4749432Z error: decoding address ranges: invalid range list offset 0xe429 2023-01-11T21:03:34.4752807Z error: decoding address ranges: invalid range list offset 0xe709 2023-01-11T21:03:34.4755494Z error: decoding address ranges: invalid range list offset 0xe840 2023-01-11T21:03:34.4756951Z error: decoding address ranges: invalid range list offset 0xe882 2023-01-11T21:03:34.4758813Z error: decoding address ranges: invalid range list offset 0xebba 2023-01-11T21:03:34.4762771Z error: decoding address ranges: invalid range list offset 0xef24 2023-01-11T21:03:34.4766126Z error: decoding address ranges: invalid range list offset 0xf15c 2023-01-11T21:03:34.4768695Z error: decoding address ranges: invalid range list offset 0xf203 2023-01-11T21:03:34.4771187Z error: decoding address ranges: invalid range list offset 0xf2bb 2023-01-11T21:03:34.4773286Z error: decoding address ranges: invalid range list offset 0xf76b 2023-01-11T21:03:34.4777033Z error: decoding address ranges: invalid range list offset 0xf872 2023-01-11T21:03:34.4777921Z error: decoding address ranges: invalid range list offset 0xf8bb 2023-01-11T21:03:34.4781876Z error: decoding address ranges: invalid range list offset 0xf9e4 2023-01-11T21:03:34.4784072Z error: decoding address ranges: invalid range list offset 0x10301 2023-01-11T21:03:34.4787014Z error: decoding address ranges: invalid range list offset 0x10426 2023-01-11T21:03:34.4788367Z error: decoding address ranges: invalid range list offset 0x104b2 2023-01-11T21:03:34.4790024Z error: decoding address ranges: invalid range list offset 0x11586 2023-01-11T21:03:34.4795420Z error: decoding address ranges: invalid range list offset 0x11a21 2023-01-11T21:03:34.4797508Z error: decoding address ranges: invalid range list offset 0x121ff 2023-01-11T21:03:34.4801372Z error: decoding address ranges: invalid range list offset 0x12607 2023-01-11T21:03:34.4804346Z error: decoding address ranges: invalid range list offset 0x1302f 2023-01-11T21:03:34.4807553Z error: decoding address ranges: invalid range list offset 0x13301 2023-01-11T21:03:34.4809176Z error: decoding address ranges: invalid range list offset 0x133af 2023-01-11T21:03:34.4810250Z error: decoding address ranges: invalid range list offset 0x13488 2023-01-11T21:03:34.4812667Z error: decoding address ranges: invalid range list offset 0x13974 2023-01-11T21:03:34.4816815Z error: decoding address ranges: invalid range list offset 0x13a57 2023-01-11T21:03:34.4817781Z error: decoding address ranges: invalid range list offset 0x13ab9 2023-01-11T21:03:34.4820110Z error: decoding address ranges: invalid range list offset 0x13c1a 2023-01-11T21:03:34.4823441Z error: decoding address ranges: invalid range list offset 0x13c99 2023-01-11T21:03:34.4825537Z error: decoding address ranges: invalid range list offset 0x13ef0 2023-01-11T21:03:34.4828410Z error: decoding address ranges: invalid range list offset 0x13f83 2023-01-11T21:03:34.4830025Z error: decoding address ranges: invalid range list offset 0x140f3 2023-01-11T21:03:34.4832073Z error: decoding address ranges: invalid range list offset 0x141e1 2023-01-11T21:03:34.4834795Z error: decoding address ranges: invalid range list offset 0x1442e 2023-01-11T21:03:34.4837995Z error: decoding address ranges: invalid range list offset 0x14aa8 2023-01-11T21:03:34.4841984Z error: decoding address ranges: invalid range list offset 0x15673 2023-01-11T21:03:34.4846717Z error: decoding address ranges: invalid range list offset 0x18bf6 2023-01-11T21:03:34.4856634Z error: decoding address ranges: invalid range list offset 0x19009 2023-01-11T21:03:34.4859460Z error: decoding address ranges: invalid range list offset 0x194ee 2023-01-11T21:03:34.4863367Z error: decoding address ranges: invalid range list offset 0x1c9ef 2023-01-11T21:03:34.4873121Z error: decoding address ranges: invalid range list offset 0x1ce3f 2023-01-11T21:03:34.4875590Z error: decoding address ranges: invalid range list offset 0x1cf18 2023-01-11T21:03:34.4878342Z error: decoding address ranges: invalid range list offset 0x1d103 2023-01-11T21:03:34.4881641Z error: decoding address ranges: invalid range list offset 0x1da2f 2023-01-11T21:03:34.4886096Z error: decoding address ranges: invalid range list offset 0x2312d 2023-01-11T21:03:34.4898039Z error: decoding address ranges: invalid range list offset 0x2508a 2023-01-11T21:03:34.4904122Z error: decoding address ranges: invalid range list offset 0x257f6 2023-01-11T21:03:34.4906705Z error: decoding address ranges: invalid range list offset 0x272cb 2023-01-11T21:03:34.4913092Z error: decoding address ranges: invalid range list offset 0x27ae8 2023-01-11T21:03:34.4916415Z error: decoding address ranges: invalid range list offset 0x30283 2023-01-11T21:03:34.4930140Z error: decoding address ranges: invalid range list offset 0x389b2 2023-01-11T21:03:34.4944427Z error: decoding address ranges: invalid range list offset 0x394a0 2023-01-11T21:03:34.4946984Z error: decoding address ranges: invalid range list offset 0x39903 2023-01-11T21:03:34.4950257Z error: decoding address ranges: invalid range list offset 0x3d5d9 2023-01-11T21:03:34.4959441Z error: decoding address ranges: invalid range list offset 0x3e1c7 2023-01-11T21:03:34.4962604Z error: decoding address ranges: invalid range list offset 0x3e9d0 2023-01-11T21:03:34.4965914Z error: decoding address ranges: invalid range list offset 0x40b5a 2023-01-11T21:03:34.4975394Z error: decoding address ranges: invalid range list offset 0x47c6b 2023-01-11T21:03:34.4990248Z error: decoding address ranges: invalid range list offset 0x4a364 2023-01-11T21:03:34.4997781Z error: decoding address ranges: invalid range list offset 0x50490 2023-01-11T21:03:34.5008813Z error: decoding address ranges: invalid range list offset 0x50fe7 2023-01-11T21:03:34.5011872Z error: decoding address ranges: invalid range list offset 0x5362f 2023-01-11T21:03:34.5018379Z error: decoding address ranges: invalid range list offset 0x53d79 2023-01-11T21:03:34.5020791Z error: decoding address ranges: invalid range list offset 0x5b070 2023-01-11T21:03:34.5036917Z error: decoding address ranges: invalid range list offset 0x5dd4d 2023-01-11T21:03:34.5043482Z error: decoding address ranges: invalid range list offset 0x5e5ad 2023-01-11T21:03:34.5046224Z error: decoding address ranges: invalid range list offset 0x5f058 2023-01-11T21:03:34.5049819Z error: decoding address ranges: invalid range list offset 0x61d90 2023-01-11T21:03:34.5057371Z error: decoding address ranges: invalid range list offset 0x64b74 2023-01-11T21:03:34.5071437Z error: decoding address ranges: invalid range list offset 0x6d03f 2023-01-11T21:03:34.5094317Z error: decoding address ranges: invalid range list offset 0x7466e 2023-01-11T21:03:34.5112722Z error: decoding address ranges: invalid range list offset 0x76491 2023-01-11T21:03:34.5119532Z error: decoding address ranges: invalid range list offset 0x79c86 2023-01-11T21:03:34.5133532Z error: decoding address ranges: invalid range list offset 0x81ad6 2023-01-11T21:03:34.5154503Z error: decoding address ranges: invalid range list offset 0x89601 2023-01-11T21:03:34.5171654Z error: decoding address ranges: invalid range list offset 0x89a15 2023-01-11T21:03:34.5173438Z error: decoding address ranges: invalid range list offset 0x89bba 2023-01-11T21:03:34.5176507Z error: decoding address ranges: invalid range list offset 0x89d86 2023-01-11T21:03:34.5179432Z error: decoding address ranges: invalid range list offset 0x8e6cd 2023-01-11T21:03:34.5187694Z error: decoding address ranges: invalid range list offset 0x8ea4c 2023-01-11T21:03:34.5207644Z ================== 2023-01-11T21:03:34.5208082Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:34.5208963Z  Read of size 8 at 0x7f876b681760 by main thread: 2023-01-11T21:03:34.5209505Z  #0 Sleef_expf8_u10 (libtorch_cpu.so+0xb09bdc1) 2023-01-11T21:03:34.5210334Z #1 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73c7) 2023-01-11T21:03:34.5210975Z #2 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5211479Z #3 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:34.5211923Z #4 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8dbb4e6) 2023-01-11T21:03:34.5212320Z #5 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11f0e20) 2023-01-11T21:03:34.5213074Z #6 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__log_sigmoid_forward(at::Tensor const&))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x2c6436e) 2023-01-11T21:03:34.5213972Z #7 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x2329422) 2023-01-11T21:03:34.5215123Z #8 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&), &(torch::autograd::VariableType::(anonymous namespace)::log_sigmoid_forward(c10::DispatchKeySet, at::Tensor const&))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (c10::DispatchKeySet, at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x51e8cc8) 2023-01-11T21:03:34.5216188Z #9 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x2329111) 2023-01-11T21:03:34.5216679Z #10 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11f1a63) 2023-01-11T21:03:34.5217923Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor, c10::guts::typelist::typelist >, at::Tensor (at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x3252d3e) 2023-01-11T21:03:34.5218908Z #12 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x27b8111) 2023-01-11T21:03:34.5219384Z #13 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a201f) 2023-01-11T21:03:34.5220058Z #14 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5220629Z #15 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5220988Z #16 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5221381Z #17 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5221808Z #18 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5222533Z #19 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5223118Z #20 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5223447Z #21 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5223629Z 2023-01-11T21:03:34.5223943Z  Previous write of size 8 at 0x7f876b681760 by thread T2: 2023-01-11T21:03:34.5224429Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xb0a15b0) 2023-01-11T21:03:34.5224818Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xb09bdcc) 2023-01-11T21:03:34.5225811Z #2 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73c7) 2023-01-11T21:03:34.5226717Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5227607Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5228214Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5228933Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5229484Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5229716Z 2023-01-11T21:03:34.5230086Z  Location is global 'pnt_expf8_u10' of size 8 at 0x7f876b681760 (libtorch_cpu.so+0x00000d81f760) 2023-01-11T21:03:34.5230372Z 2023-01-11T21:03:34.5230687Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:34.5231201Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5231741Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5232534Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5233363Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5234142Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5234982Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5235608Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5236675Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5237482Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5238185Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5238851Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5240176Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5241402Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5242098Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5243640Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5245174Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5246887Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5248415Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5249011Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5250186Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5251403Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5251875Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5252579Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5253147Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5253550Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5253995Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5254622Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5255459Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5256219Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5256615Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5256806Z 2023-01-11T21:03:34.5257371Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09bdc1) in Sleef_expf8_u10 2023-01-11T21:03:34.5257911Z ================== 2023-01-11T21:03:34.5258291Z ================== 2023-01-11T21:03:34.5258777Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:34.5259334Z  Read of size 8 at 0x7f876b681760 by thread T3: 2023-01-11T21:03:34.5259907Z  #0 Sleef_expf8_u10 (libtorch_cpu.so+0xb09bdc1) 2023-01-11T21:03:34.5260745Z #1 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73c7) 2023-01-11T21:03:34.5261370Z #2 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5262039Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5262445Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5262830Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5263195Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5263360Z 2023-01-11T21:03:34.5263547Z  Previous write of size 8 at 0x7f876b681760 by thread T2: 2023-01-11T21:03:34.5263864Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xb0a15b0) 2023-01-11T21:03:34.5264128Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xb09bdcc) 2023-01-11T21:03:34.5264819Z #2 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73c7) 2023-01-11T21:03:34.5265439Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5266169Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5266708Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5267146Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5267795Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5268071Z 2023-01-11T21:03:34.5268334Z  Location is global 'pnt_expf8_u10' of size 8 at 0x7f876b681760 (libtorch_cpu.so+0x00000d81f760) 2023-01-11T21:03:34.5268520Z 2023-01-11T21:03:34.5268735Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:34.5269060Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5269418Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5269965Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5270461Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5270940Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5271379Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5271739Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5272345Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5272885Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5273298Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5273679Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5274825Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5275964Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5276778Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5278108Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5279480Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5281227Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5282148Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5282556Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5283855Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5284603Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5284973Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5285404Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5285772Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5286068Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5286331Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5286622Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5287083Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5287524Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5287760Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5287891Z 2023-01-11T21:03:34.5288127Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:34.5288485Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5288849Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5289401Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5289891Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5290369Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5290808Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5291173Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5291784Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5292272Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5292684Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5293145Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5294218Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5295495Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5296231Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5297969Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5299195Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5300437Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5301655Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5302114Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5303145Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5304086Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5304485Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5305031Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5305531Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5305866Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5306219Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5306512Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5306983Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5307534Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5307770Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5307899Z 2023-01-11T21:03:34.5308278Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09bdc1) in Sleef_expf8_u10 2023-01-11T21:03:34.5308749Z ================== 2023-01-11T21:03:34.5309136Z ================== 2023-01-11T21:03:34.5309641Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:34.5310223Z  Read of size 8 at 0x7f876b681760 by thread T1: 2023-01-11T21:03:34.5310800Z  #0 Sleef_expf8_u10 (libtorch_cpu.so+0xb09bdc1) 2023-01-11T21:03:34.5312037Z #1 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73c7) 2023-01-11T21:03:34.5312817Z #2 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5313378Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5313791Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5314217Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5314686Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5314855Z 2023-01-11T21:03:34.5315035Z  Previous write of size 8 at 0x7f876b681760 by thread T2: 2023-01-11T21:03:34.5315366Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xb0a15b0) 2023-01-11T21:03:34.5315633Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xb09bdcc) 2023-01-11T21:03:34.5316278Z #2 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73c7) 2023-01-11T21:03:34.5316897Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5317445Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5317861Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5318243Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5318608Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5318772Z 2023-01-11T21:03:34.5319027Z  Location is global 'pnt_expf8_u10' of size 8 at 0x7f876b681760 (libtorch_cpu.so+0x00000d81f760) 2023-01-11T21:03:34.5319201Z 2023-01-11T21:03:34.5319415Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:34.5319754Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5320113Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5320659Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5321235Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5321883Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5322653Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5323142Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5323949Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5324665Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5325247Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5325747Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5326580Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5327290Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5327694Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5328595Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5329437Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5330423Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5331337Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5331675Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5332452Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5333347Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5333815Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5334540Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5335146Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5335553Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5335963Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5336414Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5337247Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5337958Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5338336Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5338531Z 2023-01-11T21:03:34.5338903Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:34.5339414Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5339782Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5340644Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5341414Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5342175Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5342895Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5343474Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5344486Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5345259Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5345783Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5346223Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5347324Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5348397Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5349010Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5350422Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5351658Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5353113Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5354450Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5355023Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5355934Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5356968Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5357411Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5357999Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5358439Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5358703Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5358966Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5359241Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5359716Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5360218Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5360454Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5360584Z 2023-01-11T21:03:34.5360925Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09bdc1) in Sleef_expf8_u10 2023-01-11T21:03:34.5361227Z ================== 2023-01-11T21:03:34.5361392Z ================== 2023-01-11T21:03:34.5361648Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:34.5361972Z  Read of size 8 at 0x7f876b6818a8 by thread T1: 2023-01-11T21:03:34.5362300Z  #0 Sleef_log1pf8_u10 (libtorch_cpu.so+0xb09ca91) 2023-01-11T21:03:34.5362959Z #1 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73d8) 2023-01-11T21:03:34.5363615Z #2 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5364164Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5364574Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5364964Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5365333Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5365502Z 2023-01-11T21:03:34.5365690Z  Previous write of size 8 at 0x7f876b6818a8 by thread T2: 2023-01-11T21:03:34.5366009Z  #0 disp_log1pf8_u10 (libtorch_cpu.so+0xb0a4bb0) 2023-01-11T21:03:34.5366322Z #1 Sleef_log1pf8_u10 (libtorch_cpu.so+0xb09ca9c) 2023-01-11T21:03:34.5367342Z #2 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73d8) 2023-01-11T21:03:34.5368454Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5369480Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5370208Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5370679Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5371195Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5371466Z 2023-01-11T21:03:34.5371887Z  Location is global 'pnt_log1pf8_u10' of size 8 at 0x7f876b6818a8 (libtorch_cpu.so+0x00000d81f8a8) 2023-01-11T21:03:34.5372201Z 2023-01-11T21:03:34.5372593Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:34.5373212Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5373748Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5374530Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5375060Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5375529Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5375982Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5376348Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5376975Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5377526Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5377946Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5378330Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5379103Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5379822Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5380228Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5381141Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5381992Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5382981Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5383946Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5384276Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5385052Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5385800Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5386113Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5386607Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5386976Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5387231Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5387490Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5387769Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5388249Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5388696Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5388936Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5389067Z 2023-01-11T21:03:34.5389285Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:34.5389607Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5389971Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5390601Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5391097Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5391578Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5392035Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5392395Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5392993Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5393487Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5393937Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5394337Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5395196Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5395905Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5396314Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5397249Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5398100Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5399085Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5399999Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5400335Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5401110Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5401848Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5402153Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5402579Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5402996Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5403256Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5403505Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5403796Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5404274Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5404715Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5404938Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5405065Z 2023-01-11T21:03:34.5405392Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09ca91) in Sleef_log1pf8_u10 2023-01-11T21:03:34.5405695Z ================== 2023-01-11T21:03:34.5405850Z ================== 2023-01-11T21:03:34.5406116Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:34.5406467Z  Read of size 8 at 0x7f876b6818a8 by thread T3: 2023-01-11T21:03:34.5406794Z  #0 Sleef_log1pf8_u10 (libtorch_cpu.so+0xb09ca91) 2023-01-11T21:03:34.5407435Z #1 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73d8) 2023-01-11T21:03:34.5408052Z #2 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5408619Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5409042Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5409432Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5409799Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5409947Z 2023-01-11T21:03:34.5410133Z  Previous write of size 8 at 0x7f876b6818a8 by thread T2: 2023-01-11T21:03:34.5410463Z  #0 disp_log1pf8_u10 (libtorch_cpu.so+0xb0a4bb0) 2023-01-11T21:03:34.5410730Z #1 Sleef_log1pf8_u10 (libtorch_cpu.so+0xb09ca9c) 2023-01-11T21:03:34.5411360Z #2 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73d8) 2023-01-11T21:03:34.5411977Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5412534Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5412945Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5413333Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5413731Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5413893Z 2023-01-11T21:03:34.5414133Z  Location is global 'pnt_log1pf8_u10' of size 8 at 0x7f876b6818a8 (libtorch_cpu.so+0x00000d81f8a8) 2023-01-11T21:03:34.5414325Z 2023-01-11T21:03:34.5414730Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:34.5415070Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5415430Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5415962Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5416461Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5416990Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5417451Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5417815Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5418430Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5418910Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5419328Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5419726Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5420599Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5421299Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5421708Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5422608Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5423458Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5424494Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5425389Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5425784Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5426585Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5427330Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5427632Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5428063Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5428448Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5428706Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5428956Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5429243Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5429730Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5430167Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5430388Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5430518Z 2023-01-11T21:03:34.5430735Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:34.5431073Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5431435Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5431969Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5432459Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5432941Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5433430Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5433793Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5434404Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5434936Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5435359Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5435756Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5436555Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5437262Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5437669Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5438569Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5439420Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5440399Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5441298Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5441634Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5442409Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5443185Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5443489Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5443910Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5444289Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5444546Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5444795Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5445086Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5445565Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5446028Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5446250Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5446377Z 2023-01-11T21:03:34.5446702Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09ca91) in Sleef_log1pf8_u10 2023-01-11T21:03:34.5447005Z ================== 2023-01-11T21:03:34.5447169Z ================== 2023-01-11T21:03:34.5447421Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:34.5447742Z  Read of size 8 at 0x7f876b6818a8 by main thread: 2023-01-11T21:03:34.5448068Z  #0 Sleef_log1pf8_u10 (libtorch_cpu.so+0xb09ca91) 2023-01-11T21:03:34.5448705Z #1 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73d8) 2023-01-11T21:03:34.5449326Z #2 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5449807Z #3 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:34.5450234Z #4 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8dbb4e6) 2023-01-11T21:03:34.5450631Z #5 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11f0e20) 2023-01-11T21:03:34.5451394Z #6 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__log_sigmoid_forward(at::Tensor const&))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x2c6436e) 2023-01-11T21:03:34.5452137Z #7 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x2329422) 2023-01-11T21:03:34.5452990Z #8 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&), &(torch::autograd::VariableType::(anonymous namespace)::log_sigmoid_forward(c10::DispatchKeySet, at::Tensor const&))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (c10::DispatchKeySet, at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x51e8cc8) 2023-01-11T21:03:34.5453819Z #9 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x2329111) 2023-01-11T21:03:34.5454147Z #10 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11f1a63) 2023-01-11T21:03:34.5455016Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor, c10::guts::typelist::typelist >, at::Tensor (at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x3252d3e) 2023-01-11T21:03:34.5455694Z #12 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x27b8111) 2023-01-11T21:03:34.5456086Z #13 torch::lazy::LazyOpsTest_TestLogSigmoid_Test::TestBody() (test_lazy+0x2a201f) 2023-01-11T21:03:34.5456518Z #14 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5456897Z #15 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5457143Z #16 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5457404Z #17 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5457697Z #18 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5458180Z #19 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5458611Z #20 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5458843Z #21 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5458973Z 2023-01-11T21:03:34.5459168Z  Previous write of size 8 at 0x7f876b6818a8 by thread T2: 2023-01-11T21:03:34.5459501Z  #0 disp_log1pf8_u10 (libtorch_cpu.so+0xb0a4bb0) 2023-01-11T21:03:34.5459760Z #1 Sleef_log1pf8_u10 (libtorch_cpu.so+0xb09ca9c) 2023-01-11T21:03:34.5460403Z #2 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73d8) 2023-01-11T21:03:34.5461022Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:34.5461586Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:34.5462001Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:34.5462372Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:34.5462739Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:34.5462902Z 2023-01-11T21:03:34.5463160Z  Location is global 'pnt_log1pf8_u10' of size 8 at 0x7f876b6818a8 (libtorch_cpu.so+0x00000d81f8a8) 2023-01-11T21:03:34.5463391Z 2023-01-11T21:03:34.5463614Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:34.5463939Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:34.5464299Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:34.5464844Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:34.5465331Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:34.5465810Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:34.5466266Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:34.5466645Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:34.5467261Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:34.5467754Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:34.5468167Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:34.5468560Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:34.5469332Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:34.5470039Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:34.5470431Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:34.5471340Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:34.5472195Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:34.5473188Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:34.5474134Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:34.5474454Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:34.5475333Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:34.5476071Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:34.5476387Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:34.5476814Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:34.5477198Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:34.5477445Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:34.5477709Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:34.5478002Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:34.5478483Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:34.5478907Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:34.5479141Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:34.5479269Z 2023-01-11T21:03:34.5479597Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09ca91) in Sleef_log1pf8_u10 2023-01-11T21:03:34.5479897Z ================== 2023-01-11T21:03:34.5480171Z [ OK ] LazyOpsTest.TestLogSigmoid (276 ms) 2023-01-11T21:03:34.5480505Z [ RUN ] LazyOpsTest.TestLogSigmoidForward 2023-01-11T21:03:34.5514700Z [ OK ] LazyOpsTest.TestLogSigmoidForward (9 ms) 2023-01-11T21:03:34.5515094Z [ RUN ] LazyOpsTest.TestLogsumexp 2023-01-11T21:03:34.5969016Z [ OK ] LazyOpsTest.TestLogsumexp (45 ms) 2023-01-11T21:03:34.5969407Z [ RUN ] LazyOpsTest.TestSiLU 2023-01-11T21:03:34.6001785Z [ OK ] LazyOpsTest.TestSiLU (3 ms) 2023-01-11T21:03:34.6002173Z [ RUN ] LazyOpsTest.TestSigmoid 2023-01-11T21:03:34.6034169Z [ OK ] LazyOpsTest.TestSigmoid (3 ms) 2023-01-11T21:03:34.6034485Z [ RUN ] LazyOpsTest.TestMatmul_1x1 2023-01-11T21:03:34.6050685Z [ OK ] LazyOpsTest.TestMatmul_1x1 (1 ms) 2023-01-11T21:03:34.6051039Z [ RUN ] LazyOpsTest.TestMatmul_2x1 2023-01-11T21:03:34.6089963Z [ OK ] LazyOpsTest.TestMatmul_2x1 (3 ms) 2023-01-11T21:03:34.6090293Z [ RUN ] LazyOpsTest.TestMatmul_1x2 2023-01-11T21:03:34.6147016Z [ OK ] LazyOpsTest.TestMatmul_1x2 (5 ms) 2023-01-11T21:03:34.6147564Z [ RUN ] LazyOpsTest.TestMatmul_2x2 2023-01-11T21:03:34.6185920Z [ OK ] LazyOpsTest.TestMatmul_2x2 (3 ms) 2023-01-11T21:03:34.6186229Z [ RUN ] LazyOpsTest.TestMatmulBcast 2023-01-11T21:03:34.6280817Z [ OK ] LazyOpsTest.TestMatmulBcast (9 ms) 2023-01-11T21:03:34.6281148Z [ RUN ] LazyOpsTest.TestDot 2023-01-11T21:03:34.6296368Z [ OK ] LazyOpsTest.TestDot (1 ms) 2023-01-11T21:03:34.6296694Z [ RUN ] LazyOpsTest.TestTensorDot 2023-01-11T21:03:34.6386044Z [ OK ] LazyOpsTest.TestTensorDot (8 ms) 2023-01-11T21:03:34.6386397Z [ RUN ] LazyOpsTest.TestGer 2023-01-11T21:03:34.6435408Z [ OK ] LazyOpsTest.TestGer (4 ms) 2023-01-11T21:03:34.6435767Z [ RUN ] LazyOpsTest.TestMv 2023-01-11T21:03:34.6472940Z [ OK ] LazyOpsTest.TestMv (3 ms) 2023-01-11T21:03:34.6473296Z [ RUN ] LazyOpsTest.TestMvOut 2023-01-11T21:03:34.6531358Z [ OK ] LazyOpsTest.TestMvOut (5 ms) 2023-01-11T21:03:34.6531693Z [ RUN ] LazyOpsTest.TestBatchAddBatchMatMul 2023-01-11T21:03:34.6578536Z [ OK ] LazyOpsTest.TestBatchAddBatchMatMul (4 ms) 2023-01-11T21:03:34.6579107Z [ RUN ] LazyOpsTest.TestBatchAddBatchMatMulInPlace 2023-01-11T21:03:34.6645222Z [ OK ] LazyOpsTest.TestBatchAddBatchMatMulInPlace (6 ms) 2023-01-11T21:03:34.6645596Z [ RUN ] LazyOpsTest.TestBatchMatMul 2023-01-11T21:03:34.6685316Z [ OK ] LazyOpsTest.TestBatchMatMul (3 ms) 2023-01-11T21:03:34.6685629Z [ RUN ] LazyOpsTest.TestChainMatMul 2023-01-11T21:03:34.6687828Z [W LinearAlgebra.cpp:1077] Warning: torch.chain_matmul is deprecated and will be removed in a future PyTorch release. Use torch.linalg.multi_dot instead, which accepts a list of two or more tensors rather than multiple parameters. (function operator()) 2023-01-11T21:03:34.6756548Z [ OK ] LazyOpsTest.TestChainMatMul (7 ms) 2023-01-11T21:03:34.6756888Z [ RUN ] LazyOpsTest.TestLinear 2023-01-11T21:03:34.6850657Z [ OK ] LazyOpsTest.TestLinear (9 ms) 2023-01-11T21:03:34.6851036Z [ RUN ] LazyOpsTest.TestPinverse 2023-01-11T21:03:34.7072744Z [ OK ] LazyOpsTest.TestPinverse (22 ms) 2023-01-11T21:03:34.7073140Z [ RUN ] LazyOpsTest.TestEinsumOuter 2023-01-11T21:03:34.7146050Z [ OK ] LazyOpsTest.TestEinsumOuter (7 ms) 2023-01-11T21:03:34.7146651Z [ RUN ] LazyOpsTest.TestEinsumOuterBackward 2023-01-11T21:03:34.7433674Z [ OK ] LazyOpsTest.TestEinsumOuterBackward (28 ms) 2023-01-11T21:03:34.7434172Z [ RUN ] LazyOpsTest.TestEinsumBatchMatMul 2023-01-11T21:03:34.7567124Z [ OK ] LazyOpsTest.TestEinsumBatchMatMul (13 ms) 2023-01-11T21:03:34.7567721Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerBilinear 2023-01-11T21:03:34.7794092Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerBilinear (22 ms) 2023-01-11T21:03:34.7794789Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerDiagonal 2023-01-11T21:03:34.7851967Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerDiagonal (5 ms) 2023-01-11T21:03:34.7852548Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerBatchDiagonal 2023-01-11T21:03:34.7910726Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerBatchDiagonal (5 ms) 2023-01-11T21:03:34.7911361Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerBatchPermute 2023-01-11T21:03:34.7952193Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerBatchPermute (4 ms) 2023-01-11T21:03:34.7952774Z [ RUN ] LazyOpsTest.TestEinsumPyTorchLowerRepeatedAxis 2023-01-11T21:03:34.8074033Z [ OK ] LazyOpsTest.TestEinsumPyTorchLowerRepeatedAxis (12 ms) 2023-01-11T21:03:34.8074471Z [ RUN ] LazyOpsTest.TestBilinear 2023-01-11T21:03:34.9710500Z [ OK ] LazyOpsTest.TestBilinear (163 ms) 2023-01-11T21:03:34.9711178Z [ RUN ] LazyOpsTest.TestUpsampleNearest2D 2023-01-11T21:03:34.9757399Z [ OK ] LazyOpsTest.TestUpsampleNearest2D (4 ms) 2023-01-11T21:03:34.9757781Z [ RUN ] LazyOpsTest.TestUpsampleNearest2DBackward 2023-01-11T21:03:34.9881560Z [ OK ] LazyOpsTest.TestUpsampleNearest2DBackward (12 ms) 2023-01-11T21:03:34.9881960Z [ RUN ] LazyOpsTest.TestUpsampleNearest2DWithScale 2023-01-11T21:03:34.9931736Z [ OK ] LazyOpsTest.TestUpsampleNearest2DWithScale (4 ms) 2023-01-11T21:03:34.9932170Z [ RUN ] LazyOpsTest.TestUpsampleNearest2DBackwardWithScale 2023-01-11T21:03:35.0060230Z [ OK ] LazyOpsTest.TestUpsampleNearest2DBackwardWithScale (12 ms) 2023-01-11T21:03:35.0060653Z [ RUN ] LazyOpsTest.TestUpsampleBilinear2D 2023-01-11T21:03:35.0156338Z [ OK ] LazyOpsTest.TestUpsampleBilinear2D (9 ms) 2023-01-11T21:03:35.0156798Z [ RUN ] LazyOpsTest.TestUpsampleBilinear2DBackward 2023-01-11T21:03:35.0407247Z [ OK ] LazyOpsTest.TestUpsampleBilinear2DBackward (24 ms) 2023-01-11T21:03:35.0407874Z [ RUN ] LazyOpsTest.TestAddCMul 2023-01-11T21:03:35.0449912Z [ OK ] LazyOpsTest.TestAddCMul (4 ms) 2023-01-11T21:03:35.0450477Z [ RUN ] LazyOpsTest.TestAddCDiv 2023-01-11T21:03:35.0493647Z [ OK ] LazyOpsTest.TestAddCDiv (4 ms) 2023-01-11T21:03:35.0494008Z [ RUN ] LazyOpsTest.TestAddCDivWithBroadcast 2023-01-11T21:03:35.0536418Z [ OK ] LazyOpsTest.TestAddCDivWithBroadcast (4 ms) 2023-01-11T21:03:35.0536737Z [ RUN ] LazyOpsTest.TestSize 2023-01-11T21:03:35.0538889Z [ OK ] LazyOpsTest.TestSize (0 ms) 2023-01-11T21:03:35.0539217Z [ RUN ] LazyOpsTest.TestSelect 2023-01-11T21:03:35.1608524Z [ OK ] LazyOpsTest.TestSelect (106 ms) 2023-01-11T21:03:35.1608887Z [ RUN ] LazyOpsTest.TestBernoulliScalarProb 2023-01-11T21:03:35.1649294Z [ OK ] LazyOpsTest.TestBernoulliScalarProb (4 ms) 2023-01-11T21:03:35.1649659Z [ RUN ] LazyOpsTest.TestBernoulliTensorProb 2023-01-11T21:03:35.1686618Z [ OK ] LazyOpsTest.TestBernoulliTensorProb (3 ms) 2023-01-11T21:03:35.1686990Z [ RUN ] LazyOpsTest.TestBernoulliScalarProbInPlace 2023-01-11T21:03:35.1741955Z [ OK ] LazyOpsTest.TestBernoulliScalarProbInPlace (5 ms) 2023-01-11T21:03:35.1742360Z [ RUN ] LazyOpsTest.TestBernoulliTensorProbInPlace 2023-01-11T21:03:35.1789618Z [ OK ] LazyOpsTest.TestBernoulliTensorProbInPlace (4 ms) 2023-01-11T21:03:35.1789971Z [ RUN ] LazyOpsTest.TestDropout 2023-01-11T21:03:35.1828565Z [ OK ] LazyOpsTest.TestDropout (3 ms) 2023-01-11T21:03:35.1828887Z [ RUN ] LazyOpsTest.TestDropoutInPlace 2023-01-11T21:03:35.1884353Z [ OK ] LazyOpsTest.TestDropoutInPlace (5 ms) 2023-01-11T21:03:35.1884679Z [ RUN ] LazyOpsTest.TestRandperm 2023-01-11T21:03:35.1903307Z [ OK ] LazyOpsTest.TestRandperm (1 ms) 2023-01-11T21:03:35.1903674Z [ RUN ] LazyOpsTest.TestSlice 2023-01-11T21:03:35.1994704Z [ OK ] LazyOpsTest.TestSlice (9 ms) 2023-01-11T21:03:35.1994999Z [ RUN ] LazyOpsTest.TestTake 2023-01-11T21:03:35.2009643Z [ OK ] LazyOpsTest.TestTake (1 ms) 2023-01-11T21:03:35.2009938Z [ RUN ] LazyOpsTest.TestTakeBackward 2023-01-11T21:03:35.2148608Z [ OK ] LazyOpsTest.TestTakeBackward (13 ms) 2023-01-11T21:03:35.2148953Z [ RUN ] LazyOpsTest.TestStack 2023-01-11T21:03:35.2480753Z [ OK ] LazyOpsTest.TestStack (33 ms) 2023-01-11T21:03:35.2481050Z [ RUN ] LazyOpsTest.TestCat 2023-01-11T21:03:35.2570781Z [ OK ] LazyOpsTest.TestCat (9 ms) 2023-01-11T21:03:35.2571057Z [ RUN ] LazyOpsTest.TestUnbind 2023-01-11T21:03:35.2773240Z [ OK ] LazyOpsTest.TestUnbind (20 ms) 2023-01-11T21:03:35.2773732Z [ RUN ] LazyOpsTest.TestRepeat 2023-01-11T21:03:35.2908665Z [ OK ] LazyOpsTest.TestRepeat (13 ms) 2023-01-11T21:03:35.2908963Z [ RUN ] LazyOpsTest.TestGather 2023-01-11T21:03:35.2997640Z [ OK ] LazyOpsTest.TestGather (8 ms) 2023-01-11T21:03:35.2997953Z [ RUN ] LazyOpsTest.TestScatter 2023-01-11T21:03:35.3039290Z [ OK ] LazyOpsTest.TestScatter (4 ms) 2023-01-11T21:03:35.3039582Z [ RUN ] LazyOpsTest.TestScatterR1 2023-01-11T21:03:35.3056632Z [ OK ] LazyOpsTest.TestScatterR1 (1 ms) 2023-01-11T21:03:35.3056938Z [ RUN ] LazyOpsTest.TestScatterR3 2023-01-11T21:03:35.3085288Z [ OK ] LazyOpsTest.TestScatterR3 (2 ms) 2023-01-11T21:03:35.3085626Z [ RUN ] LazyOpsTest.TestScatterBiggerSource 2023-01-11T21:03:35.3121747Z [ OK ] LazyOpsTest.TestScatterBiggerSource (3 ms) 2023-01-11T21:03:35.3122124Z [ RUN ] LazyOpsTest.TestScatterScalar 2023-01-11T21:03:35.3154020Z [ OK ] LazyOpsTest.TestScatterScalar (3 ms) 2023-01-11T21:03:35.3154631Z [ RUN ] LazyOpsTest.TestScatterReduceAdd 2023-01-11T21:03:35.3196539Z [ OK ] LazyOpsTest.TestScatterReduceAdd (4 ms) 2023-01-11T21:03:35.3196850Z [ RUN ] LazyOpsTest.TestScatterAdd 2023-01-11T21:03:35.3288178Z [ OK ] LazyOpsTest.TestScatterAdd (9 ms) 2023-01-11T21:03:35.3288526Z [ RUN ] LazyOpsTest.TestScatterAddInPlace 2023-01-11T21:03:35.3387072Z [ OK ] LazyOpsTest.TestScatterAddInPlace (9 ms) 2023-01-11T21:03:35.3387398Z [ RUN ] LazyOpsTest.TestIndexSelect 2023-01-11T21:03:35.4590912Z [ OK ] LazyOpsTest.TestIndexSelect (120 ms) 2023-01-11T21:03:35.4591302Z [ RUN ] LazyOpsTest.TestIndexSelectRank0 2023-01-11T21:03:35.4897039Z [ OK ] LazyOpsTest.TestIndexSelectRank0 (30 ms) 2023-01-11T21:03:35.4897366Z [ RUN ] LazyOpsTest.TestInverse 2023-01-11T21:03:35.4946553Z [ OK ] LazyOpsTest.TestInverse (4 ms) 2023-01-11T21:03:35.4946851Z [ RUN ] LazyOpsTest.TestIsnan 2023-01-11T21:03:35.4954310Z [ OK ] LazyOpsTest.TestIsnan (0 ms) 2023-01-11T21:03:35.4954660Z [ RUN ] LazyOpsTest.TestExpand 2023-01-11T21:03:35.4994903Z [ OK ] LazyOpsTest.TestExpand (4 ms) 2023-01-11T21:03:35.4995216Z [ RUN ] LazyOpsTest.TestExpandBack 2023-01-11T21:03:35.5034648Z [ OK ] LazyOpsTest.TestExpandBack (3 ms) 2023-01-11T21:03:35.5034952Z [ RUN ] LazyOpsTest.TestExpandAs 2023-01-11T21:03:35.5093351Z [ OK ] LazyOpsTest.TestExpandAs (5 ms) 2023-01-11T21:03:35.5093644Z [ RUN ] LazyOpsTest.TestEye 2023-01-11T21:03:35.5104712Z [ OK ] LazyOpsTest.TestEye (1 ms) 2023-01-11T21:03:35.5105047Z [ RUN ] LazyOpsTest.TestEyeWide 2023-01-11T21:03:35.5115485Z [ OK ] LazyOpsTest.TestEyeWide (1 ms) 2023-01-11T21:03:35.5115798Z [ RUN ] LazyOpsTest.TestEyeNarrow 2023-01-11T21:03:35.5126314Z [ OK ] LazyOpsTest.TestEyeNarrow (1 ms) 2023-01-11T21:03:35.5126647Z [ RUN ] LazyOpsTest.TestBroadcastTensors 2023-01-11T21:03:35.5200571Z [ OK ] LazyOpsTest.TestBroadcastTensors (7 ms) 2023-01-11T21:03:35.5200899Z [ RUN ] LazyOpsTest.TestOneIndex 2023-01-11T21:03:35.5382609Z [ OK ] LazyOpsTest.TestOneIndex (18 ms) 2023-01-11T21:03:35.5382976Z [ RUN ] LazyOpsTest.TestOneIndexTransfer 2023-01-11T21:03:35.5540592Z [ OK ] LazyOpsTest.TestOneIndexTransfer (15 ms) 2023-01-11T21:03:35.5540915Z [ RUN ] LazyOpsTest.TestNonzero 2023-01-11T21:03:35.5557211Z [ OK ] LazyOpsTest.TestNonzero (1 ms) 2023-01-11T21:03:35.5557774Z [ RUN ] LazyOpsTest.TestMaskedSelect 2023-01-11T21:03:35.5576084Z [ OK ] LazyOpsTest.TestMaskedSelect (1 ms) 2023-01-11T21:03:35.5576420Z [ RUN ] LazyOpsTest.TestMaskedScatter 2023-01-11T21:03:35.5607400Z [ OK ] LazyOpsTest.TestMaskedScatter (3 ms) 2023-01-11T21:03:35.5607753Z [ RUN ] LazyOpsTest.TestMultiIndexHeadNull 2023-01-11T21:03:35.5724875Z [ OK ] LazyOpsTest.TestMultiIndexHeadNull (11 ms) 2023-01-11T21:03:35.5725241Z [ RUN ] LazyOpsTest.TestMultiIndexMiddleNull 2023-01-11T21:03:35.5843002Z [ OK ] LazyOpsTest.TestMultiIndexMiddleNull (11 ms) 2023-01-11T21:03:35.5843355Z [ RUN ] LazyOpsTest.TestMultiIndexTailNull 2023-01-11T21:03:35.5963372Z [ OK ] LazyOpsTest.TestMultiIndexTailNull (12 ms) 2023-01-11T21:03:35.5963752Z [ RUN ] LazyOpsTest.TestMultiIndexMiddleBroadcast 2023-01-11T21:03:35.6084481Z [ OK ] LazyOpsTest.TestMultiIndexMiddleBroadcast (12 ms) 2023-01-11T21:03:35.6084872Z [ RUN ] LazyOpsTest.TestMultiIndexTailBroadcast 2023-01-11T21:03:35.6187703Z [ OK ] LazyOpsTest.TestMultiIndexTailBroadcast (10 ms) 2023-01-11T21:03:35.6188049Z [ RUN ] LazyOpsTest.TestMaskIndex 2023-01-11T21:03:35.6247249Z [ OK ] LazyOpsTest.TestMaskIndex (5 ms) 2023-01-11T21:03:35.6247567Z [ RUN ] LazyOpsTest.TestOneIndexPut 2023-01-11T21:03:35.6284046Z ================== 2023-01-11T21:03:35.6284602Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.6285160Z  Write of size 4 at 0x7b9400018f08 by thread T3: 2023-01-11T21:03:35.6289167Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.6291615Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6292288Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6293159Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6294197Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6295641Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.6296375Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.6296967Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.6297499Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.6297733Z 2023-01-11T21:03:35.6298059Z  Previous write of size 4 at 0x7b9400018f08 by main thread: 2023-01-11T21:03:35.6301731Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.6304314Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6305196Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6306134Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6307187Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6308082Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.6308816Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.6309616Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.6310423Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.6312267Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.6314214Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.6315081Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.6316993Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.6318919Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.6319695Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.6321589Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6323456Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6325504Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6327476Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6328178Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6328982Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6329670Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6330118Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6330581Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6331095Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6331982Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6332834Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6333260Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6333490Z 2023-01-11T21:03:35.6333926Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.6334663Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.6335111Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.6335658Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.6336351Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.6337562Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.6338837Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.6339779Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.6340684Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.6341800Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.6344286Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.6347717Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.6349352Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.6351893Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.6354331Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.6355255Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.6356849Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.6358340Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.6359092Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.6361002Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6362814Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6364794Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6366706Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6367397Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6368175Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6368869Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6369318Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6369789Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6370313Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6371193Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6371970Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6372345Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6372570Z 2023-01-11T21:03:35.6372993Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.6373608Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.6374236Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.6375350Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.6376373Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.6377243Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.6378057Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.6378696Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.6379842Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.6380733Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.6381472Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.6382263Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.6383676Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.6384951Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.6385671Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.6387312Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.6388851Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.6390634Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.6392297Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.6392941Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.6394360Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.6395701Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.6396271Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.6397007Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6397676Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6398197Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6398668Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6399148Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6399925Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6400616Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6401032Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6401275Z 2023-01-11T21:03:35.6404474Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.6406251Z ================== 2023-01-11T21:03:35.6406496Z ================== 2023-01-11T21:03:35.6406923Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.6407465Z  Write of size 4 at 0x7b9400017180 by thread T1: 2023-01-11T21:03:35.6411730Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.6414884Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6415755Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6416803Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6417854Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6418869Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.6419607Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.6420291Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.6420951Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.6421254Z 2023-01-11T21:03:35.6421612Z  Previous write of size 4 at 0x7b9400017180 by main thread: 2023-01-11T21:03:35.6425721Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.6428623Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6429609Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6430521Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6431536Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6432396Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.6433111Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.6433860Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.6434812Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.6436623Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.6438315Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.6439079Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.6440860Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.6442607Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.6443377Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.6445080Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6446982Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6449084Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6450964Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6451626Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6452434Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6453130Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6453572Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6454044Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6454697Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6455579Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6456358Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6456795Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6457017Z 2023-01-11T21:03:35.6457451Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.6458012Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.6458481Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.6459018Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.6459684Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.6460878Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.6462304Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.6463306Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.6464279Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.6465347Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.6467897Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.6471199Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.6472758Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.6475175Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.6477359Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.6478102Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.6479648Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.6481122Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.6481854Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.6483681Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6485580Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6487661Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6489523Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6490136Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6490825Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6491378Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6491741Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6492123Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6492776Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6493424Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6494020Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6494506Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6494703Z 2023-01-11T21:03:35.6495081Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.6495575Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.6496327Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.6497321Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.6497869Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.6498351Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.6498806Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.6499170Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.6499787Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.6500261Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.6500675Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.6501065Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.6501838Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.6502544Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.6502943Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.6503981Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.6505202Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.6507000Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.6508669Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.6509247Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.6510666Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.6511942Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.6512466Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.6513245Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6513931Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6514369Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6514880Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6515377Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6516251Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6516975Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6517341Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6517536Z 2023-01-11T21:03:35.6520702Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.6522571Z ================== 2023-01-11T21:03:35.6522841Z ================== 2023-01-11T21:03:35.6523315Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.6523878Z  Write of size 4 at 0x7b9400018530 by thread T2: 2023-01-11T21:03:35.6528269Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.6529928Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6530413Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6530927Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6531498Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6532058Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.6532468Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.6532850Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.6533201Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.6533367Z 2023-01-11T21:03:35.6533556Z  Previous write of size 4 at 0x7b9400018530 by main thread: 2023-01-11T21:03:35.6536222Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.6537828Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6538307Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6538813Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6539373Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6539854Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.6540258Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.6540698Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.6541143Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.6542145Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.6543169Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.6543793Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.6545433Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.6547038Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.6547820Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.6549667Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6551446Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6553315Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6555208Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6555884Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6556625Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6557286Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6557794Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6558283Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6558811Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6559647Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6560426Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6560816Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6561048Z 2023-01-11T21:03:35.6561478Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.6562088Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.6562551Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.6563072Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.6563752Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.6565030Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.6566304Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.6567294Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.6568271Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.6569041Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.6570432Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.6572200Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.6573143Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.6574662Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.6576046Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.6576499Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.6577376Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.6578214Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.6578615Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.6579642Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6580700Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6581831Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6582857Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6583241Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6583860Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6584325Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6584651Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6585074Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6585573Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6586459Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6587211Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6587635Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6587868Z 2023-01-11T21:03:35.6588290Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.6588874Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.6589500Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.6590140Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.6590637Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.6591116Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.6591564Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.6591916Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.6592590Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.6593086Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.6609299Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.6609978Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.6611260Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.6612571Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.6613313Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.6615095Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.6616662Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.6617920Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.6618819Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.6619140Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.6619918Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.6620724Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.6621114Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.6621743Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6622353Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6622774Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6623188Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6623651Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6624433Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6625129Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6625514Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6625721Z 2023-01-11T21:03:35.6628744Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.6630402Z ================== 2023-01-11T21:03:35.6630669Z ================== 2023-01-11T21:03:35.6631116Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.6631676Z  Write of size 4 at 0x7b9400018538 by thread T2: 2023-01-11T21:03:35.6635935Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.6638895Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6639839Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6640705Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6641686Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6642503Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.6642947Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.6643479Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.6644131Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.6644389Z 2023-01-11T21:03:35.6644667Z  Previous write of size 4 at 0x7b9400018538 by main thread: 2023-01-11T21:03:35.6647387Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.6649019Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6649496Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6650002Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6650575Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6651099Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.6651500Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.6651928Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.6652371Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.6653396Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.6654473Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.6654887Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.6655895Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.6656839Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.6657240Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.6658282Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6659293Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6660454Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6661476Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6661855Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6662338Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6662706Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6663024Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6663428Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6663886Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6664613Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6665232Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6665608Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6665813Z 2023-01-11T21:03:35.6666220Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.6666759Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.6667180Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.6667659Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.6668272Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.6669304Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.6670385Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.6671242Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.6672088Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.6673076Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.6675465Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.6677738Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.6678679Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.6680082Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.6681653Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.6682297Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.6683318Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.6684158Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.6684543Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.6685622Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6686643Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6687745Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6688770Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6689160Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6689605Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6689973Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6690231Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6690493Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6690784Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6691249Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6691720Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6691956Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6692087Z 2023-01-11T21:03:35.6692332Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.6692661Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.6693023Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.6693576Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.6694069Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.6694824Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.6695363Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.6695729Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.6696348Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.6696837Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.6697252Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.6697635Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.6698410Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.6699118Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.6699526Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.6700420Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.6701260Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.6702384Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.6703697Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.6704245Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.6705583Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.6706592Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.6707095Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.6707728Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6708251Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6708599Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6708947Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6709354Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6710079Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6710887Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6711211Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6711342Z 2023-01-11T21:03:35.6713161Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.6715117Z ================== 2023-01-11T21:03:35.6715414Z ================== 2023-01-11T21:03:35.6715929Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.6716514Z  Write of size 4 at 0x7b9400017188 by thread T1: 2023-01-11T21:03:35.6720846Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.6723326Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6724213Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6725144Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6726198Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6726808Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.6727218Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.6727603Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.6727972Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.6728137Z 2023-01-11T21:03:35.6728320Z  Previous write of size 4 at 0x7b9400017188 by main thread: 2023-01-11T21:03:35.6730640Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.6732301Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6732784Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6733325Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6733895Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6734504Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.6734901Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.6735344Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.6735795Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.6736797Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.6737755Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.6738180Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.6739171Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.6740192Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.6740611Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.6741701Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6742723Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6743827Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6745203Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6745737Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6746434Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6747077Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6747490Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6747913Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6748282Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6749070Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6749603Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6749948Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6750132Z 2023-01-11T21:03:35.6750371Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.6750827Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.6751095Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.6751440Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.6751911Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.6752921Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.6754055Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.6755186Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.6756158Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.6757122Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.6759674Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.6762655Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.6764262Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.6766070Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.6767657Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.6768115Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.6768987Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.6769834Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.6770230Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.6771265Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6772279Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6773391Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6774600Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6774990Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6775416Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6775798Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6776054Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6776374Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6776657Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6777137Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6777571Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6777804Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6777918Z 2023-01-11T21:03:35.6778159Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.6778501Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.6778859Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.6779407Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.6779885Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.6780363Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.6780814Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.6781178Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.6781789Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.6782263Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.6782675Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.6783063Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.6783829Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.6784576Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.6784980Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.6786310Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.6787468Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.6788813Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.6790202Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.6790679Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.6791772Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.6792740Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.6793121Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.6793691Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6794330Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6794846Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6795338Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6795850Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6796774Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6797457Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6797835Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6798022Z 2023-01-11T21:03:35.6801173Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.6802985Z ================== 2023-01-11T21:03:35.6803926Z ================== 2023-01-11T21:03:35.6804394Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.6804973Z  Write of size 4 at 0x7b9400018f10 by thread T3: 2023-01-11T21:03:35.6808433Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.6810044Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6810523Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6811023Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6811596Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6812192Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.6812600Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.6812981Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.6813346Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.6813497Z 2023-01-11T21:03:35.6813689Z  Previous write of size 4 at 0x7b9400018f10 by main thread: 2023-01-11T21:03:35.6816174Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.6817807Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6818291Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6818801Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6819367Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6819853Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.6820242Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.6820678Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.6821127Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.6822132Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.6823131Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.6823547Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.6824584Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.6825539Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.6825999Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.6827440Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6828955Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6830763Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6832284Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6832793Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6833466Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6834144Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6834615Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6835056Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6835568Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6836393Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6837134Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6837515Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6837737Z 2023-01-11T21:03:35.6838181Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.6838735Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.6839152Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.6839703Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.6840363Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.6841469Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.6842624Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.6843490Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.6844446Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.6845392Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.6847402Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.6849251Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.6850153Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.6851488Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.6852844Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.6853295Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.6854168Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.6855250Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.6855717Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.6856741Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6857748Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6858890Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6859936Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6860306Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6860739Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6861120Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6861377Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6861624Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6861911Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6862391Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6862828Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6863046Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6863177Z 2023-01-11T21:03:35.6863416Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.6863754Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.6864114Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.6864649Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.6865174Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.6865656Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.6866106Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.6866467Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.6867088Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.6867570Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.6868010Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.6868402Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.6869492Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.6870638Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.6871238Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.6872690Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.6874218Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.6875938Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.6877532Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.6878110Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.6879426Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.6880669Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.6881185Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.6881926Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6882636Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6883058Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6883470Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6883940Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6884765Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6885504Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6885887Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6886121Z 2023-01-11T21:03:35.6888971Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.6890778Z ================== 2023-01-11T21:03:35.6891033Z ================== 2023-01-11T21:03:35.6891548Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.6892103Z  Write of size 4 at 0x7b940001853c by thread T2: 2023-01-11T21:03:35.6896452Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.6898146Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6898633Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6899190Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6899765Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6900316Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.6900727Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.6901098Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.6901462Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.6901626Z 2023-01-11T21:03:35.6901822Z  Previous write of size 4 at 0x7b940001853c by main thread: 2023-01-11T21:03:35.6904121Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.6905718Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6906227Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6906730Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6907297Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6907775Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.6908173Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.6908658Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.6909105Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.6910109Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.6911066Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.6911483Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.6912484Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.6913437Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.6913853Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.6914984Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6916027Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6917772Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6919577Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6920254Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6920982Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6921615Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6922066Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6922530Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6923057Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6923934Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6924746Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6925075Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6925267Z 2023-01-11T21:03:35.6925636Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.6926218Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.6926656Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.6927167Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.6927823Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.6928942Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.6930225Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.6931123Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.6932020Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.6932996Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.6935566Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.6938563Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.6940070Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.6942390Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.6944537Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.6944995Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.6945911Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.6946758Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.6947147Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.6948195Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.6949201Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.6950308Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.6951331Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.6951756Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.6952195Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6952565Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6952824Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6953082Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6953372Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6953839Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6954279Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6954517Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6954716Z 2023-01-11T21:03:35.6954960Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.6955286Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.6955680Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.6956232Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.6956728Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.6957207Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.6957644Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.6958010Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.6958623Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.6959114Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.6959527Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.6959911Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.6960684Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.6961390Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.6961795Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.6962728Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.6963560Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.6964568Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.6965575Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.6966055Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.6967222Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.6968487Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.6968977Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.6969623Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.6970206Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.6970644Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.6971114Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.6971603Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.6972469Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.6973261Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.6973683Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.6973917Z 2023-01-11T21:03:35.6977033Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.6978951Z ================== 2023-01-11T21:03:35.6979215Z ================== 2023-01-11T21:03:35.6979654Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.6980214Z  Write of size 4 at 0x7b940001718c by thread T1: 2023-01-11T21:03:35.6984273Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.6986908Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6987508Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6988024Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6988592Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6989153Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.6989568Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.6989954Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.6990322Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.6990544Z 2023-01-11T21:03:35.6990738Z  Previous write of size 4 at 0x7b940001718c by main thread: 2023-01-11T21:03:35.6993097Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.6994802Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.6995289Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.6995799Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.6996377Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.6996856Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.6997244Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.6997682Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.6998135Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.6999138Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7000097Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7000559Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7001551Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7002501Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7002949Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7003983Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7004991Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7006106Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7007117Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7007500Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7007921Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7008298Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7008588Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7008850Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7009125Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7009737Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7010269Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7010605Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7010785Z 2023-01-11T21:03:35.7011158Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7011715Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7012177Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7012580Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7013185Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7014305Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7015537Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7016418Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7017267Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7018233Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7020432Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7023195Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7024403Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7026428Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7028469Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7029198Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7030732Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7032054Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7032641Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7034054Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7035682Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7037312Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7038912Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7039466Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7040085Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7040620Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7040986Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7041371Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7041804Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7042515Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7043158Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7043491Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7043672Z 2023-01-11T21:03:35.7044053Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.7044597Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7045121Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7045933Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7046646Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7047333Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7048001Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7048546Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7049513Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7050236Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7050933Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7051537Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7052682Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7053762Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7054488Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7055756Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7056974Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7058612Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7060155Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7060715Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7062032Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7063360Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7063868Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7064610Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7065263Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7065703Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7066122Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7066615Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7067435Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7068165Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7068532Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7068747Z 2023-01-11T21:03:35.7071745Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7073455Z ================== 2023-01-11T21:03:35.7073731Z ================== 2023-01-11T21:03:35.7074184Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7074751Z  Write of size 4 at 0x7b9400018f14 by thread T3: 2023-01-11T21:03:35.7078804Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.7081294Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7081793Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7082307Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7082882Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7083441Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7083856Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7084281Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7084650Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7084817Z 2023-01-11T21:03:35.7085015Z  Previous write of size 4 at 0x7b9400018f14 by main thread: 2023-01-11T21:03:35.7087300Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.7088929Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7089396Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7089908Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7090480Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7091001Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7091407Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7091851Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.7092287Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7093330Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7094292Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7094937Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7095933Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7096885Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7097300Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7098330Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7099333Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7100490Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7101499Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7101915Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7102355Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7102734Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7102978Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7103238Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7103528Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7104005Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7104431Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7104669Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7104797Z 2023-01-11T21:03:35.7105089Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7105531Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7105930Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7106469Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7107054Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7108020Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7109204Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7110019Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7110949Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7112038Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7114532Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7117319Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7118816Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7121133Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7123429Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7124254Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7125822Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7127253Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7127884Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7129812Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7131591Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7133244Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7134277Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7134875Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7135317Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7135699Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7135945Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7136208Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7136499Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7136976Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7137470Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7137707Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7137836Z 2023-01-11T21:03:35.7138083Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7138408Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7138772Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7139320Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7139815Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7140338Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7140793Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7141145Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7141758Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7142244Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7142658Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7143054Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7143820Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7144512Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7144904Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7145803Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7146650Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7147664Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7148583Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7148909Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7149707Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7150709Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7151202Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7151890Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7152585Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7152938Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7153367Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7153843Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7154698Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7155429Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7155801Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7156008Z 2023-01-11T21:03:35.7158865Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7160574Z ================== 2023-01-11T21:03:35.7160933Z ================== 2023-01-11T21:03:35.7161420Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7161929Z  Write of size 4 at 0x7b9400018540 by thread T2: 2023-01-11T21:03:35.7165944Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7168670Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7169493Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7170363Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7171325Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7172187Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7172822Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7173443Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7174056Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7174427Z 2023-01-11T21:03:35.7174752Z  Previous write of size 4 at 0x7b9400018540 by main thread: 2023-01-11T21:03:35.7177137Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7178854Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7179334Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7179888Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7180465Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7180950Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7181355Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7181784Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.7182240Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7183239Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7184188Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7184608Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7185607Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7186588Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7186780Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7187635Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7187881Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7188737Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7188948Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7189112Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7189366Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7189485Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7189607Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7189727Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7189874Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7190183Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7190302Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7190395Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7190401Z 2023-01-11T21:03:35.7190641Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7190808Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7190932Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7191094Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7191299Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7191738Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7192008Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7192298Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7192565Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7192884Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7193970Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7194675Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7194978Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7196043Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7196344Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7196523Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7197207Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7197387Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7197640Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7198796Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7199193Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7200626Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7201058Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7201354Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7201833Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7202015Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7202212Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7202478Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7202716Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7203221Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7203418Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7203569Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7203578Z 2023-01-11T21:03:35.7203955Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.7204237Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7204585Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7205018Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7205268Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7205688Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7205923Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7206243Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7206924Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7207284Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7207596Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7207913Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7208900Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7209162Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7209536Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7210624Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7210963Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7212080Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7212378Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7212605Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7213372Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7213615Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7213873Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7214292Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7214588Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7214787Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7214984Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7215231Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7215821Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7216029Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7216154Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7216183Z 2023-01-11T21:03:35.7219143Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7219267Z ================== 2023-01-11T21:03:35.7219375Z ================== 2023-01-11T21:03:35.7219634Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7219879Z  Write of size 4 at 0x7b9400017190 by thread T1: 2023-01-11T21:03:35.7223199Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7223486Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7223712Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7223998Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7224284Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7224607Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7224747Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7224973Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7225109Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7225117Z 2023-01-11T21:03:35.7225306Z  Previous write of size 4 at 0x7b9400017190 by main thread: 2023-01-11T21:03:35.7227481Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7227740Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7227958Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7228235Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7228522Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7228719Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7228920Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7229145Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.7229354Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7230164Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7230379Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7230581Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7231388Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7231605Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7231808Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7232614Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7232858Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7233714Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7233951Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7234114Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7234367Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7234483Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7234680Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7234804Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7234956Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7235301Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7235421Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7235517Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7235523Z 2023-01-11T21:03:35.7235748Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7235903Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7236027Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7236188Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7236395Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7236837Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7237105Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7237368Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7237637Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7237963Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7239041Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7239734Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7240037Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7241074Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7241350Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7241561Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7242546Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7242887Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7243176Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7244418Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7244855Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7246132Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7246467Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7246737Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7247202Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7247408Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7247625Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7247841Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7248105Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7248670Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7248852Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7248998Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7249005Z 2023-01-11T21:03:35.7249346Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.7249614Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7249977Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7250483Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7250831Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7251240Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7251430Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7251724Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7252396Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7252698Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7253004Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7253313Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7254076Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7254302Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7254748Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7255769Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7256092Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7257342Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7257755Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7258014Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7259156Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7259412Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7259602Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7259964Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7260225Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7260355Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7260504Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7260667Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7261022Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7261144Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7261287Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7261297Z 2023-01-11T21:03:35.7264119Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7264258Z ================== 2023-01-11T21:03:35.7264379Z ================== 2023-01-11T21:03:35.7264708Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7264945Z  Write of size 4 at 0x7b9400018f18 by thread T3: 2023-01-11T21:03:35.7267119Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7267429Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7267657Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7267967Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7268256Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7268527Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7268673Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7268897Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7269037Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7269043Z 2023-01-11T21:03:35.7269233Z  Previous write of size 4 at 0x7b9400018f18 by main thread: 2023-01-11T21:03:35.7271381Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7271642Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7271895Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7272174Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7272465Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7272656Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7272859Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7273111Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.7273325Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7274111Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7274330Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7274528Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7275440Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7275646Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7275851Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7276661Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7276941Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7277828Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7278039Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7278209Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7278464Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7278580Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7278699Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7278823Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7278973Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7279281Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7279402Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7279496Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7279502Z 2023-01-11T21:03:35.7279727Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7279884Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7280009Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7280168Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7280373Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7280812Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7281109Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7281372Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7281638Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7281960Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7283073Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7283695Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7284000Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7285037Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7285335Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7285515Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7286232Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7286413Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7286617Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7287435Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7287678Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7288585Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7288857Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7289111Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7289405Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7289580Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7289773Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7289966Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7290198Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7290651Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7290786Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7290892Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7290901Z 2023-01-11T21:03:35.7291242Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7291580Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7291888Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7292324Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7292571Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7293055Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7293307Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7293662Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7294284Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7294709Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7295008Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7295311Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7296078Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7296347Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7296691Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7297929Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7298274Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7299587Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7299879Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7300112Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7301124Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7301357Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7301575Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7301905Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7302024Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7302206Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7302395Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7302641Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7303170Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7303362Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7303515Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7303524Z 2023-01-11T21:03:35.7306392Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7306599Z ================== 2023-01-11T21:03:35.7306716Z ================== 2023-01-11T21:03:35.7307003Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7307228Z  Write of size 4 at 0x7b9400018544 by thread T2: 2023-01-11T21:03:35.7311034Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:35.7311484Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7311864Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7312349Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7312848Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7313324Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7313584Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7313964Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7314209Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7314270Z 2023-01-11T21:03:35.7314678Z  Previous write of size 4 at 0x7b9400018544 by main thread: 2023-01-11T21:03:35.7318453Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:35.7318717Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7318941Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7319225Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7319514Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7319707Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7319911Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7320138Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.7320352Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7321137Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7321395Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7321584Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7322381Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7322613Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7322818Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7323630Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7323873Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7324745Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7324960Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7325123Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7325375Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7325507Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7325627Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7325749Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7325899Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7326209Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7326329Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7326421Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7326427Z 2023-01-11T21:03:35.7326651Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7326816Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7326942Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7327088Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7327321Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7327768Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7328033Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7328298Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7328563Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7328900Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7329967Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7330618Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7330936Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7331981Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7332260Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7332434Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7333116Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7333296Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7333500Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7334314Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7334820Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7335732Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7335945Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7336108Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7336365Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7336483Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7336608Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7336728Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7336879Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7337194Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7337316Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7337409Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7337415Z 2023-01-11T21:03:35.7337618Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.7337784Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7338002Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7338320Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7338492Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7338783Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7338934Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7339126Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7339562Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7339789Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7339974Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7340168Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7340764Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7340932Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7341160Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7341831Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7342040Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7342805Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7342984Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7343126Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7343732Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7343905Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7344056Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7344310Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7344427Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7344546Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7344664Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7344810Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7345118Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7345225Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7345316Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7345347Z 2023-01-11T21:03:35.7347736Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7347807Z ================== 2023-01-11T21:03:35.7347859Z ================== 2023-01-11T21:03:35.7348029Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7348201Z  Write of size 4 at 0x7b9400017194 by thread T1: 2023-01-11T21:03:35.7350355Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:35.7350659Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7350882Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7351163Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7351446Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7351716Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7351886Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7352109Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7352233Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7352251Z 2023-01-11T21:03:35.7352423Z  Previous write of size 4 at 0x7b9400017194 by main thread: 2023-01-11T21:03:35.7354642Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:35.7354905Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7355130Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7355407Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7355693Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7355923Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7356127Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7356352Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.7356564Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7357370Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7357585Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7357787Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7358579Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7358785Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7358991Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7359825Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7360093Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7360953Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7361164Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7361358Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7361616Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7361733Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7361855Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7361977Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7362127Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7362441Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7362560Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7362642Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7362648Z 2023-01-11T21:03:35.7362874Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7363110Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7363280Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7363443Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7363650Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7364098Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7364364Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7364625Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7364889Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7365254Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7366367Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7366995Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7367303Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7368338Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7368613Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7368819Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7369504Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7369682Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7369888Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7370719Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7370964Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7371834Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7372048Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7372218Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7372475Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7372591Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7372711Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7372818Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7372964Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7373272Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7373419Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7373514Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7373520Z 2023-01-11T21:03:35.7373734Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.7373901Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7374119Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7374589Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7374784Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7375141Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7375292Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7375482Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7375896Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7376118Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7376294Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7376490Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7377064Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7377226Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7377438Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7378121Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7378329Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7379134Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7379310Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7379452Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7380091Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7380238Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7380387Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7380641Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7380759Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7380881Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7381002Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7381149Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7381458Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7381562Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7381654Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7381660Z 2023-01-11T21:03:35.7383316Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7383429Z ================== 2023-01-11T21:03:35.7383480Z ================== 2023-01-11T21:03:35.7383648Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7383822Z  Write of size 4 at 0x7b9400018f1c by thread T3: 2023-01-11T21:03:35.7385978Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:35.7386252Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7386472Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7386754Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7387042Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7387306Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7387446Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7387655Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7387794Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7387800Z 2023-01-11T21:03:35.7387988Z  Previous write of size 4 at 0x7b9400018f1c by main thread: 2023-01-11T21:03:35.7390159Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:35.7390444Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7390667Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7390972Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7391257Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7391447Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7391646Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7391871Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.7392084Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7392863Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7393079Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7393276Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7394058Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7394288Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7394489Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7395409Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7395655Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7396511Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7396835Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7397097Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7397482Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7397649Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7397847Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7398052Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7398281Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7398777Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7398963Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7399100Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7399161Z 2023-01-11T21:03:35.7399513Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7399700Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7399827Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7400026Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7400281Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7400902Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7401333Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7401809Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7402226Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7402753Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7404631Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7405765Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7406320Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7408296Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7408753Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7409069Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7410365Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7410691Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7411061Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7412399Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7412817Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7414310Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7414863Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7415166Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7415621Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7415822Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7416099Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7416305Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7416556Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7417115Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7417337Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7417507Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7417521Z 2023-01-11T21:03:35.7417938Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7418173Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7418539Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7418898Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7419115Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7419448Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7419603Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7419863Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7420426Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7420777Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7421087Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7421433Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7422543Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7422850Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7423281Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7424535Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7424929Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7426349Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7426667Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7426935Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7428086Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7428340Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7428625Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7429097Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7429223Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7429341Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7429461Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7429647Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7429958Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7430065Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7430158Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7430166Z 2023-01-11T21:03:35.7431878Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7431969Z ================== 2023-01-11T21:03:35.7432022Z ================== 2023-01-11T21:03:35.7432190Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7432365Z  Write of size 4 at 0x7b9400017b58 by thread T2: 2023-01-11T21:03:35.7434517Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.7434862Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7435085Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7435368Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7435655Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7435958Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7436101Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7436325Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7436450Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7436456Z 2023-01-11T21:03:35.7436646Z  Previous write of size 4 at 0x7b9400017b58 by thread T3: 2023-01-11T21:03:35.7438846Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.7439108Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7439328Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7439606Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7439896Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7440160Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7440304Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7440528Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7440662Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7440694Z 2023-01-11T21:03:35.7440899Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7441065Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7441188Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7441350Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7441555Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7441996Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7442262Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7442550Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7442818Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7443141Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7444218Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7444840Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7445142Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7446230Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7446503Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7446679Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7447360Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7447540Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7447744Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7448553Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7448808Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7449658Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7449893Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7450055Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7450312Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7450430Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7450553Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7450699Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7450835Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7451148Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7451266Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7451361Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7451366Z 2023-01-11T21:03:35.7451578Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.7451749Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7451971Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7452287Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7452464Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7452756Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7452912Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7453104Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7453511Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7453732Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7453917Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7454114Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7454941Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7455108Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7455334Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7456061Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7456273Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7457040Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7457222Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7457366Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7457975Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7458126Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7458275Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7458529Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7458645Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7458765Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7458885Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7459072Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7459385Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7459504Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7459585Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7459604Z 2023-01-11T21:03:35.7459806Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7459973Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7460193Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7460510Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7460684Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7461010Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7461164Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7461354Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7461759Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7461981Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7462166Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7462363Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7462923Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7463090Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7463317Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7463975Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7464210Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7464977Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7465167Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7465299Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7465948Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7466099Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7466239Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7466490Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7466605Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7466723Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7466845Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7466992Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7467301Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7467418Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7467514Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7467520Z 2023-01-11T21:03:35.7469161Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7469259Z ================== 2023-01-11T21:03:35.7469325Z ================== 2023-01-11T21:03:35.7469496Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7469674Z  Write of size 4 at 0x7b9400017b58 by thread T1: 2023-01-11T21:03:35.7471833Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.7472097Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7472317Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7472604Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7472892Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7473157Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7473300Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7473524Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7473663Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7473669Z 2023-01-11T21:03:35.7473851Z  Previous write of size 4 at 0x7b9400017b58 by thread T3: 2023-01-11T21:03:35.7476067Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.7476361Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7476615Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7476896Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7477187Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7477450Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7500034Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7500399Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7500530Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7500539Z 2023-01-11T21:03:35.7500801Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7500979Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7501109Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7501274Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7501486Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7501943Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7502214Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7502484Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7502881Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7503216Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7504347Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7505001Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7505319Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7506421Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7506699Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7506909Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7507598Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7507782Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7507996Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7508834Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7509084Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7509955Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7510174Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7510344Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7510603Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7510724Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7510847Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7510956Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7511136Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7511452Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7511575Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7511672Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7511679Z 2023-01-11T21:03:35.7511900Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.7512072Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7512296Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7512616Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7512795Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7513119Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7513280Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7513473Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7513881Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7514103Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7514279Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7514471Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7515117Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7515290Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7515523Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7516195Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7516443Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7517363Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7517682Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7517948Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7518644Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7518816Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7518990Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7519249Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7519372Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7519496Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7519624Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7519776Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7520108Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7520218Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7520317Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7520325Z 2023-01-11T21:03:35.7520561Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7520752Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7521037Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7527017Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7527217Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7527513Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7527709Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7527897Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7528309Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7528525Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7528709Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7528906Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7529503Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7529660Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7529881Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7530553Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7530758Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7531522Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7531691Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7531824Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7532429Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7532599Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7532742Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7532988Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7533089Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7533200Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7533315Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7533457Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7533798Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7533914Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7533998Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7534004Z 2023-01-11T21:03:35.7535805Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7535871Z ================== 2023-01-11T21:03:35.7535933Z ================== 2023-01-11T21:03:35.7536095Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7536263Z  Write of size 4 at 0x7b9400017b60 by thread T2: 2023-01-11T21:03:35.7538543Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.7538918Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7539155Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7539560Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7539867Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7540245Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7540453Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7540775Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7540966Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7540975Z 2023-01-11T21:03:35.7541264Z  Previous write of size 4 at 0x7b9400017b60 by thread T3: 2023-01-11T21:03:35.7544582Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.7544921Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7545264Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7545650Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7546157Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7546531Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7546750Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7547087Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7547247Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7547255Z 2023-01-11T21:03:35.7547535Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7547700Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7547866Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7548024Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7548223Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7548781Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7549184Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7549489Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7549808Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7550318Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7552029Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7553110Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7553548Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7555221Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7555667Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7555927Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7556933Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7557218Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7557541Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7558787Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7559123Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7560075Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7560294Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7560455Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7560711Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7560828Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7560949Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7561068Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7561215Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7561528Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7561646Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7561741Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7561749Z 2023-01-11T21:03:35.7561974Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.7562141Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7562361Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7562676Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7562848Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7563142Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7563325Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7563518Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7563929Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7564145Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7564327Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7564521Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7565115Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7565278Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7565504Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7566169Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7566379Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7567145Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7567336Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7567465Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7568093Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7568268Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7568417Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7568658Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7568771Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7568889Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7569011Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7569158Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7569500Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7569622Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7569715Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7569722Z 2023-01-11T21:03:35.7569931Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7570097Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7570302Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7570618Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7570793Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7571086Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7571239Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7571427Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7571831Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7572048Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7572235Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7572431Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7572990Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7573181Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7573405Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7574073Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7574310Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7575515Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7575771Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7575974Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7576871Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7577075Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7577306Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7577679Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7577845Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7578051Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7578242Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7578495Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7579054Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7579348Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7579498Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7579507Z 2023-01-11T21:03:35.7582442Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7582559Z ================== 2023-01-11T21:03:35.7582722Z ================== 2023-01-11T21:03:35.7583026Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7583324Z  Write of size 4 at 0x7b9400017b60 by thread T1: 2023-01-11T21:03:35.7587077Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.7587516Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7587900Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7588372Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7588857Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7589320Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7589605Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7589988Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7590218Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7590227Z 2023-01-11T21:03:35.7590543Z  Previous write of size 4 at 0x7b9400017b60 by thread T3: 2023-01-11T21:03:35.7594316Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:35.7594830Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7595183Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7595669Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7596177Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7596639Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7596863Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7597238Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7597467Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7597476Z 2023-01-11T21:03:35.7597849Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7598123Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7598327Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7598594Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7598991Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7599768Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7600144Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7600481Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7600791Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7601122Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7602188Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7602825Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7603131Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7604164Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7604476Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7604683Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7605363Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7605542Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7605749Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7606557Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7606801Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7607684Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7607924Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7608091Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7608345Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7608459Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7608565Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7608688Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7608835Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7609175Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7609292Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7609385Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7609391Z 2023-01-11T21:03:35.7609615Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.7609789Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7610009Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7610332Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7610507Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7610802Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7610951Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7611128Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7611536Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7611758Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7611941Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7612137Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7612700Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7612896Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7613120Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7613792Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7614028Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7614894Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7615072Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7615218Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7615828Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7615974Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7616122Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7616379Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7616494Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7616615Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7616736Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7616870Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7617183Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7617353Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7617443Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7617449Z 2023-01-11T21:03:35.7617662Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7617831Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7618048Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7618365Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7618538Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7618835Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7619020Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7619212Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7619624Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7619844Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7620076Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7620380Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7621276Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7621550Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7621874Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7622842Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7623178Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7624436Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7624882Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7625126Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7626237Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7626485Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7626727Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7627180Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7627388Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7627604Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7627818Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7628082Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7628639Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7628857Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7629012Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7629039Z 2023-01-11T21:03:35.7632106Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7632229Z ================== 2023-01-11T21:03:35.7632347Z ================== 2023-01-11T21:03:35.7632647Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7633003Z  Write of size 4 at 0x7b9400017b64 by thread T2: 2023-01-11T21:03:35.7637093Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.7637562Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7637958Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7638446Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7638962Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7639452Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7639697Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7640072Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7640319Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7640328Z 2023-01-11T21:03:35.7640665Z  Previous write of size 4 at 0x7b9400017b64 by thread T3: 2023-01-11T21:03:35.7643939Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.7644235Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7644452Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7644729Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7645043Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7645310Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7645450Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7645673Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7645808Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7645814Z 2023-01-11T21:03:35.7646036Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7646201Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7646323Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7646480Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7646681Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7647121Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7647391Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7647653Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7647917Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7648244Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7649362Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7649994Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7650297Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7651324Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7651609Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7651771Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7652494Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7652670Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7652881Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7653715Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7653964Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7654925Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7655150Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7655303Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7655558Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7655672Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7655793Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7655914Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7656063Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7656374Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7656551Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7656646Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7656652Z 2023-01-11T21:03:35.7656868Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.7657024Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7657244Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7657558Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7657733Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7658029Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7658217Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7658411Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7658817Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7659033Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7659217Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7659410Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7659974Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7660145Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7660482Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7661574Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7661941Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7663234Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7663591Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7663828Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7664900Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7665142Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7665393Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7665795Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7665985Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7666152Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7666356Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7666636Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7667175Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7667393Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7667540Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7667548Z 2023-01-11T21:03:35.7667935Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7668235Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7668598Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7669156Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7669449Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7669975Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7670230Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7670533Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7671288Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7671638Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7671924Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7672238Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7673195Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7673447Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7673826Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7674992Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7675345Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7676590Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7676792Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7677012Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7677847Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7678138Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7678380Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7678737Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7678919Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7679126Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7679315Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7679546Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7680061Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7680258Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7680401Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7680507Z 2023-01-11T21:03:35.7682545Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7682622Z ================== 2023-01-11T21:03:35.7682688Z ================== 2023-01-11T21:03:35.7682846Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7683024Z  Write of size 4 at 0x7b9400017b64 by thread T1: 2023-01-11T21:03:35.7685179Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.7685495Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7685721Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7686006Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7686295Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7686566Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7686735Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7686960Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7687096Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7687103Z 2023-01-11T21:03:35.7687275Z  Previous write of size 4 at 0x7b9400017b64 by thread T3: 2023-01-11T21:03:35.7689433Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:35.7689698Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7689922Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7690203Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7690487Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7690787Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7690929Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7691154Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7691289Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7691295Z 2023-01-11T21:03:35.7691515Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7691669Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7691795Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7691953Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7692183Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7692628Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7692893Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7693160Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7693426Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7693749Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7694937Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7695622Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7695928Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7697004Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7697284Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7697461Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7698147Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7698329Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7698536Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7699362Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7699633Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7700740Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7701079Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7701331Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7701720Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7701908Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7702099Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7702249Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7702475Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7702968Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7703147Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7703295Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7703304Z 2023-01-11T21:03:35.7703667Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.7703935Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7704284Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7704735Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7705008Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7705466Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7705705Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7706005Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7706739Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7707088Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7707389Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7707589Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7708545Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7708791Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7709094Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7710054Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7710340Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7711570Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7711848Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7712053Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7712990Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7713264Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7713463Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7713868Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7714049Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7714213Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7714414Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7714751Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7715319Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7715513Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7715656Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7715664Z 2023-01-11T21:03:35.7716093Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7716343Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7716694Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7717239Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7717525Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7718003Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7718252Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7718548Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7719284Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7719679Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7719871Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7720069Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7720628Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7720792Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7721079Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7721742Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7721953Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7722780Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7722958Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7723102Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7723713Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7723857Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7724007Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7724261Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7724364Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7724485Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7724606Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7724752Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7725067Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7725185Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7725277Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7725284Z 2023-01-11T21:03:35.7726952Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7727056Z ================== 2023-01-11T21:03:35.7727121Z ================== 2023-01-11T21:03:35.7727291Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7727465Z  Write of size 4 at 0x7b9400017b68 by thread T2: 2023-01-11T21:03:35.7729622Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7729885Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7730108Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7730392Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7730680Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7730945Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7731087Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7731309Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7731471Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7731477Z 2023-01-11T21:03:35.7731661Z  Previous write of size 4 at 0x7b9400017b68 by thread T3: 2023-01-11T21:03:35.7733822Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7734087Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7734309Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7734699Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7734986Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7735252Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7735393Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7735618Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7735753Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7735762Z 2023-01-11T21:03:35.7735985Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7736152Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7736275Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7736433Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7736635Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7737076Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7737400Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7737664Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7737930Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7738294Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7739493Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7740475Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7740976Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7742746Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7743241Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7743574Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7744385Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7744570Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7744778Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7745596Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7745836Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7746696Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7746946Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7747098Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7747351Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7747466Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7747583Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7747701Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7747847Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7748156Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7748278Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7748370Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7748377Z 2023-01-11T21:03:35.7748631Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.7748802Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7749009Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7749320Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7749492Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7749786Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7749941Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7750133Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7750539Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7750754Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7750943Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7751143Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7751700Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7751860Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7752130Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7752794Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7753000Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7753801Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7753977Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7754118Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7754797Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7754946Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7755097Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7755351Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7755469Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7755587Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7755697Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7755843Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7756147Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7756264Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7756356Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7756362Z 2023-01-11T21:03:35.7756575Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7756774Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7756991Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7757309Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7757481Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7757773Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7757924Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7758115Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7758544Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7758763Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7758935Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7759125Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7759695Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7759862Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7760073Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7760748Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7760959Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7761722Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7761927Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7762069Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7762680Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7762861Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7763012Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7763263Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7763381Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7763498Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7763616Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7763763Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7764078Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7764187Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7764279Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7764284Z 2023-01-11T21:03:35.7765962Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7766045Z ================== 2023-01-11T21:03:35.7766097Z ================== 2023-01-11T21:03:35.7766269Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7766442Z  Write of size 4 at 0x7b9400017b6c by thread T2: 2023-01-11T21:03:35.7768583Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:35.7768920Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7769146Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7769431Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7769718Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7769986Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7770128Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7770337Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7770474Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7770479Z 2023-01-11T21:03:35.7770664Z  Previous write of size 4 at 0x7b9400017b6c by thread T3: 2023-01-11T21:03:35.7772791Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:35.7773091Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7773313Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7773590Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7773874Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7774168Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7774310Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7774638Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7774776Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7774783Z 2023-01-11T21:03:35.7775055Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7775315Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7775498Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7775756Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7776074Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7776767Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7777177Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7777614Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7778042Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7778572Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7779893Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7780946Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7781370Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7782930Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7783301Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7783550Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7784437Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7784732Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7784999Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7785999Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7786383Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7787710Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7788022Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7788248Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7788641Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7788818Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7789007Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7789198Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7789428Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7789900Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7790079Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7790176Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7790183Z 2023-01-11T21:03:35.7790426Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.7790695Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7791018Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7791515Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7791774Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7792222Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7792450Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7792740Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7793428Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7793757Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7794039Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7794318Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7795249Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7795507Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7795857Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7796895Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7797163Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7798265Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7798581Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7798795Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7799722Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7799939Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7800211Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7800602Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7800772Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7800966Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7801149Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7801370Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7801839Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7802010Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7802136Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7802145Z 2023-01-11T21:03:35.7802468Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7802723Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7803049Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7803525Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7803775Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7804169Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7804324Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7804515Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7805002Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7805375Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7805656Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7805950Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7806773Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7807024Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7807397Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7808400Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7808709Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7809848Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7810123Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7810337Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7811266Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7811489Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7811709Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7812129Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7812250Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7812374Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7812494Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7812643Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7813004Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7813182Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7813277Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7813287Z 2023-01-11T21:03:35.7816091Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7816211Z ================== 2023-01-11T21:03:35.7816321Z ================== 2023-01-11T21:03:35.7816649Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7816968Z  Write of size 4 at 0x7b9400017b68 by thread T1: 2023-01-11T21:03:35.7820806Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7821138Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7821477Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7822001Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7822422Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7822779Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7823006Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7823289Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7823499Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7823559Z 2023-01-11T21:03:35.7823871Z  Previous write of size 4 at 0x7b9400017b68 by thread T3: 2023-01-11T21:03:35.7827355Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:35.7827719Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7828083Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7828538Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7829013Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7829418Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7829711Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7830092Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7830317Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7830328Z 2023-01-11T21:03:35.7830647Z  Location is heap block of size 10080 at 0x7b9400016800 allocated by main thread: 2023-01-11T21:03:35.7830893Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7831084Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7831346Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7831677Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7832445Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7832853Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7833258Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7833708Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7834185Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7835939Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7836813Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7837361Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7838872Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7839240Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7839409Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7840110Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7840289Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7840498Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7841309Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7841595Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7842447Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7842669Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7842847Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7843106Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7843221Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7843339Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7843460Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7843607Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7843919Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7844038Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7844130Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7844137Z 2023-01-11T21:03:35.7844373Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.7844539Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7844749Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7845065Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7845237Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7845537Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7845690Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7845881Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7846283Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7846531Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7846718Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7846914Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7847473Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7847637Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7847884Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7848552Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7848762Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7849536Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7849711Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7849854Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7850469Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7850613Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7850761Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7851043Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7851156Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7851263Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7851382Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7851529Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7851840Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7851958Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7852053Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7852061Z 2023-01-11T21:03:35.7852267Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.7852432Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7852677Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7852993Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7853164Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7853453Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7853605Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7853792Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7854200Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7854521Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7854711Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7854905Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7855466Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7855640Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7855852Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7856527Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7856789Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7857580Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7857758Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7857897Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7858507Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7858653Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7858804Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7859058Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7859173Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7859290Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7859410Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7859556Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7859867Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7859973Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7860066Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7860071Z 2023-01-11T21:03:35.7861745Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7861854Z ================== 2023-01-11T21:03:35.7862433Z ================== 2023-01-11T21:03:35.7862656Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7862926Z  Write of size 4 at 0x7b9400013f08 by main thread: 2023-01-11T21:03:35.7866484Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.7866942Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7867318Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7867772Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7868239Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7868558Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7868890Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7869178Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:35.7869522Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7870701Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.7871077Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.7871402Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.7872008Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.7872570Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.7872880Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.7873204Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7874517Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7874920Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7875269Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7876366Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.7876742Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.7877288Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.7877871Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.7878269Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.7879585Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7879899Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7880264Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.7880518Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.7880773Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.7881128Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7881286Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7881473Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7881638Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7881848Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7882288Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7882474Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7882620Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7882630Z 2023-01-11T21:03:35.7882928Z  Previous write of size 4 at 0x7b9400013f08 by thread T2: 2023-01-11T21:03:35.7886395Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:35.7886937Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7887318Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7887838Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7888172Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7888473Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7888695Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7888991Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7889172Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7889181Z 2023-01-11T21:03:35.7889526Z  Location is heap block of size 10080 at 0x7b9400011800 allocated by main thread: 2023-01-11T21:03:35.7889772Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7889963Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7890203Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7890502Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7891110Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7891509Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7891946Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7892324Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7892799Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7894424Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7895386Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7895869Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7897407Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7897887Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7898160Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.7898540Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.7900215Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.7900688Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.7902863Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.7903297Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.7903681Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.7905571Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.7906110Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.7907680Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.7908098Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.7908383Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.7908805Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.7910344Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.7910854Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.7912701Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.7913185Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.7913625Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.7915711Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.7916249Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.7918201Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.7918701Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.7919022Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.7919274Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.7920411Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.7920667Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.7920988Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.7921317Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.7921704Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.7922063Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.7922692Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.7923337Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.7923741Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.7924078Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7925462Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7925806Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7926143Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7927421Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.7927802Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.7928522Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.7929165Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.7929567Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.7931007Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7931408Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7931837Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.7932129Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.7932405Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.7932877Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7933055Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7933255Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7933461Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7933700Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7934235Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7934524Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7934677Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7934687Z 2023-01-11T21:03:35.7935070Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.7935353Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.7935718Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.7936236Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.7936522Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.7937013Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.7937274Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.7937606Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.7938339Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.7938741Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.7939085Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.7939512Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.7940567Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.7940856Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.7941278Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.7942569Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.7942949Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.7944397Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.7944735Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.7944974Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.7946138Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.7946402Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.7946677Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.7947157Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7947413Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7947734Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7948000Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7948302Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7948889Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7949106Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7949275Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7949284Z 2023-01-11T21:03:35.7952572Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:35.7952696Z ================== 2023-01-11T21:03:35.7952810Z ================== 2023-01-11T21:03:35.7953119Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.7953442Z  Write of size 1 at 0x7b7400032eec by thread T3: 2023-01-11T21:03:35.7957765Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.7958246Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7958640Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7959164Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7959738Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7960234Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.7960487Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.7960886Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.7961134Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.7961146Z 2023-01-11T21:03:35.7961490Z  Previous write of size 1 at 0x7b7400032eec by main thread: 2023-01-11T21:03:35.7965749Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.7966230Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.7966625Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.7967150Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.7967681Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.7968027Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.7968406Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.7968812Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.7969237Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.7970713Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.7971108Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.7971512Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.7972992Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.7973374Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.7973753Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.7975360Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7975813Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7977430Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7977881Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7978178Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7978625Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7978836Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7979051Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7979266Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7979582Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7980161Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.7980381Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.7980558Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.7980567Z 2023-01-11T21:03:35.7980960Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.7981264Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.7981472Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.7981760Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.7982132Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.7982952Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.7983428Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.7983913Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.7984396Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.7985009Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.7986993Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.7988211Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.7988782Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.7990697Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.7991198Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.7991518Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.7992790Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.7993177Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.7993538Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.7995148Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.7995593Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.7997185Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.7997578Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.7997873Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.7998339Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.7998548Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.7998762Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.7998978Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.7999247Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.7999825Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8000043Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8000209Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8000219Z 2023-01-11T21:03:35.8000592Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.8000891Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8001312Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8001889Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8002204Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8002743Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8003026Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8003375Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8004189Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8004601Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8004936Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8005298Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8006347Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8006646Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8007066Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8008307Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8008703Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8010179Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8010552Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8010798Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8011959Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8012223Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8012531Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8012988Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8013194Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8013405Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8013626Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8013896Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8014569Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8014792Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8014968Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8014978Z 2023-01-11T21:03:35.8018174Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8018302Z ================== 2023-01-11T21:03:35.8018419Z ================== 2023-01-11T21:03:35.8018725Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8019041Z  Write of size 1 at 0x7b7400032c76 by thread T2: 2023-01-11T21:03:35.8023224Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8023807Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8024211Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8024728Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8025262Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8025753Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8026007Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8026408Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8026644Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8026653Z 2023-01-11T21:03:35.8026988Z  Previous write of size 1 at 0x7b7400032c76 by main thread: 2023-01-11T21:03:35.8031084Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8031589Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8031988Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8032496Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8033020Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8033394Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8033755Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8034159Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8034540Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8036061Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.8036456Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.8036817Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8038282Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8038646Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8039059Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8040576Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8041013Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8042647Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8043031Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8043331Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8043795Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8043982Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8044191Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8044405Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8044671Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8045250Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8045461Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8045626Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8045636Z 2023-01-11T21:03:35.8046038Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8046337Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8046552Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8046821Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8047191Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8048089Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8048575Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8049059Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8049545Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8050176Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8052177Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8053348Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8053904Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8055968Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8056539Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8056869Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8058216Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8058542Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8058918Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8060456Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8060897Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8062521Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8062940Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8063232Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8063705Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8063912Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8064128Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8064340Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8064614Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8065202Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8065447Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8065616Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8065625Z 2023-01-11T21:03:35.8066020Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.8066313Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8066708Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8067291Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8067611Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8068154Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8068424Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8068775Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8069538Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8069946Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8070284Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8070645Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8071701Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8072038Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8072456Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8073770Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8074233Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8075858Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8076188Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8076453Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8077623Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8077888Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8078156Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8078632Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8078819Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8079039Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8079257Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8079524Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8080107Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8080324Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8080491Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8080537Z 2023-01-11T21:03:35.8083781Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8083906Z ================== 2023-01-11T21:03:35.8084020Z ================== 2023-01-11T21:03:35.8084322Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8084639Z  Write of size 1 at 0x7b7400032c76 by thread T1: 2023-01-11T21:03:35.8088899Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8089375Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8089779Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8090297Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8090827Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8091330Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8091581Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8092031Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8092275Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8092287Z 2023-01-11T21:03:35.8092626Z  Previous write of size 1 at 0x7b7400032c76 by main thread: 2023-01-11T21:03:35.8097008Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8097489Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8097896Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8098415Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8098944Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8099298Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8099664Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8100089Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8100481Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8101961Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.8102418Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.8102768Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8104306Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8104678Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8105053Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8106582Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8107024Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8108666Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8109049Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8109385Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8109860Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8110057Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8110270Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8110488Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8110755Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8111346Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8111561Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8111734Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8111743Z 2023-01-11T21:03:35.8112130Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8112432Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8112690Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8112966Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8113341Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8114165Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8114731Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8115218Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8115710Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8116307Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8118342Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8119561Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8120129Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8122106Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8122608Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8122921Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8124199Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8124533Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8124891Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8126427Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8126901Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8128544Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8128927Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8129229Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8129702Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8129910Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8130125Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8130348Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8130625Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8131207Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8131421Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8131588Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8131598Z 2023-01-11T21:03:35.8131951Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.8132252Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8132647Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8133224Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8133531Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8134067Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8134474Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8134831Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8135604Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8136008Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8136347Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8136703Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8137799Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8138092Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8138502Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8139748Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8140132Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8141562Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8141899Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8142139Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8143306Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8143675Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8143977Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8144437Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8144637Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8144854Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8145074Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8145338Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8145954Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8146170Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8146339Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8146347Z 2023-01-11T21:03:35.8149538Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8149662Z ================== 2023-01-11T21:03:35.8149780Z ================== 2023-01-11T21:03:35.8150085Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8150398Z  Write of size 1 at 0x7b7400032ef0 by thread T3: 2023-01-11T21:03:35.8154536Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.8155138Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8155544Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8156056Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8156580Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8157109Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8157367Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8157775Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8158015Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8158025Z 2023-01-11T21:03:35.8158369Z  Previous write of size 1 at 0x7b7400032ef0 by main thread: 2023-01-11T21:03:35.8162588Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.8163054Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8163456Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8163973Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8164548Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8164903Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8165269Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8165682Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8166074Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8167581Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.8167974Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.8168328Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8169828Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8170207Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8170589Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8172119Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8172597Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8174237Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8174736Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8175035Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8175496Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8175698Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8175923Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8176138Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8176406Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8177000Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8177219Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8177390Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8177399Z 2023-01-11T21:03:35.8177806Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8178106Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8178323Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8178612Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8178984Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8179798Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8180289Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8180848Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8181344Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8181944Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8184047Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8185233Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8185806Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8187760Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8188316Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8188637Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8189927Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8190252Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8190659Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8192194Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8192640Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8194269Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8194706Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8195007Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8195481Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8195690Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8195945Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8196163Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8196435Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8197026Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8197246Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8197395Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8197420Z 2023-01-11T21:03:35.8197797Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.8198090Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8198483Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8199100Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8199421Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8199956Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8200232Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8200578Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8201352Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8201758Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8202096Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8202457Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8203505Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8203804Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8204213Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8205451Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8205880Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8207313Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8207683Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8207931Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8209094Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8209363Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8209613Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8210084Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8210289Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8210499Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8210717Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8210983Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8211572Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8211787Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8211953Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8211962Z 2023-01-11T21:03:35.8215251Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8215440Z ================== 2023-01-11T21:03:35.8215567Z ================== 2023-01-11T21:03:35.8215872Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8216190Z  Write of size 1 at 0x7b7400032c77 by thread T2: 2023-01-11T21:03:35.8220479Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8220967Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8221370Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8221886Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8222415Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8222911Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8223168Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8223574Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8223813Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8223822Z 2023-01-11T21:03:35.8224156Z  Previous write of size 1 at 0x7b7400032c77 by main thread: 2023-01-11T21:03:35.8228310Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8228838Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8229247Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8229765Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8230292Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8230643Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8231010Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8231422Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8231802Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8233267Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.8233662Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.8234027Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8235565Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8235984Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8236362Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8237940Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8238385Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8239981Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8240384Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8240667Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8241140Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8241347Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8241562Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8241777Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8242046Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8242630Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8242891Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8243061Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8243070Z 2023-01-11T21:03:35.8243461Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8243762Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8243967Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8244259Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8244626Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8245484Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8245979Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8246454Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8246941Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8247547Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8249582Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8250751Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8251360Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8253333Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8253844Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8254165Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8255551Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8255881Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8256260Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8257813Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8258257Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8259927Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8260313Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8260665Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8261147Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8261355Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8261567Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8261782Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8262047Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8262631Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8262851Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8263001Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8263013Z 2023-01-11T21:03:35.8263403Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.8263703Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8264089Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8264666Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8264978Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8265518Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8265792Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8266140Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8266917Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8267317Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8267688Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8268049Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8269094Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8269389Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8269808Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8271089Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8271472Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8272927Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8273243Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8273507Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8274716Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8274998Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8275253Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8275725Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8275972Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8276189Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8276412Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8276683Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8277272Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8277488Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8277649Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8277658Z 2023-01-11T21:03:35.8280901Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8281029Z ================== 2023-01-11T21:03:35.8281144Z ================== 2023-01-11T21:03:35.8281445Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8281741Z  Write of size 1 at 0x7b7400032c77 by thread T1: 2023-01-11T21:03:35.8285938Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8286409Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8286818Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8287371Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8287911Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8288405Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8288662Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8289065Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8289312Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8289321Z 2023-01-11T21:03:35.8289694Z  Previous write of size 1 at 0x7b7400032c77 by main thread: 2023-01-11T21:03:35.8293880Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8294448Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8294861Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8295378Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8295909Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8296261Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8296626Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8297109Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8297497Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8298953Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.8299382Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.8299744Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8301235Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8301606Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8301978Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8303499Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8303938Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8305550Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8305992Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8306269Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8306744Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8306946Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8307198Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8307414Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8307687Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8308274Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8308489Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8308648Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8308660Z 2023-01-11T21:03:35.8309065Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8309353Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8309573Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8309862Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8310235Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8311063Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8311554Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8312039Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8312525Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8313129Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8315249Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8316451Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8317018Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8318991Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8319498Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8319814Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8321109Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8321485Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8321861Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8323438Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8323888Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8325502Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8325883Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8326178Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8326654Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8326865Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8327077Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8327296Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8327564Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8328155Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8328350Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8328517Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8328526Z 2023-01-11T21:03:35.8328909Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.8329243Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8329645Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8330233Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8330543Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8331083Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8331362Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8331711Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8332512Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8332916Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8333252Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8333611Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8334785Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8335087Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8335509Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8336758Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8337150Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8338609Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8338989Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8339244Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8340394Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8340699Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8340971Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8341445Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8341652Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8341863Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8342082Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8342355Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8342951Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8343169Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8343338Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8343348Z 2023-01-11T21:03:35.8346589Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8346713Z ================== 2023-01-11T21:03:35.8346832Z ================== 2023-01-11T21:03:35.8347133Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8347429Z  Write of size 1 at 0x7b7400032c7c by thread T1: 2023-01-11T21:03:35.8351528Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.8352083Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8352493Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8353013Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8353548Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8354049Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8354302Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8354764Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8355009Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8355018Z 2023-01-11T21:03:35.8355341Z  Previous write of size 1 at 0x7b7400032c7c by thread T2: 2023-01-11T21:03:35.8359569Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.8360076Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8360480Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8360991Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8361562Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8362053Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8362306Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8362704Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8362941Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8362954Z 2023-01-11T21:03:35.8363358Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8363647Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8363863Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8364157Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8364527Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8365359Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8365852Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8366342Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8366829Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8367430Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8369511Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8370584Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8370891Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8371933Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8372206Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8372381Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8373066Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8373272Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8373478Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8374425Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8374672Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8375533Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8375747Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8375912Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8376168Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8376286Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8376408Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8376529Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8376679Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8376990Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8377096Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8377189Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8377196Z 2023-01-11T21:03:35.8377467Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.8377636Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8377860Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8378176Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8378347Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8378641Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8378796Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8378987Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8379431Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8379654Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8379839Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8380034Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8380601Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8380764Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8380989Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8381660Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8381873Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8382639Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8382842Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8382984Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8383595Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8383770Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8383924Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8384177Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8384293Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8384413Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8384534Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8384683Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8384996Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8385117Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8385212Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8385217Z 2023-01-11T21:03:35.8385416Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.8385585Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8385805Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8386122Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8386300Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8386592Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8386744Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8386933Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8387337Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8387585Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8387771Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8387964Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8388522Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8388689Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8388944Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8389611Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8389820Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8390684Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8390866Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8391007Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8391905Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8392163Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8392478Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8392932Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8393124Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8393334Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8393546Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8393811Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8394378Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8394529Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8394700Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8394706Z 2023-01-11T21:03:35.8396434Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8396508Z ================== 2023-01-11T21:03:35.8396813Z ================== 2023-01-11T21:03:35.8396988Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8397163Z  Write of size 1 at 0x7b7400032c7d by thread T1: 2023-01-11T21:03:35.8399340Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8399599Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8399858Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8400141Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8400431Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8400697Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8400842Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8401092Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8401230Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8401236Z 2023-01-11T21:03:35.8401421Z  Previous write of size 1 at 0x7b7400032c7d by thread T2: 2023-01-11T21:03:35.8403550Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8403809Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8404034Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8404308Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8404593Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8404857Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8405035Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8405256Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8405390Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8405395Z 2023-01-11T21:03:35.8405612Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8405778Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8405898Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8406057Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8406260Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8406732Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8406998Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8407260Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8407523Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8407852Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8408924Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8409557Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8409896Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8410941Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8411225Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8411399Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8412081Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8412257Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8412460Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8413265Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8413535Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8414484Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8414756Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8414919Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8415163Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8415278Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8415396Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8415516Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8415666Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8415980Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8416099Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8416191Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8416197Z 2023-01-11T21:03:35.8416407Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.8416575Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8416780Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8417091Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8417267Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8417558Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8417707Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8417894Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8418297Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8418550Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8418734Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8418927Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8419480Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8419641Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8419905Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8420567Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8420773Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8421544Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8421720Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8421860Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8422470Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8422614Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8422792Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8423044Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8423160Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8423276Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8423383Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8423529Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8423835Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8423949Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8424042Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8424047Z 2023-01-11T21:03:35.8424254Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.8424418Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8424661Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8424977Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8425148Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8425440Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8425592Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8425781Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8426181Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8426398Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8426569Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8426796Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8427696Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8427979Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8428349Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8429576Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8429877Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8431224Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8431534Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8431783Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8432921Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8433203Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8433479Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8433860Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8434049Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8434199Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8434319Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8434524Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8435051Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8435235Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8435433Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8435443Z 2023-01-11T21:03:35.8438055Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8438250Z ================== 2023-01-11T21:03:35.8438338Z ================== 2023-01-11T21:03:35.8438619Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8438905Z  Write of size 1 at 0x7b7400032ef1 by thread T3: 2023-01-11T21:03:35.8442151Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8442584Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8442894Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8443238Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8443679Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8444103Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8444337Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8444646Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8444845Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8444927Z 2023-01-11T21:03:35.8445243Z  Previous write of size 1 at 0x7b7400032ef1 by main thread: 2023-01-11T21:03:35.8448284Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8448672Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8449011Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8449466Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8449940Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8450216Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8450517Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8450774Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8450987Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8452108Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.8452517Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.8452842Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8454031Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8454495Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8454712Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8455541Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8456133Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8457137Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8457352Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8457516Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8457773Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8457937Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8458057Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8458177Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8458325Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8458635Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8458755Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8458836Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8458856Z 2023-01-11T21:03:35.8459086Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8459252Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8459383Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8459547Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8459782Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8460228Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8460497Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8460764Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8461030Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8461355Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8462440Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8463092Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8463393Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8464457Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8464738Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8464915Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8465597Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8465780Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8465986Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8466794Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8467060Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8467955Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8468169Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8468334Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8468589Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8468706Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8468828Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8468933Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8469082Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8469394Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8469514Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8469608Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8469614Z 2023-01-11T21:03:35.8469830Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.8469998Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8470219Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8470540Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8470713Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8471006Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8471158Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8471348Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8471785Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8472008Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8472194Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8472376Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8472978Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8473146Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8473371Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8474037Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8474246Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8475085Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8475269Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8475413Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8476025Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8476205Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8476358Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8476611Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8476727Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8476847Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8476969Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8477116Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8477426Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8477553Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8477633Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8477667Z 2023-01-11T21:03:35.8479337Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8479410Z ================== 2023-01-11T21:03:35.8479474Z ================== 2023-01-11T21:03:35.8479630Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8479803Z  Write of size 1 at 0x7b7400033161 by thread T2: 2023-01-11T21:03:35.8481939Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:35.8482258Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8482485Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8482763Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8483050Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8483321Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8483494Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8483718Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8483840Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8483859Z 2023-01-11T21:03:35.8484033Z  Previous write of size 1 at 0x7b7400033161 by main thread: 2023-01-11T21:03:35.8486923Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:35.8487303Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8487636Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8488105Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8488607Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8489007Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8489389Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8489794Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8490115Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8491390Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:35.8491695Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:35.8491898Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8492745Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8492956Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8493165Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8494295Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8494841Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8496295Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8496613Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8496893Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8497309Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8497485Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8497671Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8497861Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8498090Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8498594Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8498779Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8498939Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8498949Z 2023-01-11T21:03:35.8499385Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8499683Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8499916Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8500222Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8500497Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8501058Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8501488Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8501913Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8502330Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8502920Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8504585Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8505541Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8505958Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8507549Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8507957Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8508241Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8509199Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8509471Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8509791Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8511187Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8511459Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8512829Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8513178Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8513447Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8513705Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8535608Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8535892Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8536100Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8536362Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8536944Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8537309Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8537461Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8537483Z 2023-01-11T21:03:35.8537766Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.8537930Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8538151Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8538461Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8538632Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8538977Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8539130Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8539320Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8539730Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8539948Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8540136Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8540328Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8540887Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8541046Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8541265Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8541923Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8542156Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8542917Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8543093Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8543224Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8543871Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8544010Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8544147Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8544396Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8544504Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8544621Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8544735Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8544875Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8545179Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8545293Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8545381Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8545387Z 2023-01-11T21:03:35.8547561Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8547736Z ================== 2023-01-11T21:03:35.8547813Z ================== 2023-01-11T21:03:35.8548077Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8548322Z  Write of size 1 at 0x7b7400032eeb by thread T1: 2023-01-11T21:03:35.8551651Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:35.8552018Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8552319Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8552669Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8553044Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8553395Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8553592Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8553913Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8554102Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8554109Z 2023-01-11T21:03:35.8554375Z  Previous write of size 1 at 0x7b7400032eeb by thread T2: 2023-01-11T21:03:35.8557836Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:35.8558307Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8558693Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8559130Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8559582Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8559994Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8560244Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8560584Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8560798Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8560807Z 2023-01-11T21:03:35.8561200Z  Location is heap block of size 2520 at 0x7b7400032a00 allocated by main thread: 2023-01-11T21:03:35.8561476Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8561671Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8561929Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8562261Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8562838Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8563266Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8563702Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8564135Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8564736Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8566691Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8567849Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8568332Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8570205Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8570639Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8571014Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:35.8572227Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:35.8572525Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:35.8572875Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:35.8574590Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:35.8575046Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:35.8576564Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8576942Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8577209Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:35.8577666Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8577870Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8578083Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8578300Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8578572Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8579153Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8579382Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8579479Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8579486Z 2023-01-11T21:03:35.8579724Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.8579891Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8580098Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8580413Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8580587Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8580913Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8581069Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8581260Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8581664Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8581881Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8582064Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8582256Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8582815Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8582980Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8583204Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8583866Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8584103Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8584877Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8585051Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8585191Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8585830Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8585978Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8586128Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8586380Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8586494Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8586611Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8586718Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8586860Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8587165Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8587283Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8587372Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8587378Z 2023-01-11T21:03:35.8587586Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.8587749Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8587968Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8588283Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8588450Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8588741Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8588918Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8589104Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8589515Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8589732Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8589903Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8590098Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8590692Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8590858Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8591069Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8591749Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8591958Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8592719Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8592896Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8593037Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8593641Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8593826Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8593972Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8594222Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8594332Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8594450Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8594640Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8594790Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8595127Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8595233Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8595327Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8595332Z 2023-01-11T21:03:35.8596997Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8597081Z ================== 2023-01-11T21:03:35.8597328Z ================== 2023-01-11T21:03:35.8597489Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8597654Z  Write of size 1 at 0x7b7400032276 by thread T2: 2023-01-11T21:03:35.8599818Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8600126Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8600346Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8600624Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8600912Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8601206Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8601348Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8601572Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8601694Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8601699Z 2023-01-11T21:03:35.8601884Z  Previous write of size 1 at 0x7b7400032276 by main thread: 2023-01-11T21:03:35.8604040Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8604296Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8604516Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8604799Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8605126Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8605314Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8605514Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8605738Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8605946Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8606689Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.8606927Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.8607148Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.8607528Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.8607913Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.8608127Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.8608329Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8609113Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8609362Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8609656Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8610828Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.8611233Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.8611904Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.8612534Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.8612940Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.8614549Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8614910Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8615334Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.8615649Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.8615927Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.8616381Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8616689Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8616893Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8617105Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8617372Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8617941Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8618151Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8618301Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8618329Z 2023-01-11T21:03:35.8618742Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.8619025Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8619251Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8619543Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8619980Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8620766Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8621240Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8621703Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8622194Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8622776Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8624784Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8625893Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8626438Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8628980Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8631418Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8632215Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.8633031Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.8635642Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.8638385Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.8640977Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.8643522Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.8644086Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.8645542Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.8647068Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.8648462Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.8649931Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.8650410Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.8650920Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.8652331Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.8653786Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.8655269Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.8656708Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.8657254Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.8658728Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.8660243Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.8661665Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.8663075Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.8663549Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.8663896Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.8664737Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.8665564Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.8665926Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.8666329Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.8666758Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.8667238Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.8667847Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.8668608Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.8669206Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.8669626Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8670628Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8671585Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8672001Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8673344Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.8674985Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.8676199Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.8677149Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.8678130Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.8679339Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8680367Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8680842Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.8681275Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.8681723Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.8682368Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8682980Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8683439Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8683906Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8684410Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8685164Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8685709Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8685998Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8686198Z 2023-01-11T21:03:35.8686547Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.8686963Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8687426Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8688088Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8688840Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8689701Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8690279Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8690684Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8691373Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8691934Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8692411Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8692795Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8693657Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8694572Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8695182Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8696245Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8697194Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8698657Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8700385Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8700846Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8701672Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8702471Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8702830Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8703622Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8704018Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8704274Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8704533Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8704818Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8705282Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8705717Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8705946Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8706074Z 2023-01-11T21:03:35.8707767Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8708800Z ================== 2023-01-11T21:03:35.8708966Z ================== 2023-01-11T21:03:35.8709215Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8709532Z  Write of size 1 at 0x7b7400032276 by thread T1: 2023-01-11T21:03:35.8711903Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8713555Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8714036Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8714528Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8715170Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8715728Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8716137Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8716520Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8716881Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8717034Z 2023-01-11T21:03:35.8717223Z  Previous write of size 1 at 0x7b7400032276 by main thread: 2023-01-11T21:03:35.8719546Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8721217Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8721691Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8722197Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8722784Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8723262Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8723653Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8724089Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8724534Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8725465Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.8726385Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.8726841Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.8727448Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.8728203Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.8728823Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.8729245Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8730235Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8731490Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8732172Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8733853Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.8735699Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.8736781Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.8738268Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.8739213Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.8741223Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8743161Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8744039Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.8744782Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.8745387Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.8746153Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8746908Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8747339Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8747796Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8748373Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8749246Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8749979Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8750388Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8750626Z 2023-01-11T21:03:35.8751064Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.8751629Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8752092Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8752608Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8753289Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8754505Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8755876Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8756811Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8757756Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8758838Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8761484Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8764165Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8765054Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8766390Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8767763Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8768221Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.8768692Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.8770134Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.8771668Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.8773033Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.8774602Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.8775158Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.8776590Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.8778199Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.8779636Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.8781092Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.8781569Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.8782055Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.8783475Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.8784955Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.8786385Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.8787778Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.8788320Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.8790059Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.8792720Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.8795369Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.8798051Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.8798916Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.8799520Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.8801102Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.8802566Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.8803164Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.8803907Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.8804671Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.8805497Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.8806600Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.8807979Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.8809042Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.8809792Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8811569Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8813339Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8814050Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8815972Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.8817647Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.8818851Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.8820334Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.8821471Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.8823509Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8825321Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8825798Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.8826289Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.8826625Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.8827058Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8827435Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8827693Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8827939Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8828226Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8828708Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8829148Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8829397Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8829527Z 2023-01-11T21:03:35.8829772Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.8830105Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8830464Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8831006Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8831485Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8831968Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8832417Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8832781Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8833393Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8833869Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8834288Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8834750Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8835530Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8836236Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8836682Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8837577Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8838428Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8839436Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8840345Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8840677Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8841454Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8842186Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8842486Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8842913Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8843288Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8843541Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8843792Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8844079Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8844550Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8844991Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8845207Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8845335Z 2023-01-11T21:03:35.8847012Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8848110Z ================== 2023-01-11T21:03:35.8848357Z ================== 2023-01-11T21:03:35.8848779Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8849336Z  Write of size 1 at 0x7b74000324ec by thread T3: 2023-01-11T21:03:35.8853638Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8856659Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8857531Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8858477Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8859474Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8860459Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8861195Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8861886Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8862589Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8862876Z 2023-01-11T21:03:35.8863212Z  Previous write of size 1 at 0x7b74000324ec by main thread: 2023-01-11T21:03:35.8867589Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.8870539Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8871388Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8872302Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8873342Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8874188Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.8875029Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.8875845Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.8876642Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.8878366Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.8880072Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.8880888Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.8881938Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.8883369Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.8884481Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.8885230Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8887089Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8888507Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8888912Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8889882Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.8890825Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.8891477Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.8892334Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.8892948Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.8894078Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8895184Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8895659Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.8896104Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.8896439Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.8896868Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8897244Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8897498Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8897743Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8898033Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8898507Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8898944Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8899163Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8899293Z 2023-01-11T21:03:35.8899538Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.8899868Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.8900116Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.8900416Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.8900796Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.8901448Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.8902203Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.8902734Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.8903259Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.8903833Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.8905267Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.8907020Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.8907909Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.8909234Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.8910626Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.8911084Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.8911537Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.8913512Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.8916303Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.8918832Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.8921385Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.8922434Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.8924276Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.8925835Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.8927240Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.8928691Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.8929196Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.8930039Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.8932546Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.8935421Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.8937167Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.8938693Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.8939226Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.8940777Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.8942665Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.8944117Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.8945576Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.8946042Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.8946392Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.8947228Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.8948034Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.8948391Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.8948794Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.8949238Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.8949675Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.8950283Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.8951087Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.8951680Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.8952094Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.8953118Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.8954069Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.8954487Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.8955521Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.8956450Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.8957108Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.8957915Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.8958532Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.8959681Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.8960700Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.8961181Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.8961641Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.8961990Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.8962418Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8962779Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8963032Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8963285Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8963574Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8964039Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8964475Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8964707Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8964836Z 2023-01-11T21:03:35.8965082Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.8965556Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.8966021Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.8966925Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.8967800Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.8968637Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.8969406Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.8969781Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.8970576Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.8971542Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.8972210Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.8972915Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.8974248Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.8975591Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.8976383Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.8977928Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.8979476Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.8981287Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.8982573Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.8982906Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.8983679Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.8984408Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.8984771Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.8985190Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.8985556Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.8985811Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.8986070Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.8986356Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.8986817Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.8987252Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.8987484Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.8987611Z 2023-01-11T21:03:35.8989333Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.8990351Z ================== 2023-01-11T21:03:35.8991013Z ================== 2023-01-11T21:03:35.8991271Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.8991589Z  Write of size 1 at 0x7b7400032277 by thread T2: 2023-01-11T21:03:35.8993888Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.8995632Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.8996153Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.8996660Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.8997233Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.8997831Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.8998241Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.8998652Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.8999018Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.8999179Z 2023-01-11T21:03:35.8999366Z  Previous write of size 1 at 0x7b7400032277 by main thread: 2023-01-11T21:03:35.9001669Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.9003288Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9003765Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9004272Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9004837Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9005314Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.9005740Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.9006175Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.9006620Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.9007577Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.9008501Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.9008958Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9009563Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9010334Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9010927Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9011346Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9012342Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9013287Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9013699Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9014901Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9015833Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9016485Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9017345Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9018097Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9019257Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9020280Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9020757Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9021191Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9021539Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9021953Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9022326Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9022581Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9022838Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9023115Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9023636Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9024073Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9024302Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9024417Z 2023-01-11T21:03:35.9024655Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9024981Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9025241Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9025529Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9025910Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9026591Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9027288Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9027814Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9028336Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9029050Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9030512Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9032266Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9033203Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9034638Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9036019Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9036477Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9036941Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9038343Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9039915Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9041346Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9042797Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9043340Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9044772Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9046312Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9047719Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9049159Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9049631Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9050127Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9051549Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9053020Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9054460Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9055867Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9056440Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9057912Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9059454Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9060853Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9062293Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9062756Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9063105Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9063940Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9064771Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9065131Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9065533Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9065973Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9066413Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9067044Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9067808Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9068400Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9068815Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9070081Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9071656Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9072369Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9074136Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9075925Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9077121Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9077797Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9078236Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9079885Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9080274Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9080747Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9081065Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9081359Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9081786Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9081970Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9082176Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9082390Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9082664Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9083247Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9083459Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9083628Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9083640Z 2023-01-11T21:03:35.9084064Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.9084349Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9084740Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9085336Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9085637Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9086175Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9086455Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9086789Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9087565Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9088012Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9088355Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9088704Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9089700Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9090001Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9090419Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9091663Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9092024Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9093470Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9093857Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9094113Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9095339Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9095589Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9095849Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9096338Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9096548Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9096764Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9096967Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9097221Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9097791Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9098016Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9098183Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9098193Z 2023-01-11T21:03:35.9101343Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9101470Z ================== 2023-01-11T21:03:35.9101578Z ================== 2023-01-11T21:03:35.9101865Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9102177Z  Write of size 1 at 0x7b7400032277 by thread T1: 2023-01-11T21:03:35.9106233Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.9106806Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9107254Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9107759Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9108237Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9108682Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9108939Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9109329Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9109573Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9109585Z 2023-01-11T21:03:35.9109936Z  Previous write of size 1 at 0x7b7400032277 by main thread: 2023-01-11T21:03:35.9113261Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.9113597Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9113819Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9114098Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9114386Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9114683Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.9114920Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.9115147Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.9115360Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.9116078Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.9116316Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.9116531Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9116912Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9117299Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9117509Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9117707Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9118520Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9118726Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9118936Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9119717Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9119943Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9120370Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9120750Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9120987Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9121841Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9122088Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9122346Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9122518Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9122678Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9122935Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9123048Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9123165Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9123285Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9123430Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9123770Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9123878Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9123971Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9123978Z 2023-01-11T21:03:35.9124204Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9124368Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9124492Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9124652Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9124858Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9125299Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9125563Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9125825Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9126093Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9126416Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9127501Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9128174Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9128479Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9129515Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9129789Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9129977Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9130243Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9131376Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9131719Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9132807Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9133082Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9133347Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9134618Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9135009Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9136649Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9137124Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9137458Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9137991Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9139888Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9140424Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9142156Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9142586Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9142999Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9144479Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9144842Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9146732Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9147267Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9147600Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9147871Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9149174Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9149455Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9149792Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9150155Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9150581Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9150982Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9151695Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9152321Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9152711Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9153078Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9154488Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9154984Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9155346Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9156664Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9157107Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9157872Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9158534Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9158981Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9160562Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9160951Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9161425Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9161746Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9162038Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9162488Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9162714Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9162901Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9163108Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9163353Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9163938Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9164154Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9164319Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9164331Z 2023-01-11T21:03:35.9164737Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.9165043Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9165435Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9166036Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9166270Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9166739Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9167037Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9167369Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9168125Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9168528Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9168864Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9169226Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9170231Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9170533Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9170949Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9172157Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9172596Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9174038Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9174457Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9174701Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9175860Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9176139Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9176397Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9176784Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9176975Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9177160Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9177361Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9177637Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9178222Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9178440Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9178605Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9178618Z 2023-01-11T21:03:35.9181716Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9181931Z ================== 2023-01-11T21:03:35.9182034Z ================== 2023-01-11T21:03:35.9182316Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9182638Z  Write of size 1 at 0x7b74000324ed by thread T3: 2023-01-11T21:03:35.9186829Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.9187312Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9187572Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9187858Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9188148Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9188421Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9188562Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9188786Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9188921Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9188928Z 2023-01-11T21:03:35.9189119Z  Previous write of size 1 at 0x7b74000324ed by main thread: 2023-01-11T21:03:35.9191331Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:35.9191618Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9191837Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9192116Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9192405Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9192598Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.9192798Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.9193026Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.9193237Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.9193954Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.9194191Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.9194409Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9194897Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9195300Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9195512Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9195702Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9196529Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9196734Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9196942Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9197685Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9197911Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9198343Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9198728Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9198995Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9199865Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9200100Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9200358Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9200530Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9200689Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9200943Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9201047Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9201165Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9201286Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9201433Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9201743Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9201858Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9201950Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9201956Z 2023-01-11T21:03:35.9202178Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9202342Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9202469Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9202617Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9202822Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9203262Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9203539Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9203835Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9204097Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9204420Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9205513Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9206139Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9206452Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9207478Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9207776Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9207960Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9208227Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9209389Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9209700Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9210777Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9211052Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9211323Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9212509Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9212884Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9213970Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9214257Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9214627Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9214928Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9216047Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9216397Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9217489Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9217784Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9218050Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9219209Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9219544Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9220703Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9220993Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9221184Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9221329Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9222008Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9222161Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9222353Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9222554Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9222789Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9223005Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9223387Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9223774Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9224011Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9224213Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9225006Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9225240Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9225447Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9226188Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9226411Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9226831Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9227215Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9227452Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9228305Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9228552Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9228808Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9228969Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9229133Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9229383Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9229523Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9229641Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9229761Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9229908Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9230216Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9230331Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9230425Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9230431Z 2023-01-11T21:03:35.9230652Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.9230806Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9231026Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9231340Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9231511Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9231805Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9231956Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9232149Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9232553Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9232770Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9232954Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9233174Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9233733Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9233897Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9234120Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9234876Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9235091Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9235866Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9236046Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9236190Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9236799Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9236946Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9237096Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9237349Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9237464Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9237596Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9237717Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9237865Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9238176Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9238296Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9238389Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9238394Z 2023-01-11T21:03:35.9240079Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9240152Z ================== 2023-01-11T21:03:35.9240212Z ================== 2023-01-11T21:03:35.9240379Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9240552Z  Write of size 1 at 0x7b7400032286 by thread T2: 2023-01-11T21:03:35.9242695Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.9242955Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9243178Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9243458Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9243773Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9244042Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9244181Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9244402Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9244534Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9244542Z 2023-01-11T21:03:35.9244725Z  Previous write of size 1 at 0x7b7400032286 by main thread: 2023-01-11T21:03:35.9246894Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.9247152Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9247374Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9247653Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9247941Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9248132Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.9248330Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.9248553Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.9248790Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.9249508Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.9249755Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.9249961Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9250381Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9250765Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9250976Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9251175Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9251956Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9252161Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9252367Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9253106Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9253367Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9253791Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9254171Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9254542Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9255409Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9255620Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9255876Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9256047Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9256209Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9256467Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9256581Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9256689Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9256811Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9256962Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9257272Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9257391Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9257482Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9257521Z 2023-01-11T21:03:35.9257744Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9257909Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9258035Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9258193Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9258385Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9258837Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9259109Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9259397Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9259660Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9259982Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9261054Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9261691Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9261991Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9263066Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9263339Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9263522Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9263792Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9264935Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9265242Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9266314Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9266612Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9266881Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9268071Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9268403Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9269490Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9269805Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9269997Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9270290Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9271422Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9271731Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9272803Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9273078Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9273347Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9274495Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9274961Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9276047Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9276335Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9276527Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9276674Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9277346Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9277499Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9277694Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9277922Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9278159Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9278373Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9278756Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9279164Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9279378Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9279575Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9280360Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9280582Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9280785Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9281526Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9281750Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9282172Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9282603Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9282840Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9283710Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9283932Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9284175Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9284350Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9284511Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9284765Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9284877Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9284996Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9285115Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9285263Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9285569Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9285687Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9285779Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9285785Z 2023-01-11T21:03:35.9286005Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.9286158Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9286372Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9286685Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9286882Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9287176Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9287326Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9287515Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9287921Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9288136Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9288319Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9288541Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9289103Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9289264Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9289494Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9290153Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9290363Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9291140Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9291313Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9291481Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9292086Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9292230Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9292376Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9292628Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9292733Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9292853Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9292999Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9293150Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9293462Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9293585Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9293678Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9293683Z 2023-01-11T21:03:35.9295948Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9296056Z ================== 2023-01-11T21:03:35.9296165Z ================== 2023-01-11T21:03:35.9296443Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9296713Z  Write of size 1 at 0x7b7400032286 by thread T1: 2023-01-11T21:03:35.9300683Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.9301253Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9301670Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9302185Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9302754Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9303241Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9303494Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9303892Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9304126Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9304135Z 2023-01-11T21:03:35.9304478Z  Previous write of size 1 at 0x7b7400032286 by main thread: 2023-01-11T21:03:35.9308524Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.9308971Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9309421Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9309925Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9310392Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9310717Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.9311058Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.9311478Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.9311897Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.9313159Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.9313612Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.9314004Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9314758Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9315465Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9315817Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9316147Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9317567Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9317990Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9318355Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9319747Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9320116Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9320911Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9321583Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9321989Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9323579Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9323968Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9324438Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9324801Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9325065Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9325537Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9325749Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9325951Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9326150Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9326420Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9327002Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9327211Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9327365Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9327374Z 2023-01-11T21:03:35.9327808Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9328117Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9328343Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9328640Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9329012Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9329841Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9330337Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9330825Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9331310Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9331658Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9332733Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9333409Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9333739Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9334959Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9335251Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9335423Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9335694Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9336839Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9337197Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9338307Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9338587Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9338855Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9340017Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9340347Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9341437Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9341881Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9342076Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9342367Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9343476Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9343789Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9344856Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9345153Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9345416Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9346594Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9346922Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9348019Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9348307Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9348526Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9348672Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9349353Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9349504Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9349686Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9349909Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9350141Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9350356Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9350740Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9351123Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9351334Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9351530Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9352349Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9352667Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9352894Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9353672Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9353894Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9354344Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9354811Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9355050Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9356046Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9356343Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9356723Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9356966Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9357217Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9357634Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9357801Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9358002Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9358185Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9358478Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9359005Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9359221Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9359389Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9359400Z 2023-01-11T21:03:35.9359828Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.9360138Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9360533Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9361091Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9361394Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9361927Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9362180Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9362482Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9363221Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9363628Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9363969Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9364333Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9365377Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9365661Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9365889Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9366563Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9366820Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9367844Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9368147Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9368376Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9369575Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9369841Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9370119Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9370548Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9370734Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9370954Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9371163Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9371418Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9371973Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9372189Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9372367Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9372377Z 2023-01-11T21:03:35.9375458Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9375633Z ================== 2023-01-11T21:03:35.9375690Z ================== 2023-01-11T21:03:35.9375867Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9376122Z  Write of size 1 at 0x7b74000324ee by thread T3: 2023-01-11T21:03:35.9380208Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.9380702Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9381098Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9381613Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9382149Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9382621Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9382854Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9383236Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9383469Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9383481Z 2023-01-11T21:03:35.9383809Z  Previous write of size 1 at 0x7b74000324ee by main thread: 2023-01-11T21:03:35.9387835Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:35.9388368Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9388763Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9389293Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9389787Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9390126Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.9390472Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.9390895Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.9391282Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.9392617Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.9393064Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.9393464Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9394161Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9394968Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9395366Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9395733Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9396942Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9397152Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9397355Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9398117Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9398340Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9398763Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9399149Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9399385Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9400234Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9400471Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9400725Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9400899Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9401089Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9401341Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9401454Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9401572Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9401696Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9401844Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9402157Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9402272Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9402354Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9402360Z 2023-01-11T21:03:35.9402592Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9402758Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9402882Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9403041Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9403242Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9403685Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9403952Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9404210Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9419714Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9420233Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9421357Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9421984Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9422291Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9423330Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9423603Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9423818Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9424090Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9425264Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9425571Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9426627Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9426916Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9427183Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9428340Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9428696Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9429823Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9430114Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9430306Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9430601Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9431713Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9432045Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9433131Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9433530Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9433796Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9435036Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9435357Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9436448Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9436773Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9436995Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9437143Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9437817Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9437971Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9438164Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9438361Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9438594Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9438810Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9439198Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9439584Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9439796Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9439997Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9440812Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9441013Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9441217Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9441995Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9442219Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9442648Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9443031Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9443270Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9444212Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9444461Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9444721Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9444896Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9445057Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9445308Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9445421Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9445543Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9445662Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9445805Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9446146Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9446266Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9446345Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9446364Z 2023-01-11T21:03:35.9446597Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.9446764Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9446981Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9447294Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9447465Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9447753Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9447899Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9448090Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9448497Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9448716Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9448897Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9449091Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9449643Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9449838Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9450063Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9450726Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9450960Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9451720Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9451902Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9452045Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9452665Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9452806Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9452943Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9453194Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9453306Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9453422Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9453535Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9453678Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9453986Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9454128Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9454216Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9454222Z 2023-01-11T21:03:35.9456004Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9456118Z ================== 2023-01-11T21:03:35.9456530Z ================== 2023-01-11T21:03:35.9456693Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9456861Z  Write of size 1 at 0x7b7400032761 by thread T2: 2023-01-11T21:03:35.9458985Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:35.9459238Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9459460Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9459740Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9460023Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9460287Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9460480Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9460703Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9460840Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9460845Z 2023-01-11T21:03:35.9461028Z  Previous write of size 1 at 0x7b7400032761 by main thread: 2023-01-11T21:03:35.9463189Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:35.9463459Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9463681Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9463961Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9464248Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9464441Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.9464644Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.9464870Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.9465078Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.9465796Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.9466063Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.9466282Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9466667Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9467084Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9467294Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9467489Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9468286Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9468487Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9468693Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9469435Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9469656Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9470110Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9470492Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9470730Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9471621Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9471833Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9472095Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9472267Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9472429Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9472680Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9472780Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9472896Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9473018Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9473163Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9473474Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9473592Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9473683Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9473688Z 2023-01-11T21:03:35.9473908Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9474073Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9474196Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9474341Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9474661Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9475106Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9475370Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9475636Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9475931Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9476259Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9477339Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9477963Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9478278Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9479300Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9479599Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9479811Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9480080Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9481228Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9481531Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9482589Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9482902Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9483167Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9484350Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9484671Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9485769Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9486060Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9486253Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9486567Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9487704Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9488014Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9489072Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9489364Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9489633Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9490795Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9491144Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9492267Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9492560Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9492747Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9492894Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9493573Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9493727Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9493914Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9494109Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9494457Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9494720Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9495105Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9495494Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9495707Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9495908Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9496725Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9496945Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9497153Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9497895Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9498155Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9498693Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9499354Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9499831Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9501427Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9501841Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9502300Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9502610Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9502901Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9503375Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9503574Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9503782Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9503994Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9504260Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9504848Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9505054Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9505214Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9505225Z 2023-01-11T21:03:35.9505627Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.9505917Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9506296Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9506867Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9507173Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9507698Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9507975Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9508351Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9509095Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9509498Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9509832Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9510182Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9511238Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9511528Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9511931Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9513175Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9513547Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9515056Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9515370Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9515627Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9516743Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9517037Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9517307Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9517780Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9517974Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9518179Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9518391Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9518654Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9519236Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9519486Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9519645Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9519654Z 2023-01-11T21:03:35.9522810Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9522934Z ================== 2023-01-11T21:03:35.9523045Z ================== 2023-01-11T21:03:35.9523336Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9523642Z  Write of size 1 at 0x7b7400032761 by thread T3: 2023-01-11T21:03:35.9527785Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:35.9528280Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9528677Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9529194Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9529713Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9530236Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9530488Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9530881Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9531117Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9531126Z 2023-01-11T21:03:35.9531447Z  Previous write of size 1 at 0x7b7400032761 by main thread: 2023-01-11T21:03:35.9535659Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:35.9536121Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9536519Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9537027Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9537614Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9537968Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:35.9538330Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:35.9538736Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:35.9539121Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:35.9540482Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:35.9540900Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:35.9541295Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9541997Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9542724Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9543111Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9543471Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9544934Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9545350Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9545722Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9547079Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9547491Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9548314Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9549023Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9549469Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9551059Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9551436Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9551901Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9552204Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9552499Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9552971Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9553204Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9553397Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9553610Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9553879Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9554468Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9554743Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9554903Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9554913Z 2023-01-11T21:03:35.9555309Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9555613Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9555832Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9556119Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9556506Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9557330Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9557821Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9558303Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9558780Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9559377Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9561333Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9562509Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9563070Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9565016Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9565511Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9565845Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9566330Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9568456Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9569050Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9571080Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9571579Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9572067Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9574246Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9574955Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9576984Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9577584Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9577930Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9578554Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9580620Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9581177Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9583129Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9583678Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9584164Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9586360Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9586957Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9588990Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9589511Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9589854Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9590120Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9591366Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9591670Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9592007Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9592366Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9592789Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9593209Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9593916Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9594673Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9595053Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9595419Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9596884Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9597252Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9597622Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9598990Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9599450Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9600227Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9600943Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9601411Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9602980Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9603365Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9603825Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9604127Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9604413Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9604884Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9605078Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9605288Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9605495Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9605760Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9606351Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9606566Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9606762Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9606772Z 2023-01-11T21:03:35.9607174Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.9607472Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9607851Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9608414Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9608725Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9609263Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9609534Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9609907Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9610681Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9611073Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9611404Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9611764Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9612792Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9613085Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9613489Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9614849Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9615227Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9616661Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9617028Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9617281Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9618468Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9618729Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9619000Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9619459Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9619661Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9619856Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9620074Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9620344Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9620929Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9621140Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9621302Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9621312Z 2023-01-11T21:03:35.9624442Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9624564Z ================== 2023-01-11T21:03:35.9624681Z ================== 2023-01-11T21:03:35.9624981Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9625285Z  Write of size 1 at 0x7b7400032762 by thread T3: 2023-01-11T21:03:35.9629452Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.9629911Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9630306Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9630818Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9631336Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9631824Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9632078Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9632483Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9632718Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9632730Z 2023-01-11T21:03:35.9633051Z  Previous write of size 1 at 0x7b7400032762 by thread T1: 2023-01-11T21:03:35.9637239Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.9637739Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9638147Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9638652Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9639206Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9639697Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9639945Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9640344Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9640589Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9640598Z 2023-01-11T21:03:35.9641001Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9641307Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9641521Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9641809Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9642181Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9642986Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9643473Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9643966Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9644441Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9645026Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9647085Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9648246Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9648793Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9650715Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9651232Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9651557Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9652047Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9654235Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9654884Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9656877Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9657381Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9657870Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9660053Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9660709Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9662780Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9663328Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9663671Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9664217Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9666248Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9666836Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9668866Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9669377Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9669860Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9672014Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9672610Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9674697Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9675272Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9675609Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9675858Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9677137Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9677411Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9677770Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9678129Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9678548Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9678934Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9679642Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9680354Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9680731Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9681086Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9682549Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9682944Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9683311Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9684731Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9685138Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9685917Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9686614Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9687053Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9688655Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9689034Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9689494Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9689836Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9690129Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9690590Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9690785Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9690980Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9691189Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9691450Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9692034Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9692280Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9692443Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9692452Z 2023-01-11T21:03:35.9692839Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:35.9693134Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9693531Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9694103Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9694508Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9695046Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9695317Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9695658Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9696427Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9696833Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9697172Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9697536Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9698595Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9698949Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9699365Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9700627Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9701015Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9702507Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9702831Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9703086Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9704249Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9704506Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9704778Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9705256Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9705461Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9705683Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9705902Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9706170Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9706743Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9706956Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9707116Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9707181Z 2023-01-11T21:03:35.9707570Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.9707874Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9708279Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9708859Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9709169Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9709708Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9709990Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9710340Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9711143Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9711550Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9711885Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9712245Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9713311Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9713603Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9714017Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9715331Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9715724Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9717169Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9717538Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9717792Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9718988Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9719254Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9719528Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9719999Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9720206Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9720424Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9720640Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9720914Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9721506Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9721723Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9721888Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9721897Z 2023-01-11T21:03:35.9725131Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9725259Z ================== 2023-01-11T21:03:35.9725374Z ================== 2023-01-11T21:03:35.9725664Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:35.9725975Z  Write of size 1 at 0x7b7400032762 by thread T2: 2023-01-11T21:03:35.9730241Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.9730801Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9731210Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9731728Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9732266Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9732765Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9733017Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9733425Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9733666Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9733675Z 2023-01-11T21:03:35.9734003Z  Previous write of size 1 at 0x7b7400032762 by thread T1: 2023-01-11T21:03:35.9738304Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:35.9738830Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:35.9739240Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:35.9739754Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:35.9740327Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:35.9740821Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:35.9741078Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:35.9741484Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:35.9741732Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:35.9741745Z 2023-01-11T21:03:35.9742144Z  Location is heap block of size 2520 at 0x7b7400032000 allocated by main thread: 2023-01-11T21:03:35.9742443Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:35.9742655Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:35.9742940Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:35.9743318Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:35.9744146Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:35.9744631Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:35.9745118Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:35.9745609Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:35.9746214Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:35.9748285Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:35.9749485Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:35.9750064Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:35.9752003Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:35.9752504Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:35.9752838Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:35.9753334Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:35.9755577Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:35.9756174Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9758190Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9758708Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9759202Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9761388Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9762003Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9764077Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9764617Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9764960Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9765494Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:35.9767558Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:35.9768125Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:35.9770123Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:35.9770659Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:35.9771153Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:35.9773319Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:35.9773917Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:35.9776098Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:35.9776698Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:35.9777042Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:35.9777311Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:35.9778624Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:35.9778901Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:35.9779258Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:35.9779629Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:35.9780054Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:35.9780449Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:35.9781153Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:35.9781863Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:35.9782248Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:35.9782614Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:35.9784077Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:35.9784488Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:35.9784846Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:35.9786268Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:35.9786675Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:35.9787471Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:35.9788183Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:35.9788612Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:35.9790215Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:35.9790591Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:35.9791064Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:35.9791418Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:35.9791713Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:35.9792173Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9792370Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9792586Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9792801Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9793072Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9793648Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9793861Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9794020Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9794066Z 2023-01-11T21:03:35.9794459Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:35.9794820Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9795216Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9795798Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9796118Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9796660Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9796934Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9797287Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9798061Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9798463Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9798803Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9799165Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9800218Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9800511Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9800969Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9802235Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9802617Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9804120Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9804441Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9804687Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9805855Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9806111Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9806381Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9806841Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9807065Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9807275Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9807496Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9807762Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9808349Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9808561Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9808729Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9808739Z 2023-01-11T21:03:35.9809122Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:35.9809464Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:35.9809862Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:35.9810445Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:35.9810745Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:35.9811288Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:35.9811559Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:35.9811911Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:35.9812708Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:35.9813110Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:35.9813456Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:35.9813816Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:35.9814971Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:35.9815275Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:35.9815690Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:35.9816944Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:35.9817344Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:35.9818801Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:35.9819178Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:35.9819436Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:35.9820595Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:35.9820900Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:35.9821173Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:35.9821628Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:35.9821830Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:35.9822040Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:35.9822243Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:35.9822511Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:35.9823095Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:35.9823306Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:35.9823467Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:35.9823476Z 2023-01-11T21:03:35.9826703Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:35.9826826Z ================== 2023-01-11T21:03:36.0048372Z ================== 2023-01-11T21:03:36.0050870Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0051493Z  Write of size 1 at 0x7b7400034a76 by main thread: 2023-01-11T21:03:36.0057872Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:36.0058475Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0058749Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0059067Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0059470Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0059735Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.0060042Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.0060393Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:36.0060729Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.0061643Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.0061919Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.0062245Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.0062712Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.0063289Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.0063581Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.0063882Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0065044Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0065338Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0065684Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0066782Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.0067063Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.0095720Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.0096460Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.0096919Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.0098543Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0098904Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0099358Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.0099632Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.0099898Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.0100568Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0100898Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0101124Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0101341Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0101609Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0102221Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0102874Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0103053Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0103063Z 2023-01-11T21:03:36.0103441Z  Previous write of size 1 at 0x7b7400034a76 by thread T2: 2023-01-11T21:03:36.0107594Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:36.0108135Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0108536Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0109067Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0109460Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0109771Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0109913Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0110137Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0110273Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0110279Z 2023-01-11T21:03:36.0110502Z  Location is heap block of size 2520 at 0x7b7400034800 allocated by main thread: 2023-01-11T21:03:36.0110666Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.0110779Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.0110940Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.0111145Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.0111588Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.0111856Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.0112119Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.0112383Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.0112708Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.0113782Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.0114458Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.0114836Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.0115865Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.0116139Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.0116326Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.0116596Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.0117743Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.0118098Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.0119195Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.0119487Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.0119752Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.0120916Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.0121260Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.0122393Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.0122682Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.0122874Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.0123172Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.0124283Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.0124590Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.0125647Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.0125986Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.0126256Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.0127420Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.0127736Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.0128832Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.0129144Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.0129334Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.0129480Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.0130175Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.0130330Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.0130521Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.0130719Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.0130953Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.0131175Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.0131558Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.0131943Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.0132157Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.0132356Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0133138Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0133394Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0133600Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0134579Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.0135009Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.0135605Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.0135996Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.0136239Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.0137108Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0137319Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0137577Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.0137751Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.0137940Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.0138195Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0138311Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0138428Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0138549Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0138696Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0139006Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0139126Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0139221Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0139228Z 2023-01-11T21:03:36.0139456Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.0139622Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0139853Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0140166Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0140340Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0140633Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0140787Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0140981Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0141393Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0141612Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0141795Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0141990Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0142548Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0142709Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0142931Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0143622Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0143829Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0144629Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0144807Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0144947Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0145555Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0145703Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0145851Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0146106Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0146220Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0146338Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0146447Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0146595Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0146909Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0147027Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0147121Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0147127Z 2023-01-11T21:03:36.0148781Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:36.0148881Z ================== 2023-01-11T21:03:36.0193364Z ================== 2023-01-11T21:03:36.0193694Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0194006Z  Write of size 1 at 0x7b7400034ceb by thread T1: 2023-01-11T21:03:36.0198022Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:36.0198443Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0198830Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0199316Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0199835Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0200280Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0200498Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0200851Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0201078Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0201185Z 2023-01-11T21:03:36.0201544Z  Previous write of size 1 at 0x7b7400034ceb by main thread: 2023-01-11T21:03:36.0205349Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:36.0205825Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0206200Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0206666Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0207167Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0207464Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.0207791Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.0208153Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:36.0208468Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.0209729Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.0210102Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.0210578Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.0211209Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.0211852Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.0212193Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.0212565Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0213939Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0214290Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0214780Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0216035Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.0216444Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.0217240Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.0217904Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.0218412Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.0219918Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0220296Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0220778Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.0221068Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.0221309Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.0221714Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0221909Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0222118Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0222304Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0222571Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0223122Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0223323Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0223478Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0223492Z 2023-01-11T21:03:36.0223892Z  Location is heap block of size 2520 at 0x7b7400034800 allocated by main thread: 2023-01-11T21:03:36.0224185Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.0224383Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.0224673Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.0225009Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.0225754Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.0226314Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.0226673Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.0227127Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.0227652Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.0228885Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.0229514Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.0229817Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.0230856Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.0231162Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.0231350Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.0231621Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.0232841Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.0233154Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.0234217Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.0234507Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.0234846Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.0236073Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.0236394Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.0237492Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.0237778Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.0237975Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.0238272Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.0239387Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.0239722Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.0240804Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.0241096Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.0241366Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.0242524Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.0242871Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.0244009Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.0244298Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.0244487Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.0244637Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.0245311Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.0245464Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.0245658Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.0245860Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.0246095Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.0246311Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.0246692Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.0247078Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.0247318Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.0247518Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0248327Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0248547Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0248752Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0249498Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.0249722Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.0250148Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.0250533Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.0250771Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.0251626Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0251862Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0252122Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.0252298Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.0252459Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.0252737Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0252855Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0252975Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0253097Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0253246Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0253557Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0253677Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0253771Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0253777Z 2023-01-11T21:03:36.0254016Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.0254170Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0254492Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0254808Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0254980Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0255279Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0255430Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0255621Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0256032Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0256253Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0256501Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0256703Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0257266Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0257431Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0257661Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0258360Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0258569Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0259347Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0259527Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0259670Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0260368Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0260517Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0260669Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0260924Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0261059Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0261178Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0261301Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0261447Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0261757Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0261876Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0261968Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0261974Z 2023-01-11T21:03:36.0263672Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882ddc1) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:36.0263748Z ================== 2023-01-11T21:03:36.0631914Z ================== 2023-01-11T21:03:36.0632318Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0632602Z  Write of size 2 at 0x7b840000c258 by thread T1: 2023-01-11T21:03:36.0636596Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.0637086Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0637475Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0638059Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0638519Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0638949Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0639176Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0639508Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0639722Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0639735Z 2023-01-11T21:03:36.0640103Z  Previous write of size 2 at 0x7b840000c258 by main thread: 2023-01-11T21:03:36.0644146Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.0644574Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0644927Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0645392Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0645875Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0646192Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.0646483Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.0646875Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.0647224Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.0648484Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.0648882Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.0649230Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0650659Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0651038Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0651417Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0652872Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0653168Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0654023Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0654270Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0654582Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0654840Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0654960Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0655081Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0655248Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0655400Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0655708Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0655828Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0655909Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0655930Z 2023-01-11T21:03:36.0656158Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.0656327Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.0656452Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.0656614Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.0656818Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.0657259Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.0657525Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.0657790Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.0658054Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.0658377Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.0659491Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.0660161Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.0660464Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.0661503Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.0661777Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.0661955Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.0662637Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.0662844Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.0663048Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.0663879Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0664122Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0664990Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0665201Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0665364Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0665619Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0665737Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0665857Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0665965Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0666113Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0666423Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0666544Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0666639Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0666646Z 2023-01-11T21:03:36.0666862Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.0667071Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0667291Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0667609Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0667783Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0668076Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0668227Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0668419Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0668846Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0669067Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0669253Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0669434Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0670011Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0670175Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0670400Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0671076Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0671323Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0672365Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0672616Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0672785Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0673610Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0673867Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0674078Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0674426Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0674654Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0674850Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0675041Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0675293Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0675741Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0675930Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0676071Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0676081Z 2023-01-11T21:03:36.0679027Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.0679141Z ================== 2023-01-11T21:03:36.0679289Z ================== 2023-01-11T21:03:36.0679574Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0679896Z  Write of size 2 at 0x7b840000c744 by thread T3: 2023-01-11T21:03:36.0683548Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.0684113Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0684483Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0684914Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0685283Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0685660Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0685888Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0686259Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0686470Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0686479Z 2023-01-11T21:03:36.0686742Z  Previous write of size 2 at 0x7b840000c744 by main thread: 2023-01-11T21:03:36.0690584Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.0691130Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0691511Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0692031Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0692559Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0692949Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.0693325Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.0693717Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.0694105Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.0695593Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.0695828Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.0696017Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0696817Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0697022Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0697303Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0698116Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0698397Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0699267Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0699483Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0699648Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0699900Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0700004Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0700124Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0700245Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0700396Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0700710Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0700829Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0700921Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0700928Z 2023-01-11T21:03:36.0701161Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.0701328Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.0701483Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.0701643Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.0701880Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.0702323Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.0702591Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.0702853Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.0703118Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.0703471Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.0704541Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.0705184Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.0705486Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.0706512Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.0706838Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.0707016Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.0707732Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.0707911Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.0708120Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.0708932Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0709177Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0710028Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0710296Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0710458Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0710699Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0710813Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0710933Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0711054Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0711203Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0711540Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0711660Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0711755Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0711761Z 2023-01-11T21:03:36.0711975Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.0712140Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0712359Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0712753Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0712930Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0713346Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0713556Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0713841Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0714617Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0715007Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0715331Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0715675Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0716586Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0716900Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0717220Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0718238Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0718590Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0719903Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0720208Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0720402Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0721463Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0721709Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0721974Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0722414Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0722625Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0722832Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0723018Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0723245Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0723790Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0723998Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0724198Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0724209Z 2023-01-11T21:03:36.0727124Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.0727244Z ================== 2023-01-11T21:03:36.0727400Z ================== 2023-01-11T21:03:36.0727676Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0728013Z  Write of size 2 at 0x7b840000c744 by thread T2: 2023-01-11T21:03:36.0731938Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.0732444Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0732856Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0733365Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0733826Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0734255Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0734629Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0735014Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0735267Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0735279Z 2023-01-11T21:03:36.0735632Z  Previous write of size 2 at 0x7b840000c744 by main thread: 2023-01-11T21:03:36.0738896Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.0739163Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0739388Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0739669Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0739956Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0740149Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.0740352Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.0740578Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.0740787Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.0741563Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.0741818Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.0742016Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0742827Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0743033Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0743235Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0744059Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0744301Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0745158Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0745367Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0745560Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0745815Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0745928Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0746048Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0746169Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0746317Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0746624Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0746731Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0746823Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0746829Z 2023-01-11T21:03:36.0747052Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.0747246Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.0747370Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.0747531Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.0747735Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.0748175Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.0748445Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.0748707Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.0748969Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.0749290Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.0750359Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.0751017Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.0751345Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.0752499Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.0752775Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.0752982Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.0753717Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.0753974Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.0754302Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.0755817Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0756342Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0757915Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0758298Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0758595Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0759035Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0759245Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0759460Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0759680Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0759946Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0760504Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0760721Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0760889Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0760900Z 2023-01-11T21:03:36.0761269Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.0761555Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0761961Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0762495Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0762800Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0763319Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0763633Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0763954Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0764729Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0765139Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0765451Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0765787Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0766793Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0767084Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0767503Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0768717Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0769091Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0770468Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0770790Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0771050Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0772157Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0772462Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0772729Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0773171Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0773377Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0773596Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0773815Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0774071Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0774779Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0774999Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0775168Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0775178Z 2023-01-11T21:03:36.0778337Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.0778467Z ================== 2023-01-11T21:03:36.0778654Z ================== 2023-01-11T21:03:36.0778960Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0779279Z  Write of size 2 at 0x7b840000c25c by thread T1: 2023-01-11T21:03:36.0781581Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:36.0781890Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0782114Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0782398Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0782716Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0782984Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0783126Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0783358Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0783495Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0783503Z 2023-01-11T21:03:36.0783691Z  Previous write of size 2 at 0x7b840000c25c by main thread: 2023-01-11T21:03:36.0785831Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:36.0786088Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0786309Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0786590Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0786908Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0787102Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.0787305Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.0787531Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.0787744Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.0788548Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.0788766Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.0788965Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0789756Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0789963Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0790167Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0790977Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0791247Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0792128Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0792353Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0792517Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0792757Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0792875Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0792995Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0793115Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0793271Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0793581Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0793699Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0793793Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0793799Z 2023-01-11T21:03:36.0794021Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.0794187Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.0794299Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.0794460Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.0794828Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.0795442Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.0795855Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.0796336Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.0796807Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.0797393Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.0799369Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.0800540Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.0801121Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.0802371Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.0802695Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.0802872Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.0803551Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.0803730Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.0803973Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.0804797Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0805041Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0805893Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0806103Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0806269Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0806521Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0806638Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0806795Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0806916Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0807063Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0807375Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0807494Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0807574Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0807594Z 2023-01-11T21:03:36.0807813Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.0807982Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0808201Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0808663Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0808842Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0809264Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0809500Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0809810Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0810505Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0810862Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0811177Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0811517Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0812530Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0812839Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0813254Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0814511Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0814942Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0816253Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0816652Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0816859Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0817783Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0818000Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0818212Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0818561Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0818742Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0818918Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0819089Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0819280Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0819729Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0819905Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0820042Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0820050Z 2023-01-11T21:03:36.0822554Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.0822712Z ================== 2023-01-11T21:03:36.0822886Z ================== 2023-01-11T21:03:36.0823145Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0823415Z  Write of size 2 at 0x7b840000c74c by thread T3: 2023-01-11T21:03:36.0826771Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:36.0827157Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0827489Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0827904Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0828316Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0828713Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0828913Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0829254Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0829470Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0829479Z 2023-01-11T21:03:36.0829799Z  Previous write of size 2 at 0x7b840000c74c by main thread: 2023-01-11T21:03:36.0833089Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:36.0833571Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0833887Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0834288Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0834749Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0835041Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.0835336Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.0835660Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.0835992Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.0837252Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.0837616Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.0837961Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.0839389Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.0839750Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.0840093Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.0841516Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0841929Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0843433Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0843795Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0844080Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0844515Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0844714Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0844908Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0845097Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0845350Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0845882Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0846123Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0846283Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0846292Z 2023-01-11T21:03:36.0846691Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.0846977Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.0847185Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.0847451Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.0847797Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.0848601Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.0849058Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.0849505Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.0849948Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.0850505Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.0852352Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.0853419Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.0853989Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.0855885Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.0856382Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.0856670Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.0857880Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.0858182Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.0858527Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.0859926Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0860332Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0861702Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0862026Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0862303Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0862684Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0862865Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0863025Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0863191Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0863416Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0863856Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0864046Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0864219Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0864232Z 2023-01-11T21:03:36.0864672Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.0864885Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0865096Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0865410Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0865589Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0865883Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0866035Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0866222Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0866626Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0866844Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0867074Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0867271Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0867827Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0867989Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0868215Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0868915Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0869124Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0869899Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0870075Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0870217Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0870825Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0870969Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0871120Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0871373Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0871515Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0871620Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0871743Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0871887Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0872200Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0872317Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0872410Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0872416Z 2023-01-11T21:03:36.0874087Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.0874160Z ================== 2023-01-11T21:03:36.0874287Z ================== 2023-01-11T21:03:36.0874457Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0874731Z  Write of size 2 at 0x7b840000c748 by thread T2: 2023-01-11T21:03:36.0876885Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:36.0877158Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0877378Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0877690Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0877977Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0878242Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0878384Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0878594Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0878732Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0878737Z 2023-01-11T21:03:36.0878950Z  Previous write of size 2 at 0x7b840000c748 by thread T3: 2023-01-11T21:03:36.0881080Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:36.0881348Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.0881572Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.0881853Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.0882229Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.0882643Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.0882842Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.0883164Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.0883358Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.0883382Z 2023-01-11T21:03:36.0883723Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.0883999Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.0884212Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.0884488Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.0884826Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.0885610Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.0886040Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.0886512Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.0886996Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.0887605Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.0889506Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.0890647Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.0891268Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.0893094Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.0893589Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.0893912Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.0895211Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.0895498Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.0895818Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.0897219Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.0897627Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.0899339Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.0950791Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.0951046Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.0951415Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0951534Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0951655Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0951776Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0951924Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0952224Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0952346Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0952438Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0952446Z 2023-01-11T21:03:36.0952695Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.0952865Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0953087Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0953405Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0953581Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0953876Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0954028Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0954217Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0954681Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0954902Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0955145Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0955340Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0955899Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0956063Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0956289Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0956976Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0957187Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0957956Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0958133Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0958275Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0958888Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0959037Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0959184Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0959435Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0959592Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0959711Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0959832Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0959977Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0960285Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0960401Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0960493Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0960499Z 2023-01-11T21:03:36.0960699Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.0960867Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.0961082Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.0961425Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.0961598Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.0961890Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.0962040Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.0962229Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.0962636Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.0962852Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.0963034Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.0963227Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.0963787Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.0963947Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.0964171Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.0964833Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.0965071Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.0965871Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.0966051Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.0966179Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.0966800Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.0966950Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.0967100Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.0967339Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.0967453Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.0967572Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.0967699Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.0967923Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.0968419Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.0968626Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.0970858Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.0970869Z 2023-01-11T21:03:36.0997396Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.0997570Z ================== 2023-01-11T21:03:36.0997786Z ================== 2023-01-11T21:03:36.0997966Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.0998147Z  Write of size 2 at 0x7b840000c25e by thread T1: 2023-01-11T21:03:36.1000364Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:36.1000635Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1000860Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1001143Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1001434Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1001703Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1001846Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1002072Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1002210Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1002217Z 2023-01-11T21:03:36.1002404Z  Previous write of size 2 at 0x7b840000c25e by main thread: 2023-01-11T21:03:36.1004548Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:36.1004877Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1005089Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1005366Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1005658Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1005850Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1006050Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1006276Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1006489Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1007284Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.1007499Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.1007700Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1008514Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1008715Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1008923Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1009764Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1010009Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1010881Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1011093Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1011257Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1011511Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1011628Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1011747Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1011906Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1012198Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1012681Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1012866Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1013020Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1013026Z 2023-01-11T21:03:36.1013356Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.1013644Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1013846Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1014090Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1014511Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1019048Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1019537Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1019986Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1020434Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1020992Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1022826Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1024020Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1024625Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1026549Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1027082Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1027371Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.1028553Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.1028821Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.1029033Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.1030203Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1030643Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1031871Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1032279Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1032526Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1032921Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1033095Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1033232Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1033394Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1033634Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1034017Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1034137Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1034254Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1034264Z 2023-01-11T21:03:36.1034689Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1034982Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1035326Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1035855Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1036165Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1036667Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1036901Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1037209Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1037957Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1038411Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1038734Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1039061Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1039985Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1040289Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1040756Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1041980Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1042370Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1043822Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1044153Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1044414Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1045256Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1045405Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1045589Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1045840Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1045957Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1046064Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1046182Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1046327Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1046636Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1046755Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1046849Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1046857Z 2023-01-11T21:03:36.1048552Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1048627Z ================== 2023-01-11T21:03:36.1048691Z ================== 2023-01-11T21:03:36.1048860Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1049039Z  Write of size 2 at 0x7b840000c74e by thread T3: 2023-01-11T21:03:36.1051194Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:36.1051453Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1051708Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1051989Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1052275Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1052543Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1052687Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1052911Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1053079Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1053086Z 2023-01-11T21:03:36.1053275Z  Previous write of size 2 at 0x7b840000c74e by main thread: 2023-01-11T21:03:36.1055528Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:36.1055789Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1056015Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1056295Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1056587Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1056779Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1057035Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1057263Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1057475Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1058302Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.1058520Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.1058721Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1059508Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1059715Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1059918Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1060727Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1060972Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1061884Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1062092Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1062258Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1062536Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1062651Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1062757Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1062876Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1063022Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1063332Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1063453Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1063546Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1063551Z 2023-01-11T21:03:36.1063777Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.1063946Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1064074Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1064234Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1064440Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1064880Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1065151Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1065413Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1065674Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1065997Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1067162Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1068061Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1068538Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1070222Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1070747Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1071035Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.1072187Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.1072567Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.1072947Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.1074483Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1074983Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1076476Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1076881Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1077209Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1077650Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1077857Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1078063Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1078261Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1078513Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1079048Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1079270Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1079506Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1079520Z 2023-01-11T21:03:36.1079948Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.1080239Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1080626Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1081216Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1081527Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1082004Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1082287Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1082700Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1083424Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1083836Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1084170Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1084526Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1085575Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1085834Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1086080Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1086989Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1087322Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1088536Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1088899Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1089168Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1090334Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1090607Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1090876Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1091343Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1091547Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1091743Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1091880Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1092028Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1092340Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1092457Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1092549Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1092555Z 2023-01-11T21:03:36.1094218Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1094293Z ================== 2023-01-11T21:03:36.1094462Z ================== 2023-01-11T21:03:36.1094635Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1094814Z  Write of size 2 at 0x7b840000c74a by thread T2: 2023-01-11T21:03:36.1097062Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:36.1097326Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1097552Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1097835Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1098130Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1098399Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1098541Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1098766Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1098903Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1098912Z 2023-01-11T21:03:36.1099096Z  Previous write of size 2 at 0x7b840000c74a by thread T3: 2023-01-11T21:03:36.1101216Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:36.1101504Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1101725Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1102004Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1102320Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1102587Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1102728Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1102951Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1103089Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1103095Z 2023-01-11T21:03:36.1103311Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.1103479Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1103600Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1103757Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1103960Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1104398Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1104669Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1104933Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1105194Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1105515Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1106654Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1107290Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1107593Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1108620Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1108907Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1109087Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.1109772Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.1109981Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.1110185Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.1111296Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1111608Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1112903Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1113226Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1113492Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1113926Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1114113Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1114330Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1114514Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1114827Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1115414Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1115610Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1115811Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1115819Z 2023-01-11T21:03:36.1116147Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.1116419Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1116788Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1117319Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1117613Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1118088Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1118330Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1118716Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1119374Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1119741Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1120015Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1120266Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1121043Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1121297Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1121611Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1122596Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1122924Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1124069Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1124390Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1124613Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1125628Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1125864Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1126115Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1126527Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1126715Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1126923Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1127124Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1127291Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1127823Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1128025Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1128170Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1128180Z 2023-01-11T21:03:36.1128558Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.1128848Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1129239Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1129778Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1130075Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1130566Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1130842Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1131151Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1131966Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1132349Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1132648Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1132958Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1133931Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1134287Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1134616Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1135283Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1135498Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1136262Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1136445Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1136589Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1137199Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1137422Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1137573Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1137831Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1137949Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1138069Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1138190Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1138338Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1138649Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1138772Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1138866Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1138872Z 2023-01-11T21:03:36.1140577Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1140658Z ================== 2023-01-11T21:03:36.1140886Z ================== 2023-01-11T21:03:36.1141058Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1141234Z  Write of size 2 at 0x7b840000c262 by thread T1: 2023-01-11T21:03:36.1143377Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:36.1143667Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1143891Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1144171Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1144454Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1144718Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1144860Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1145109Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1145248Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1145254Z 2023-01-11T21:03:36.1145440Z  Previous write of size 2 at 0x7b840000c262 by main thread: 2023-01-11T21:03:36.1147564Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:36.1147823Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1148043Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1148320Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1148607Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1148841Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1149043Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1149270Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1149481Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1150283Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.1150502Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.1150701Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1151499Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1151703Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1151904Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1152713Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1152954Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1153834Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1154058Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1154235Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1154492Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1154704Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1154828Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1154950Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1155098Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1155411Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1155533Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1155630Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1155637Z 2023-01-11T21:03:36.1155863Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.1156029Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1156138Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1156300Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1156504Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1156949Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1157222Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1157486Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1157747Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1158104Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1159211Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1159832Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1160136Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1161171Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1161440Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1161613Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.1162320Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.1162496Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.1162700Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.1163546Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1163787Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1164791Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1165008Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1165171Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1165428Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1165544Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1165662Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1175465Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1175793Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1176309Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1185014Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1185117Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1185127Z 2023-01-11T21:03:36.1185439Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1185671Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1185984Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1186396Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1186614Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1187072Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1187263Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1187509Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1188002Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1188276Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1188495Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1188725Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1189388Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1189576Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1189858Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1190673Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1190930Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1191877Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1192055Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1192196Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1192982Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1193229Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1193404Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1200811Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1200962Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1201088Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1201207Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1201359Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1201671Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1201790Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1201882Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1201889Z 2023-01-11T21:03:36.1203571Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1203644Z ================== 2023-01-11T21:03:36.1203709Z ================== 2023-01-11T21:03:36.1203938Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1204098Z  Write of size 2 at 0x7b840000c272 by thread T1: 2023-01-11T21:03:36.1206272Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:36.1206534Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1206754Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1207035Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1207327Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1207593Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1207736Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1207957Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1208093Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1208099Z 2023-01-11T21:03:36.1208282Z  Previous write of size 2 at 0x7b840000c272 by thread T3: 2023-01-11T21:03:36.1210431Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:36.1210729Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1210952Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1211260Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1211549Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1211812Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1211951Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1212171Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1212306Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1212312Z 2023-01-11T21:03:36.1212533Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.1212699Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1212820Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1212966Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1213168Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1213608Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1213888Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1214150Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1214513Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1214893Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1215996Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1216617Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1216940Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1217962Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1218234Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1218410Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.1219121Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.1219309Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.1219500Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.1220345Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1220587Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1221442Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1221649Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1221817Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1222073Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1222189Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1222308Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1222428Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1222575Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1222889Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1223036Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1223131Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1223136Z 2023-01-11T21:03:36.1223340Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1223506Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1223724Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1224040Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1224213Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1224506Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1224684Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1224874Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1225276Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1225491Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1225679Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1225872Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1226431Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1226591Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1226818Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1227482Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1227690Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1228477Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1228689Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1228816Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1229464Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1229610Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1229758Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1229999Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1230117Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1230234Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1230353Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1230501Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1230810Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1230929Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1231021Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1231026Z 2023-01-11T21:03:36.1231238Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.1231402Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1231623Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1231939Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1232099Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1232390Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1232541Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1232757Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1233160Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1233374Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1233558Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1233751Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1234335Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1234498Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1234794Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1235459Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1235685Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1236450Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1236625Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1236766Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1237371Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1237549Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1237700Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1237949Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1238063Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1238182Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1238288Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1238434Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1238747Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1238893Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1238987Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1238992Z 2023-01-11T21:03:36.1240659Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1240734Z ================== 2023-01-11T21:03:36.1240800Z ================== 2023-01-11T21:03:36.1240966Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1241139Z  Write of size 2 at 0x7b840000c272 by thread T2: 2023-01-11T21:03:36.1243285Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:36.1243587Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1243811Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1244092Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1244380Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1244647Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1244814Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1245037Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1245172Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1245177Z 2023-01-11T21:03:36.1245362Z  Previous write of size 2 at 0x7b840000c272 by thread T3: 2023-01-11T21:03:36.1247470Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:36.1247744Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1247965Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1248230Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1248527Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1248820Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1248948Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1249169Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1249303Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1249309Z 2023-01-11T21:03:36.1249526Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.1249693Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1249815Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1249974Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1250203Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1250643Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1250908Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1251178Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1251440Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1251766Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1252834Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1253512Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1253812Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1254990Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1255281Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1255454Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.1256136Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.1256318Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.1256524Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.1257338Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1257612Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1258524Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1258739Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1258902Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1259156Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1259271Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1259377Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1259496Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1259642Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1259952Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1260070Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1260163Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1260169Z 2023-01-11T21:03:36.1260382Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.1260548Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1260766Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1261082Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1261252Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1261543Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1261695Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1261901Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1262309Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1262526Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1262709Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1262903Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1263490Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1263658Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1263881Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1264556Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1264765Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1265529Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1265705Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1265845Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1266457Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1266632Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1266784Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1267035Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1267149Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1267268Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1267392Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1267525Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1267837Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1267955Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1268075Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1268081Z 2023-01-11T21:03:36.1268293Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.1268459Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1268762Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1269076Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1269251Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1269542Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1269695Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1269885Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1270284Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1270503Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1270692Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1270886Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1271446Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1271638Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1271864Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1272526Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1272737Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1273548Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1273725Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1273870Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1274481Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1274696Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1274849Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1275104Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1275219Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1275340Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1275447Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1275594Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1275902Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1276020Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1276113Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1276119Z 2023-01-11T21:03:36.1277831Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1277901Z ================== 2023-01-11T21:03:36.1277966Z ================== 2023-01-11T21:03:36.1278132Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1278307Z  Write of size 2 at 0x7b840000b880 by thread T3: 2023-01-11T21:03:36.1280480Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.1280739Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1280961Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1281243Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1281533Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1281798Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1281938Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1282188Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1282327Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1282333Z 2023-01-11T21:03:36.1282523Z  Previous write of size 2 at 0x7b840000b880 by thread T1: 2023-01-11T21:03:36.1284682Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.1284944Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1285167Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1285447Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1285733Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1285999Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1286140Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1286359Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1286496Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1286503Z 2023-01-11T21:03:36.1286722Z  Location is heap block of size 5040 at 0x7b840000b400 allocated by main thread: 2023-01-11T21:03:36.1286891Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1287013Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1287172Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1287373Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1287843Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1288107Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1288367Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1288629Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1288981Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1290047Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1290684Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1290987Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1292012Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1292326Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1292503Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.1293207Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.1293386Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.1293590Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.1294493Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.1294735Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.1295600Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1295855Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1296019Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.1296275Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1296377Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1296494Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1296613Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1296758Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1297067Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1297187Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1297313Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1297320Z 2023-01-11T21:03:36.1297533Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.1297697Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1297915Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1298229Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1298402Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1298696Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1298836Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1299025Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1299430Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1299647Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1299833Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1300028Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1300582Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1300778Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1301002Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1301684Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1301894Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1302696Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1302877Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1303021Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1303633Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1303779Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1303927Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1304180Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1304295Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1304413Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1304533Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1304668Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1304977Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1305096Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1305189Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1305195Z 2023-01-11T21:03:36.1305406Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1305603Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1305823Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1306135Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1306308Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1306600Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1306755Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1306942Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1307371Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1307590Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1307772Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1307966Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1308526Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1308690Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1308915Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1309576Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1309786Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1310549Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1310764Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1310905Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1311515Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1311689Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1311841Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1312093Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1312209Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1312327Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1312446Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1312594Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1312909Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1313027Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1313107Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1313125Z 2023-01-11T21:03:36.1314862Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1314936Z ================== 2023-01-11T21:03:36.1386803Z ================== 2023-01-11T21:03:36.1387126Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1387531Z  Write of size 2 at 0x7b840000ae5a by main thread: 2023-01-11T21:03:36.1392420Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.1393290Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1393686Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1394181Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1394763Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1395117Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1395450Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1395858Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1396256Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1397562Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.1397970Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.1398380Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1399130Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1399849Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1400239Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1400604Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1402132Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1402525Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1402895Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1403783Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1404009Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1404499Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1405050Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1405429Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1406938Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1407337Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1407819Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1408089Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1408358Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1408775Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1408958Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1409158Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1409355Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1409610Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1410192Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1410412Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1410582Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1410591Z 2023-01-11T21:03:36.1410936Z  Previous write of size 2 at 0x7b840000ae5a by thread T1: 2023-01-11T21:03:36.1415146Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.1415689Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1416069Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1416556Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1417092Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1417661Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1417922Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1418382Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1418626Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1418636Z 2023-01-11T21:03:36.1419054Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2023-01-11T21:03:36.1419369Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1419601Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1419895Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1420275Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1420893Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1421166Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1421432Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1421699Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1422026Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1423099Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1423800Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1424104Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1425131Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1425421Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1425593Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.1425863Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.1427009Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.1427370Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1428445Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1428724Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1428990Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1430148Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1430530Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1431641Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1431944Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1432126Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1432423Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.1433535Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.1433841Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1434994Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1435327Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1435599Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1436750Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1437082Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1438169Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1438480Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1438674Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1438820Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.1439536Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.1439692Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.1439888Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.1440074Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.1440309Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.1440528Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1440910Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1441293Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1441518Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1441708Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1442504Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1442737Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1442941Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1443711Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1443939Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1444369Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1444763Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1445088Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1446460Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1446837Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1447324Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1447595Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1447934Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1448351Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1448546Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1448733Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1448928Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1449256Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1449840Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1450060Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1450232Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1450244Z 2023-01-11T21:03:36.1450669Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1450986Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1451444Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1452017Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1452336Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1452873Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1453117Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1453424Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1454138Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1454665Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1454986Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1455280Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1456229Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1456503Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1456877Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1458181Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1458540Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1459437Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1459619Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1459766Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1460379Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1460526Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1460676Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1460931Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1461097Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1461289Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1461493Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1461722Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1462253Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1462425Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1462508Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1462516Z 2023-01-11T21:03:36.1464792Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1464942Z ================== 2023-01-11T21:03:36.1465009Z ================== 2023-01-11T21:03:36.1465171Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1465347Z  Write of size 2 at 0x7b840000ae58 by thread T1: 2023-01-11T21:03:36.1468627Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.1469100Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1469470Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1469973Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1470521Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1470985Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1471199Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1471546Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1471750Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1471843Z 2023-01-11T21:03:36.1472196Z  Previous write of size 2 at 0x7b840000ae58 by main thread: 2023-01-11T21:03:36.1476222Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.1476709Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1477117Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1477754Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1478277Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1478648Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1478954Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1479185Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1479386Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1480117Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.1480359Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.1480616Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1481002Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1481389Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1481607Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1481836Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1482623Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1482829Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1483035Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1483778Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1484022Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1484451Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1484837Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1485117Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1485997Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1486210Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1486468Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1486645Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1486806Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1487063Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1487178Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1487301Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1487423Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1487572Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1487872Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1487992Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1488086Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1488095Z 2023-01-11T21:03:36.1488327Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2023-01-11T21:03:36.1488495Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1488619Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1488781Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1488988Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1489425Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1489725Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1489994Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1490261Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1490589Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1491684Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1492325Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1492627Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1493657Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1493974Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1494160Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.1494605Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.1495866Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.1496180Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1497255Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1497529Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1497797Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1499032Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1499351Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1500437Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1500739Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1500938Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1501234Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.1502327Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.1502663Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1503763Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1504040Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1504307Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1505669Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1506205Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1508179Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1508701Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1509028Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1509261Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.1510482Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.1510761Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.1511100Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.1511452Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.1511890Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.1512234Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1512928Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1513583Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1513998Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1514363Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1515923Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1516293Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1516641Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1517906Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1518311Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1519079Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1519813Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1520253Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1521845Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1522270Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1522718Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1523035Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1523337Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1523822Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1524036Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1524255Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1524471Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1524705Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1525265Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1525490Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1525660Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1525670Z 2023-01-11T21:03:36.1526102Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1526411Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1526789Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1527341Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1527660Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1528206Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1528459Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1528803Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1529556Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1529960Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1530342Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1530704Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1531657Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1531956Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1532362Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1533567Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1533928Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1535473Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1535787Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1536051Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1537192Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1537445Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1537728Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1538201Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1538494Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1538713Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1538938Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1539211Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1539625Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1539746Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1539827Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1539847Z 2023-01-11T21:03:36.1541569Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1541645Z ================== 2023-01-11T21:03:36.1541775Z ================== 2023-01-11T21:03:36.1541950Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1542128Z  Write of size 2 at 0x7b840000ae58 by thread T2: 2023-01-11T21:03:36.1544267Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.1544526Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1544748Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1545062Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1545352Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1545619Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1545761Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1545988Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1546126Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1546133Z 2023-01-11T21:03:36.1546325Z  Previous write of size 2 at 0x7b840000ae58 by main thread: 2023-01-11T21:03:36.1548494Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:36.1548754Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1548976Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1549261Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1549550Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1549744Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1549946Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1550205Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1550425Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1551137Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.1551391Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.1551635Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1552020Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1552405Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1552626Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1552828Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1553611Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1553820Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1554024Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1554839Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1555110Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1555543Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1555976Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1556217Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1557085Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1557295Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1557553Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1557725Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1557889Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1558145Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1558262Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1558385Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1558492Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1558640Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1558952Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1559099Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1559193Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1559199Z 2023-01-11T21:03:36.1559422Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2023-01-11T21:03:36.1559590Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1559717Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1559880Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1560085Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1560527Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1560826Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1561093Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1561356Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1561679Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1562750Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1563391Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1563721Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1564772Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1565047Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1565234Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.1565506Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.1567096Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.1567617Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1569412Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1569943Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1570432Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1572394Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1572782Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1574642Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1575241Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1575557Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1575993Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.1577705Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.1578171Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1579800Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1580267Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1580739Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1582567Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1583106Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1584937Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1585437Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1585785Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1585988Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.1587073Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.1587235Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.1587589Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.1587922Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.1588318Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.1588680Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1589295Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1589976Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1590367Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1590745Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1592068Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1592396Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1592750Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1594045Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1594451Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1595309Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1596110Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1596489Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1598129Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1598346Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1598608Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1598786Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1598950Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1599204Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1599321Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1599440Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1599561Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1599709Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1600022Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1600130Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1600225Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1600233Z 2023-01-11T21:03:36.1600476Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.1600646Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1600865Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1601183Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1601390Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1601686Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1601840Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1602033Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1602444Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1602663Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1602876Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1603076Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1603633Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1603798Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1604025Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1604686Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1604897Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1605661Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1605905Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1606050Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1606663Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1606810Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1606961Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1607215Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1607356Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1607478Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1607599Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1607748Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1608057Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1608176Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1608271Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1608279Z 2023-01-11T21:03:36.1609947Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1610023Z ================== 2023-01-11T21:03:36.1610152Z ================== 2023-01-11T21:03:36.1610321Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1610502Z  Write of size 2 at 0x7b840000ae5e by main thread: 2023-01-11T21:03:36.1612837Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:36.1613140Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1613365Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1613675Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1613963Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1614157Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1614448Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1614676Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1614890Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1615606Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.1615858Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.1616079Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1616463Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1616851Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1617120Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1617320Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1618138Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1618345Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1618549Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1619294Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1619519Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1619947Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1620334Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1620577Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1621448Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1621689Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1621947Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1622122Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1622287Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1622568Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1622685Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1622805Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1622913Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1623062Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1623372Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1623494Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1623589Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1623595Z 2023-01-11T21:03:36.1623793Z  Previous write of size 2 at 0x7b840000ae5e by thread T1: 2023-01-11T21:03:36.1625937Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:36.1626195Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1626453Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1626875Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1627288Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1627640Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1627847Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1628182Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1628400Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1628459Z 2023-01-11T21:03:36.1628825Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2023-01-11T21:03:36.1629043Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1629172Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1629377Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1629695Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1630276Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1630694Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1631109Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1631494Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1631989Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1633662Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1634641Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1635141Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1636640Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1636960Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1637234Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.1637663Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.1639720Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.1640206Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1642201Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1642597Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1643047Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1645139Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1645730Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1647858Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1648445Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1648772Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1649254Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.1651334Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.1651882Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1653765Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1654316Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1654939Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1656202Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1656528Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1657628Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1657914Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1658152Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1658302Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.1658979Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.1659134Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.1659354Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.1659556Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.1659791Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.1660009Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1660390Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1660781Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1660997Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1661196Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1661984Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1662189Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1662421Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1663180Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1663401Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1663852Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1664239Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1664476Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1665329Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1665538Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1665798Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1665972Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1666135Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1666390Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1666505Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1666624Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1666780Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1666927Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1667240Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1667359Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1667439Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1667446Z 2023-01-11T21:03:36.1667692Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1667862Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1668082Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1668402Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1668601Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1668895Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1669050Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1669240Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1669646Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1669871Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1670057Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1670252Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1670812Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1670980Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1671206Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1671864Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1672115Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1672878Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1673058Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1673227Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1673848Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1673996Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1674131Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1674387Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1674501Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1674703Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1674827Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1674975Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1675288Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1675409Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1675502Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1675508Z 2023-01-11T21:03:36.1677163Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1677268Z ================== 2023-01-11T21:03:36.1677411Z ================== 2023-01-11T21:03:36.1677582Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1677759Z  Write of size 2 at 0x7b840000ae5c by thread T1: 2023-01-11T21:03:36.1679939Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:36.1680215Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1680442Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1680725Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1681012Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1681280Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1681409Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1681633Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1681770Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1681776Z 2023-01-11T21:03:36.1681965Z  Previous write of size 2 at 0x7b840000ae5c by main thread: 2023-01-11T21:03:36.1684090Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:36.1684391Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1684639Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1684924Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1685211Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1685404Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1685604Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1685832Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1686046Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1687075Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.1687408Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.1687706Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1688272Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1688937Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1689298Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1689625Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1690870Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1691180Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1691532Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1692627Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1693007Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1693754Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1694440Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1694689Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1695872Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1696175Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1696585Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1696962Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1697245Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1697704Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1697917Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1698137Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1698353Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1698633Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1699202Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1699391Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1699561Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1699572Z 2023-01-11T21:03:36.1700016Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2023-01-11T21:03:36.1700336Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1700528Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1700692Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1700900Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1701348Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1701689Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1702164Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1702706Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1703310Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1704713Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1705677Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1706231Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1708113Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1708583Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1708951Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.1709442Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.1711523Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.1712090Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1714010Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1714524Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1715055Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1717256Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1717901Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1719469Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1719762Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1719958Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1720255Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.1721352Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.1721697Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1722774Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1723052Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1723324Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1724498Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1724818Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1725912Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1726250Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1726443Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1726594Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.1727266Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.1727424Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.1727620Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.1727820Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.1728055Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.1728274Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1728664Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1729051Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1729263Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1729490Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1730276Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1730483Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1730726Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1731486Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1731710Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1732141Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1732526Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1732766Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1733620Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1733857Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1734119Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1734292Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1734556Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1734811Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1734927Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1735046Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1735170Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1735365Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1735675Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1735792Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1735873Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1735880Z 2023-01-11T21:03:36.1736116Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1736284Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1736505Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1736825Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1736999Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1737292Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1737445Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1737636Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1738044Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1738263Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1738446Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1738641Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1739203Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1739403Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1739630Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1740317Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1740530Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1741298Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1741477Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1741622Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1742235Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1742385Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1742537Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1742794Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1742910Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1743030Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1743152Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1743300Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1743612Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1743759Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1743854Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1743860Z 2023-01-11T21:03:36.1745555Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1745629Z ================== 2023-01-11T21:03:36.1745760Z ================== 2023-01-11T21:03:36.1745931Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1746110Z  Write of size 2 at 0x7b840000ae5c by thread T2: 2023-01-11T21:03:36.1748445Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:36.1748818Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1749167Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1749613Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1750119Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1750669Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1750919Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1751337Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1751585Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1751596Z 2023-01-11T21:03:36.1751961Z  Previous write of size 2 at 0x7b840000ae5c by main thread: 2023-01-11T21:03:36.1756051Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:36.1756553Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1756923Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1757438Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1757937Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1758295Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1758639Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1759053Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1759386Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1760683Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.1761162Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.1761566Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1762250Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1762985Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1763367Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1763720Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1765151Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1765526Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1765887Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1767253Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1767702Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1768460Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1769111Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1769545Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1771144Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1771517Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1771970Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1772266Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1772531Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1772976Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1773187Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1773373Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1773583Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1773843Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1774520Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1774723Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1774877Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1774886Z 2023-01-11T21:03:36.1775296Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2023-01-11T21:03:36.1775593Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1775821Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1776190Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1776534Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1777337Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1777814Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1778310Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1778853Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1779459Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1781408Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1782558Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1783123Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1784801Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1785110Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1785331Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.1785599Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.1786731Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.1787038Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1788161Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1788462Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1788725Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1789919Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1790240Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1791330Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1791627Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1791817Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1792142Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.1793266Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.1793574Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1794699Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1794976Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1795247Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1796415Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1796775Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1797890Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1798188Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1798378Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1798523Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.1799200Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.1799354Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.1799547Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.1799745Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.1799977Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.1800219Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1800604Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1800988Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1801202Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1801423Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1802207Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1802415Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1802617Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1803362Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1803586Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1804011Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1804404Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1804668Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1805514Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1805746Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1806005Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1806178Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1806337Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1806589Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1806703Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1806823Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1806930Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1807076Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1807383Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1807500Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1807592Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1807599Z 2023-01-11T21:03:36.1807829Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.1807997Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1808216Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1808529Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1808703Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1808993Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1809171Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1809362Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1809773Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1809994Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1810176Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1810357Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1810957Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1811120Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1811341Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1812005Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1812213Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1812976Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1813152Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1813292Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1813901Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1814071Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1814219Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1814660Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1814799Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1814918Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1815039Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1815188Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1815546Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1815664Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1815745Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1815751Z 2023-01-11T21:03:36.1817417Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1817489Z ================== 2023-01-11T21:03:36.1817628Z ================== 2023-01-11T21:03:36.1817796Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.1817974Z  Write of size 2 at 0x7b840000ae60 by main thread: 2023-01-11T21:03:36.1820124Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:36.1820432Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1820656Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1820936Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1821223Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1821445Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.1821649Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.1821873Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:36.1822085Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.1822798Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.1823034Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.1823250Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1823635Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1824016Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1824227Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1824425Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1825245Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1825444Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1825647Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1826412Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1826635Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1827064Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1827446Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1827684Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1828555Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1828797Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1829055Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1829230Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1829388Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1829628Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1829741Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1829860Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1829980Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1830127Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1830461Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1830580Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1830675Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1830680Z 2023-01-11T21:03:36.1830866Z  Previous write of size 2 at 0x7b840000ae60 by thread T1: 2023-01-11T21:03:36.1833005Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:36.1833265Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.1833486Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.1833766Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.1834050Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.1834345Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.1834487Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.1834780Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.1834917Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.1834922Z 2023-01-11T21:03:36.1835143Z  Location is heap block of size 5040 at 0x7b840000a000 allocated by main thread: 2023-01-11T21:03:36.1835313Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.1835436Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.1835596Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.1835815Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.1836268Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.1836534Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.1836802Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.1837066Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.1837389Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.1838456Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.1839117Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.1839416Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.1840466Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.1840742Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.1840925Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.1841190Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.1842329Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.1842670Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1843769Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1844044Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1844309Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1845465Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1845796Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1846882Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1847192Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1847382Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1847705Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.1848813Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.1849120Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.1850194Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.1850494Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.1850758Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.1851930Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.1852259Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.1853344Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.1853630Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.1853818Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.1853962Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.1854821Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.1855021Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.1855216Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.1855413Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.1855648Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.1855900Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.1856287Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.1856675Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.1856891Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.1857088Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.1857886Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.1858091Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.1858293Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.1859038Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.1859298Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.1859724Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.1860130Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.1860369Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.1861233Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.1861441Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.1861698Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.1861872Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.1862022Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.1862276Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1862406Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1862585Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1862733Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1862880Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1863190Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1863307Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1863442Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1863449Z 2023-01-11T21:03:36.1863675Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.1863843Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.1864046Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.1864359Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.1864531Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.1864824Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.1864978Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.1865195Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.1865605Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.1865824Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.1866008Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.1866205Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.1866766Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.1866929Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.1867150Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.1867814Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.1868021Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.1868793Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.1868999Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.1869140Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.1869780Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.1869928Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.1870077Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.1870329Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.1870443Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.1870551Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.1870672Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.1870818Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.1871127Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.1871245Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.1871338Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.1871344Z 2023-01-11T21:03:36.1873001Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:36.1873076Z ================== 2023-01-11T21:03:36.2101948Z ================== 2023-01-11T21:03:36.2102360Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2102660Z  Write of size 4 at 0x7b9400021180 by main thread: 2023-01-11T21:03:36.2106932Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:36.2107423Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2107836Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2108331Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2108853Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2109191Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.2109555Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.2109944Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:36.2110300Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.2111630Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.2112042Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.2112513Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2113178Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2113866Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2114259Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2114680Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2116134Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2116497Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2116869Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2118261Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2118662Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2119415Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2120126Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2120586Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2122172Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2122604Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2123083Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2123380Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2123675Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2124140Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2124327Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2124546Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2124780Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2125048Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2125529Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2125721Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2125858Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2125868Z 2023-01-11T21:03:36.2126163Z  Previous write of size 4 at 0x7b9400021180 by thread T1: 2023-01-11T21:03:36.2129174Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:36.2129510Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2129735Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2130016Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2130338Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2130606Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2130748Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2130970Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2131104Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2131113Z 2023-01-11T21:03:36.2131340Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2131496Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2131617Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2131775Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2131978Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2132418Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2132687Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2132950Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2133215Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2133541Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2134808Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2135481Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2135781Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2136820Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2137096Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2137324Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2137592Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2138772Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2139139Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2140217Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2140493Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2140758Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2141918Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2142273Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2143386Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2143675Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2143868Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2144161Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2145267Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2145573Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2146665Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2146963Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2147228Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2148384Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2148719Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2149809Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2150118Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2150306Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2150453Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2151148Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2151301Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2151494Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2151694Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2151927Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2152145Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2152527Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2152916Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2153133Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2153329Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2154127Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2154358Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2154617Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2155389Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2155613Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2156039Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2156424Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2156659Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2157532Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2157741Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2157997Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2158202Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2158350Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2158602Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2158716Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2158832Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2158953Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2159099Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2159406Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2159525Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2159617Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2159624Z 2023-01-11T21:03:36.2159882Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2160054Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2160383Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2160791Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2161069Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2161532Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2161789Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2162096Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2162745Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2162986Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2163279Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2163558Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2164437Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2164716Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2165158Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2166083Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2166352Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2167454Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2167689Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2167853Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2168594Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2168813Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2169006Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2169262Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2169392Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2169591Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2169720Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2169908Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2170223Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2170344Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2170450Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2170459Z 2023-01-11T21:03:36.2172444Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2172570Z ================== 2023-01-11T21:03:36.2172704Z ================== 2023-01-11T21:03:36.2172937Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2173152Z  Write of size 4 at 0x7b9400021b58 by thread T2: 2023-01-11T21:03:36.2176351Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:36.2176796Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2177159Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2177646Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2178134Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2178577Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2178806Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2179191Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2179527Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2179539Z 2023-01-11T21:03:36.2179894Z  Previous write of size 4 at 0x7b9400021b58 by thread T1: 2023-01-11T21:03:36.2183130Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:36.2183394Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2183616Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2184036Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2184542Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2185041Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2185306Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2185716Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2185931Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2185941Z 2023-01-11T21:03:36.2186360Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2186662Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2186887Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2187160Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2187536Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2188352Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2188768Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2189082Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2189562Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2190184Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2191570Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2192210Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2192518Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2193547Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2193863Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2194036Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2194307Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2195570Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2195883Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2196956Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2197266Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2197536Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2198744Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2199086Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2200177Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2200468Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2200664Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2200958Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2202065Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2202429Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2203504Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2203778Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2204047Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2205209Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2205582Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2206734Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2207039Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2207234Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2207384Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2208058Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2208215Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2208412Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2208618Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2208853Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2209073Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2209456Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2209872Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2210084Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2210285Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2211107Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2211313Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2211517Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2212264Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2212488Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2212915Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2213311Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2213552Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2214528Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2214737Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2215045Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2215221Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2215383Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2215636Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2215750Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2215869Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2215978Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2216125Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2216434Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2216553Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2216647Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2216653Z 2023-01-11T21:03:36.2216890Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.2217057Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2217274Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2217589Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2217761Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2218059Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2218286Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2218561Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2219137Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2219542Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2219777Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2220069Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2220892Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2221207Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2221568Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2222715Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2223041Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2223809Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2224062Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2224265Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2225297Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2225554Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2225901Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2226333Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2226509Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2226687Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2226878Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2227108Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2227604Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2227787Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2227911Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2227922Z 2023-01-11T21:03:36.2228293Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2228637Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2229028Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2229573Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2229887Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2230432Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2230707Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2231050Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2231797Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2232139Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2232420Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2232737Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2233430Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2233694Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2234049Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2235261Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2235538Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2236967Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2237297Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2237552Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2238483Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2238696Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2238937Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2239359Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2239519Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2239724Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2239916Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2240175Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2240612Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2240810Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2240958Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2240969Z 2023-01-11T21:03:36.2243737Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2243946Z ================== 2023-01-11T21:03:36.2244196Z ================== 2023-01-11T21:03:36.2244470Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2244656Z  Write of size 4 at 0x7b9400021188 by main thread: 2023-01-11T21:03:36.2246842Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:36.2247119Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2247339Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2247620Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2247909Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2248101Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.2248302Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.2248527Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:36.2248727Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.2249486Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.2249721Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.2249941Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2250352Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2250738Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2250950Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2251150Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2251937Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2252142Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2252351Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2253096Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2253363Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2253791Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2254172Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2254628Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2255488Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2255700Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2255957Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2256131Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2256292Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2256543Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2256659Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2256778Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2256899Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2257045Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2257341Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2257458Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2257549Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2257557Z 2023-01-11T21:03:36.2257753Z  Previous write of size 4 at 0x7b9400021188 by thread T1: 2023-01-11T21:03:36.2259970Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:36.2260245Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2260468Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2260745Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2261038Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2261302Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2261444Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2261667Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2261791Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2261799Z 2023-01-11T21:03:36.2262017Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2262183Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2262306Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2262464Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2262663Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2263102Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2263398Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2263658Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2263920Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2264243Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2265351Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2265977Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2266275Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2267313Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2267609Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2267794Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2268061Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2269217Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2269542Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2270601Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2270880Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2271173Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2272368Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2272687Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2273795Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2274084Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2274327Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2274812Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2276486Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2277062Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2278783Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2279207Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2279551Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2281260Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2281821Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2283349Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2283785Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2284099Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2284344Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2285332Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2285534Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2285833Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2286170Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2286537Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2286940Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2287577Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2288260Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2288588Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2288881Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2290083Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2290387Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2290676Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2291724Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2292072Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2292685Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2293232Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2293592Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2295039Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2295470Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2295796Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2296045Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2296322Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2296694Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2296868Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2297060Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2297247Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2297507Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2298071Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2298284Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2298448Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2298466Z 2023-01-11T21:03:36.2298881Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2299182Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2299570Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2300145Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2300461Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2300934Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2301163Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2301466Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2302112Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2302391Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2302744Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2303033Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2303835Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2304061Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2304383Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2305305Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2305599Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2306649Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2306901Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2307106Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2308020Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2308245Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2308460Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2308834Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2309049Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2309229Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2309408Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2309639Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2310088Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2310259Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2310389Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2310396Z 2023-01-11T21:03:36.2313049Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2313147Z ================== 2023-01-11T21:03:36.2313216Z ================== 2023-01-11T21:03:36.2313381Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2313558Z  Write of size 4 at 0x7b9400021b60 by thread T2: 2023-01-11T21:03:36.2316724Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:36.2317112Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2317439Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2317891Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2318319Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2318707Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2318915Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2319245Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2319388Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2319394Z 2023-01-11T21:03:36.2319613Z  Previous write of size 4 at 0x7b9400021b60 by thread T1: 2023-01-11T21:03:36.2322424Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:36.2322802Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2323119Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2323527Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2323937Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2324326Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2324527Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2324903Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2325099Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2325107Z 2023-01-11T21:03:36.2325419Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2325662Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2325838Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2326076Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2326350Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2327050Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2327443Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2327822Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2328214Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2328692Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2330281Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2331183Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2331674Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2333218Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2333619Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2333894Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2334188Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2335549Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2336031Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2337507Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2338061Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2338573Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2340353Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2340891Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2342427Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2342837Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2343144Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2343705Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2345621Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2346160Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2348159Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2348481Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2348908Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2351089Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2351689Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2353669Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2354207Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2354656Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2354929Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2356129Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2356440Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2356807Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2357175Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2357572Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2357953Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2358657Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2359384Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2359757Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2360121Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2361540Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2361918Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2362268Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2363594Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2363999Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2375225Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2375830Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2376081Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2377046Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2377260Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2377521Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2377699Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2377864Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2378118Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2378234Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2378356Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2378479Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2378614Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2378925Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2379045Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2379137Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2379145Z 2023-01-11T21:03:36.2379397Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.2379566Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2379788Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2380157Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2380332Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2380629Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2380783Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2380972Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2381382Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2381628Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2381814Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2382010Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2382568Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2382733Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2382957Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2383619Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2383830Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2384596Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2384802Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2384943Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2385552Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2385698Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2385845Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2386123Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2386239Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2386357Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2386476Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2386623Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2386934Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2387054Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2387132Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2387151Z 2023-01-11T21:03:36.2387351Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2387516Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2387736Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2388050Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2388222Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2388516Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2388670Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2388858Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2389258Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2389474Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2389689Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2389883Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2390442Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2390605Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2390829Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2391529Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2391736Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2392499Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2392674Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2392814Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2393441Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2393584Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2393720Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2393974Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2394121Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2394239Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2394360Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2394507Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2394891Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2395012Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2395107Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2395112Z 2023-01-11T21:03:36.2397092Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2397205Z ================== 2023-01-11T21:03:36.2397438Z ================== 2023-01-11T21:03:36.2397730Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2398046Z  Write of size 4 at 0x7b940002118c by main thread: 2023-01-11T21:03:36.2401980Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:36.2402463Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2402869Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2403342Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2403920Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2404253Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.2404596Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.2404997Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:36.2405380Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.2406738Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.2407162Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.2407534Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2408242Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2408942Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2409317Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2409675Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2411095Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2411502Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2411867Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2413190Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2413635Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2414469Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2415186Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2415639Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2417145Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2417534Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2417989Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2418297Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2418579Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2419120Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2419326Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2419544Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2419762Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2420013Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2420569Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2420767Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2420931Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2420942Z 2023-01-11T21:03:36.2421301Z  Previous write of size 4 at 0x7b940002118c by thread T1: 2023-01-11T21:03:36.2425286Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:36.2425746Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2426139Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2426661Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2427198Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2427688Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2427941Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2428342Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2428630Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2428657Z 2023-01-11T21:03:36.2429021Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2429192Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2429316Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2429475Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2429680Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2430118Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2430417Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2430681Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2430947Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2431271Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2432357Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2432978Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2433307Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2434374Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2434706Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2434893Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2435163Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2436306Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2436626Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2437689Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2437996Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2438267Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2439486Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2439808Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2440905Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2441222Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2441416Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2441712Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2442846Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2443167Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2444226Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2444501Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2444767Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2445937Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2446309Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2447403Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2447692Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2447881Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2448030Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2448703Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2448856Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2449049Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2449275Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2449508Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2449726Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2450111Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2450524Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2450740Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2450940Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2451728Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2451928Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2452133Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2452871Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2453095Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2453532Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2453942Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2454180Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2455304Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2455583Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2455922Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2456186Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2456441Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2456872Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2457054Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2457244Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2457443Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2457633Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2458093Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2458287Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2458420Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2458432Z 2023-01-11T21:03:36.2458796Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2459073Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2459414Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2459926Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2460305Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2460763Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2460999Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2461311Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2462010Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2462349Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2462660Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2463042Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2464008Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2464305Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2464684Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2465781Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2466157Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2467511Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2467826Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2468157Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2469142Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2469416Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2469676Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2470139Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2470353Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2470634Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2470852Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2471067Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2471382Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2471504Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2471641Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2471651Z 2023-01-11T21:03:36.2473499Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2473574Z ================== 2023-01-11T21:03:36.2473639Z ================== 2023-01-11T21:03:36.2473814Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2474025Z  Write of size 4 at 0x7b9400021b64 by thread T2: 2023-01-11T21:03:36.2476933Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:36.2477436Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2478038Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2478597Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2479136Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2479645Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2479889Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2480297Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2480530Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2480541Z 2023-01-11T21:03:36.2480897Z  Previous write of size 4 at 0x7b9400021b64 by thread T1: 2023-01-11T21:03:36.2484869Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:36.2485345Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2485799Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2486325Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2486636Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2486905Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2487045Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2487268Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2487436Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2487442Z 2023-01-11T21:03:36.2487663Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2487827Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2487948Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2488105Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2488307Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2488751Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2489020Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2489280Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2489542Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2489867Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2490929Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2491588Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2491917Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2492941Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2493227Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2493412Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2493680Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2494911Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2495275Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2496379Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2496656Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2496922Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2498079Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2498413Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2499555Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2499857Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2500039Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2500335Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2501448Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2501753Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2502826Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2503125Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2503394Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2504581Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2504913Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2505995Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2506282Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2506500Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2506648Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2507334Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2507487Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2507721Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2507908Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2508139Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2508353Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2508733Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2509132Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2509343Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2509529Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2510329Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2510535Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2510769Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2511517Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2511742Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2512205Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2512671Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2513025Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2514280Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2514692Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2515154Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2515486Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2515791Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2516181Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2516354Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2516592Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2516782Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2517031Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2517562Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2517761Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2517922Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2517932Z 2023-01-11T21:03:36.2518301Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.2518512Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2518874Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2519427Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2519719Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2520086Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2520334Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2520646Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2521317Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2521680Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2521925Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2522249Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2523108Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2523329Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2523662Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2524671Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2525089Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2526348Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2526711Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2526956Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2527915Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2528166Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2528411Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2528785Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2528971Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2529158Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2529319Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2529550Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2529984Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2530176Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2530310Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2530321Z 2023-01-11T21:03:36.2530671Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2530938Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2531264Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2531761Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2531951Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2532301Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2532464Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2532764Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2533462Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2533816Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2534112Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2534507Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2535317Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2535579Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2535899Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2536810Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2537155Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2538206Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2538495Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2538674Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2539583Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2539840Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2540064Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2540431Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2540607Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2540798Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2540989Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2541243Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2541715Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2541895Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2541999Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2542007Z 2023-01-11T21:03:36.2544460Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2544580Z ================== 2023-01-11T21:03:36.2544668Z ================== 2023-01-11T21:03:36.2544937Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2545189Z  Write of size 4 at 0x7b9400021190 by main thread: 2023-01-11T21:03:36.2548609Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:36.2549093Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2549418Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2549858Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2550349Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2550656Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.2550985Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.2551222Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:36.2551439Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.2552507Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.2552876Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.2553215Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2553811Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2554413Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2554848Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2555162Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2556370Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2556755Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2557063Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2558056Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2558288Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2558750Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2559353Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2559743Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2561060Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2561444Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2561845Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2562124Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2562381Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2562784Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2562966Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2563209Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2563390Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2563619Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2564113Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2564289Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2564424Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2564437Z 2023-01-11T21:03:36.2564740Z  Previous write of size 4 at 0x7b9400021190 by thread T1: 2023-01-11T21:03:36.2568153Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:36.2568572Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2568912Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2569345Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2569833Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2570251Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2570441Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2570780Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2571000Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2571009Z 2023-01-11T21:03:36.2571359Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2571671Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2571859Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2572084Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2572399Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2573076Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2573490Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2573863Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2574128Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2574566Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2575790Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2576826Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2577471Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2579042Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2579506Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2579786Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2580144Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2582060Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2582691Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2584421Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2584879Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2585280Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2587247Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2587720Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2589557Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2590114Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2590424Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2590889Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2592612Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2593130Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2594893Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2595348Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2595797Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2597630Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2598076Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2599730Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2600164Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2600438Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2600689Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2601719Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2601965Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2602283Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2602608Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2603005Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2603345Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2603931Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2604515Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2604762Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2604963Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2606068Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2606393Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2606701Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2607945Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2608306Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2608984Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2609643Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2610020Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2611332Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2611583Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2611937Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2612208Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2612456Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2612850Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2613030Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2613209Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2613642Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2613867Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2614505Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2614694Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2614826Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2614836Z 2023-01-11T21:03:36.2615206Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2615449Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2615791Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2616276Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2616552Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2617082Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2617325Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2617618Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2618164Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2618390Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2618573Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2618771Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2619532Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2619788Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2620128Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2621157Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2621563Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2622752Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2623039Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2623249Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2624262Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2624491Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2624724Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2625101Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2625263Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2625462Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2625653Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2625880Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2626367Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2626559Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2626711Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2626725Z 2023-01-11T21:03:36.2629361Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2629526Z ================== 2023-01-11T21:03:36.2629629Z ================== 2023-01-11T21:03:36.2629910Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2630186Z  Write of size 4 at 0x7b9400021b68 by thread T2: 2023-01-11T21:03:36.2633649Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:36.2633986Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2634218Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2634666Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2634987Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2635327Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2635543Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2635887Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2636110Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2636126Z 2023-01-11T21:03:36.2636446Z  Previous write of size 4 at 0x7b9400021b68 by thread T1: 2023-01-11T21:03:36.2640033Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:36.2640595Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2641020Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2641502Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2642018Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2642523Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2642765Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2643075Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2643303Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2643314Z 2023-01-11T21:03:36.2643633Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2643904Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2644116Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2644369Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2644654Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2645421Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2645862Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2646319Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2646675Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2647326Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2648936Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2650045Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2650527Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2652253Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2652744Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2653122Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2653613Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2655771Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2656274Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2657905Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2658369Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2658738Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2660380Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2660976Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2662809Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2663321Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2663637Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2664125Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2666014Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2666589Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2668286Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2668745Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2669184Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2670586Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2670916Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2672007Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2672353Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2672573Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2672710Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2673396Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2673551Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2673748Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2673948Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2674190Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2674395Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2674866Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2675261Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2675476Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2675681Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2676502Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2676705Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2676910Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2677684Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2677914Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2678339Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2678723Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2678962Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2679832Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2680068Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2680326Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2680499Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2680659Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2680911Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2681025Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2681134Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2681250Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2681397Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2681733Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2681854Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2681946Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2681953Z 2023-01-11T21:03:36.2682196Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.2682363Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2682583Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2682901Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2683075Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2683367Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2683519Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2683694Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2684100Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2684321Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2684507Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2684702Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2685263Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2685458Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2685682Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2686365Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2686614Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2687378Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2687555Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2687696Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2688309Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2688456Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2688605Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2688860Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2688975Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2689093Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2689212Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2689345Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2689653Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2689797Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2689891Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2689897Z 2023-01-11T21:03:36.2690109Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2690273Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2690489Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2690802Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2690977Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2691297Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2691456Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2691645Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2692048Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2692264Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2692449Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2692647Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2693203Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2693364Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2693589Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2694248Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2694572Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2695396Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2695572Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2695717Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2696374Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2696522Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2696673Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2696925Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2697043Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2697158Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2697280Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2697425Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2697733Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2697848Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2697940Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2697946Z 2023-01-11T21:03:36.2699604Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2699677Z ================== 2023-01-11T21:03:36.2699771Z ================== 2023-01-11T21:03:36.2699927Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2700103Z  Write of size 4 at 0x7b9400021194 by main thread: 2023-01-11T21:03:36.2702277Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:36.2702536Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2702758Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2703037Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2703328Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2703515Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.2703713Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.2703935Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:36.2704149Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.2704859Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.2705098Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.2705348Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2705735Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2706120Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2706334Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2706568Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2707356Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2707560Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2707764Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2708523Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2708746Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2709171Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2709557Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2709825Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2710705Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2710915Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2711174Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2711350Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2711512Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2711768Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2711881Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2711999Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2712117Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2712264Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2712574Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2712692Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2712774Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2712779Z 2023-01-11T21:03:36.2712961Z  Previous write of size 4 at 0x7b9400021194 by thread T1: 2023-01-11T21:03:36.2715236Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:36.2715533Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2715754Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2716037Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2716349Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2716620Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2716762Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2716985Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2717123Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2717128Z 2023-01-11T21:03:36.2717335Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2717504Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2717629Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2717792Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2717993Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2718430Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2718700Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2718963Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2719224Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2719544Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2720676Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2721300Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2721603Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2722636Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2722909Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2723093Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2723360Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2724543Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2724861Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2725922Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2726198Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2726467Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2727640Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2727986Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2729119Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2729407Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2729596Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2729889Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2730979Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2731320Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2732404Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2732678Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2732945Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2734116Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2734554Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2735658Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2735989Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2736183Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2736331Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2737037Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2737188Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2737383Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2737582Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2737818Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2738035Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2738419Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2738811Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2739024Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2739222Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2740008Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2740242Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2740447Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2741228Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2741451Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2741874Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2742257Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2742491Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2743348Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2743555Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2743837Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2744013Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2744172Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2744422Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2744536Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2744656Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2744775Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2744923Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2745236Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2745368Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2745461Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2745468Z 2023-01-11T21:03:36.2745686Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2745855Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2746070Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2746384Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2746556Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2746854Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2747006Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2747197Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2747603Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2747823Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2748009Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2748206Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2748761Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2748951Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2749179Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2749844Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2750055Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2750857Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2751040Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2751180Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2751796Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2751940Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2752090Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2752342Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2752458Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2752575Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2752693Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2752841Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2753153Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2753272Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2753367Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2753400Z 2023-01-11T21:03:36.2755123Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2755197Z ================== 2023-01-11T21:03:36.2755352Z ================== 2023-01-11T21:03:36.2755522Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2755729Z  Write of size 4 at 0x7b9400021b6c by thread T2: 2023-01-11T21:03:36.2757877Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:36.2758144Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2758366Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2758647Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2758937Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2759203Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2759341Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2759596Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2759733Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2759739Z 2023-01-11T21:03:36.2759924Z  Previous write of size 4 at 0x7b9400021b6c by thread T1: 2023-01-11T21:03:36.2762082Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:36.2762355Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2762574Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2762857Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2763142Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2763404Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2763545Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2763755Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2763889Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2763895Z 2023-01-11T21:03:36.2764112Z  Location is heap block of size 10080 at 0x7b9400020800 allocated by main thread: 2023-01-11T21:03:36.2764278Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2764401Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2764557Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2764759Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2765230Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2765495Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2765755Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2766022Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2766373Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2767444Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2768068Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2768371Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2769409Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2769712Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2769899Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.2770191Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.2771328Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.2771686Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2773329Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2773797Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2774219Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2775991Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2776376Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2777976Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2778396Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2778678Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2779106Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.2780798Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.2781298Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.2782740Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.2783121Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.2783492Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.2785204Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.2785723Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.2787363Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.2787743Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.2787939Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.2788087Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.2788776Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.2788998Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.2789281Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.2789561Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.2789893Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.2790200Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.2790808Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.2791365Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.2791668Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.2791969Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2793165Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2793478Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2793775Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2794918Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.2795154Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.2795691Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.2796267Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.2796685Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.2797897Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2798192Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2798604Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.2798875Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.2799105Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.2799524Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2799718Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2799904Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2800088Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2800251Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2800585Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2800762Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2800905Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2800914Z 2023-01-11T21:03:36.2801170Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.2801337Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2801560Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2801877Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2802051Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2802346Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2802501Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2802689Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2803148Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2803372Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2803557Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2803739Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2804344Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2804516Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2804742Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2805403Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2805615Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2806380Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2806560Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2806703Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2807311Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2807487Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2807639Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2807892Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2808008Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2808126Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2808246Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2808394Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2808706Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2808827Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2808908Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2808940Z 2023-01-11T21:03:36.2809154Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2809320Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2809577Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2809988Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2810232Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2810667Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2810921Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2811219Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2811703Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2811925Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2812211Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2812491Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2813337Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2813583Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2813969Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2815119Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2815453Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2816680Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2816956Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2817178Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2818135Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2818386Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2818596Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2819008Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2819201Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2819393Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2819589Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2819828Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2820337Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2820531Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2820683Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2820694Z 2023-01-11T21:03:36.2823425Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:36.2823612Z ================== 2023-01-11T21:03:36.2823810Z ================== 2023-01-11T21:03:36.2824096Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2824394Z  Write of size 8 at 0x7ba400017b10 by thread T3: 2023-01-11T21:03:36.2827639Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.2828071Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2828433Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2828898Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2829376Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2829810Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2830039Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2830398Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2830662Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2830670Z 2023-01-11T21:03:36.2830979Z  Previous write of size 8 at 0x7ba400017b10 by thread T2: 2023-01-11T21:03:36.2833913Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.2834345Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2834765Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2835223Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2835695Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2836131Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2836367Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2836720Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2836943Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2836953Z 2023-01-11T21:03:36.2837325Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.2837584Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2837779Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2838027Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2838355Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2839077Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2839545Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2839948Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2840216Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2840581Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2842127Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2843120Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2843578Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2845261Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2845762Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2846019Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.2846993Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.2847258Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.2847554Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.2848825Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.2849209Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.2850586Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2850966Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2851224Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.2851597Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2851773Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2851958Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2852152Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2852375Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2852864Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2853058Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2853212Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2853266Z 2023-01-11T21:03:36.2853652Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.2853927Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2854280Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2854896Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2855185Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2855656Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2855908Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2856217Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2856888Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2857241Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2857510Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2857825Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2858697Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2858940Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2859394Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2860444Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2860795Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2861908Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2862094Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2862241Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2862856Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2863001Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2863155Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2863410Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2863527Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2863646Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2863770Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2863916Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2864227Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2864345Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2864426Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2864432Z 2023-01-11T21:03:36.2864664Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.2864867Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2865087Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2865404Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2865578Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2865868Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2866020Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2866212Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2866642Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2866864Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2867049Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2867243Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2867804Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2867970Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2868197Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2868860Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2869071Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2869832Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2870045Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2870190Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2870797Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2870970Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2871122Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2871377Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2871492Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2871610Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2871732Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2871878Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2872190Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2872311Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2872403Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2872409Z 2023-01-11T21:03:36.2874070Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.2874142Z ================== 2023-01-11T21:03:36.2874262Z ================== 2023-01-11T21:03:36.2874429Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2874668Z  Write of size 8 at 0x7ba400016760 by thread T2: 2023-01-11T21:03:36.2876820Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.2877156Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2877383Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2877665Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2877953Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2878223Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2878365Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2878590Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2878725Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2878730Z 2023-01-11T21:03:36.2878930Z  Previous write of size 8 at 0x7ba400016760 by main thread: 2023-01-11T21:03:36.2881243Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.2881544Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2881764Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2882045Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2882434Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2882728Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.2883024Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.2883329Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.2883672Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.2884788Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.2885148Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.2885444Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2886696Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2887021Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2887402Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2888521Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.2888931Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.2890292Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2890594Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2890865Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.2891278Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2891475Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2891667Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2891849Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2892094Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2892552Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2892691Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2892845Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2892854Z 2023-01-11T21:03:36.2893131Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.2893346Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2893475Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2893712Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2894049Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2894910Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2895252Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2895682Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2896121Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2896709Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2898302Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2899290Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2899780Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2901245Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2901739Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2901997Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.2903013Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.2903244Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.2903543Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.2904686Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.2905006Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.2906234Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2906616Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2906855Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.2907229Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2907411Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2907605Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2907804Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2908049Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2908596Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2908789Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2908933Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2908943Z 2023-01-11T21:03:36.2909312Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.2909580Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2909895Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2910355Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2910627Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2911061Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2911284Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2911592Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2912237Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2912588Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2912878Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2913187Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2914058Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2914378Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2914858Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2915915Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2916253Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2917506Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2917768Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2917989Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2918943Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2919172Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2919404Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2919794Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2919979Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2920168Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2920344Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2920573Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2921061Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2921248Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2921447Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2921457Z 2023-01-11T21:03:36.2924206Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.2924311Z ================== 2023-01-11T21:03:36.2924490Z ================== 2023-01-11T21:03:36.2924738Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2925078Z  Write of size 8 at 0x7ba4000153b0 by thread T1: 2023-01-11T21:03:36.2928416Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.2928850Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2929245Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2929721Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2930196Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2930653Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2930935Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2931293Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2931530Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2931541Z 2023-01-11T21:03:36.2931879Z  Previous write of size 8 at 0x7ba4000153b0 by main thread: 2023-01-11T21:03:36.2935840Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.2936303Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2936705Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2937189Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2937679Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2938016Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.2938363Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.2938752Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.2939116Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.2940476Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.2940910Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.2941252Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.2942647Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.2942999Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.2943365Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.2944781Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.2945192Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.2946672Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2947036Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2947354Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.2947796Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2947990Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2948194Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2948395Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2948646Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2949178Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2949380Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2949519Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2949529Z 2023-01-11T21:03:36.2949918Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.2950240Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2950442Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2950714Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2951072Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2951859Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2952323Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2952661Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2952989Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2953491Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2955364Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2956466Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2957009Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2958718Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2959167Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.2959457Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.2960528Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.2960715Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.2960935Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.2962241Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.2962674Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.2964129Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.2964481Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.2964738Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.2965167Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2965350Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2965533Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2965729Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2965971Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2966478Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2966668Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2966824Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2966834Z 2023-01-11T21:03:36.2967217Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.2967478Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.2967706Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.2968026Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.2968273Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.2968725Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.2969026Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.2969341Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.2970027Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.2970377Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.2970670Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.2970994Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.2971956Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.2972238Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.2972580Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.2973663Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.2974010Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.2975215Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.2975402Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.2975547Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.2976235Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.2976497Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.2976694Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.2977084Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.2977269Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.2977459Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.2977655Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.2977872Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.2978432Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.2978608Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.2978754Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.2978766Z 2023-01-11T21:03:36.2981369Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.2981508Z ================== 2023-01-11T21:03:36.2981704Z ================== 2023-01-11T21:03:36.2981983Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.2982265Z  Write of size 8 at 0x7ba400017b18 by thread T3: 2023-01-11T21:03:36.2985715Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.2986258Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2986618Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2987019Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2987445Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2987862Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2988080Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2988416Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2988619Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2988632Z 2023-01-11T21:03:36.2988942Z  Previous write of size 8 at 0x7ba400017b18 by thread T2: 2023-01-11T21:03:36.2991412Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.2991676Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.2991900Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.2992178Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.2992530Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.2992795Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.2992939Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.2993160Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.2993298Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.2993304Z 2023-01-11T21:03:36.2993526Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.2993732Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.2993858Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.2994017Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.2994219Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.2994877Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.2995207Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.2995478Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.2995785Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.2996343Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.2997615Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.2998300Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.2998604Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.2999658Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.2999946Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.3000110Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.3000806Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.3000986Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.3001192Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.3002001Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3002271Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3003155Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3003381Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3003534Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3003790Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3003907Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3004026Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3004146Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3004294Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3004605Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3004723Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3004818Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3004824Z 2023-01-11T21:03:36.3005042Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.3005195Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3005417Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3005732Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3005906Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3006195Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3006377Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3006566Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3006973Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3007192Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3007374Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3007571Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3008154Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3008316Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3008539Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3009209Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3009418Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3010188Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3010365Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3010506Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3011118Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3011289Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3011437Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3011690Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3011804Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3011910Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3012034Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3012180Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3012515Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3012634Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3012726Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3012732Z 2023-01-11T21:03:36.3012939Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.3013105Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3013321Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3013638Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3013812Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3014104Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3014256Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3014625Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3015345Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3015763Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3016047Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3016265Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3017078Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3017440Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3017807Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3019026Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3019489Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3020621Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3020911Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3021135Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3022034Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3022230Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3022461Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3022823Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3023001Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3023190Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3023383Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3023643Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3024048Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3024248Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3024396Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3024404Z 2023-01-11T21:03:36.3027072Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.3027260Z ================== 2023-01-11T21:03:36.3027342Z ================== 2023-01-11T21:03:36.3027629Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.3027908Z  Write of size 8 at 0x7ba400016768 by thread T2: 2023-01-11T21:03:36.3031116Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.3031553Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3031887Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3032356Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3032792Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3033230Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3033533Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3033902Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3034099Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3034109Z 2023-01-11T21:03:36.3034413Z  Previous write of size 8 at 0x7ba400016768 by main thread: 2023-01-11T21:03:36.3036856Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.3037122Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3037347Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3037629Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3037916Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3038108Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.3038309Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.3038537Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.3038749Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.3039542Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.3039797Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.3039996Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.3040805Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.3041009Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.3041214Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.3042126Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3042368Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3043238Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3043477Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3043642Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3043897Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3043999Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3044120Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3044242Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3044390Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3044702Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3044822Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3044916Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3044922Z 2023-01-11T21:03:36.3045173Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.3045344Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.3045469Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.3045615Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.3045821Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.3046262Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.3046546Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.3046808Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.3047074Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.3047406Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.3048471Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.3049134Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.3049461Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.3050486Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.3050762Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.3050937Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.3051626Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.3051817Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.3052007Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.3052859Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3053101Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3053981Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3054194Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3054456Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3054715Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3054832Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3054952Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3055075Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3055221Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3055535Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3055657Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3055748Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3055754Z 2023-01-11T21:03:36.3055957Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.3056124Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3056358Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3056762Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3057033Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3057553Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3057793Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3058081Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3058752Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3059029Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3059328Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3059713Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3060574Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3060863Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3061104Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3061985Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3062278Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3063517Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3063791Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3064012Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3065018Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3065270Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3065506Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3065919Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3066111Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3066300Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3066480Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3066722Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3067154Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3067355Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3067493Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3067503Z 2023-01-11T21:03:36.3069654Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.3069768Z ================== 2023-01-11T21:03:36.3069862Z ================== 2023-01-11T21:03:36.3070142Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.3070413Z  Write of size 8 at 0x7ba4000153b8 by thread T1: 2023-01-11T21:03:36.3073568Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.3074036Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3074382Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3074890Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3075358Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3075744Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3075920Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3076240Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3076458Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3076467Z 2023-01-11T21:03:36.3076790Z  Previous write of size 8 at 0x7ba4000153b8 by main thread: 2023-01-11T21:03:36.3079813Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.3080205Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3080526Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3080983Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3081406Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3081680Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.3081983Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.3082304Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.3082625Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.3083828Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.3084154Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.3084446Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.3085655Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.3085969Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.3086283Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.3087474Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3087899Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3089218Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3089538Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3089777Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3090168Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3090342Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3090525Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3090700Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3090921Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3091397Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3091593Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3091744Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3091755Z 2023-01-11T21:03:36.3092142Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.3092418Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.3092608Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.3092845Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.3093159Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.3093791Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.3094174Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.3094750Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.3095143Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.3095610Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.3097188Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.3098100Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.3098560Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.3100381Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.3100902Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.3101200Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.3102379Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.3102718Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.3103060Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.3104427Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3104835Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3106281Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3106640Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3106894Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3107313Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3107547Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3107741Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3107943Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3108185Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3108696Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3108889Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3109041Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3109051Z 2023-01-11T21:03:36.3109423Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.3109710Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3110056Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3110626Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3110913Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3111408Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3111672Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3111994Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3112707Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3113076Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3113375Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3113713Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3114705Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3114981Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3115354Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3116459Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3116852Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3118165Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3118470Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3118700Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3119742Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3119986Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3120237Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3120654Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3120836Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3121027Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3121204Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3121441Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3121967Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3122164Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3122318Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3122327Z 2023-01-11T21:03:36.3125396Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.3125564Z ================== 2023-01-11T21:03:36.3125822Z ================== 2023-01-11T21:03:36.3126121Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.3126422Z  Write of size 8 at 0x7ba4000153c0 by thread T1: 2023-01-11T21:03:36.3130607Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.3131082Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3131479Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3131984Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3132497Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3132980Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3133226Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3133630Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3133869Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3133879Z 2023-01-11T21:03:36.3134210Z  Previous write of size 8 at 0x7ba4000153c0 by main thread: 2023-01-11T21:03:36.3138404Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.3138978Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3139385Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3139897Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3140421Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3140775Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.3141137Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.3141544Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.3141919Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.3143367Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.3143753Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.3144115Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.3145598Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.3145973Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.3146340Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.3147862Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3148303Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3149878Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3150256Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3150538Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3150997Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3151197Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3151406Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3151621Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3151921Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3152489Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3152696Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3152862Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3152871Z 2023-01-11T21:03:36.3153271Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.3153554Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.3153764Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.3154049Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.3154414Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.3155318Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.3155796Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.3156272Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.3156749Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.3157341Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.3159305Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.3160449Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.3161027Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.3162956Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.3163446Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.3163756Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.3165010Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.3165322Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.3165691Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.3167188Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3167647Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3169207Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3169618Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3169906Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3170367Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3170562Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3170772Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3170986Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3171247Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3171824Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3172026Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3172187Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3172196Z 2023-01-11T21:03:36.3172574Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.3172871Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3173257Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3173823Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3174133Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3174770Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3175047Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3175398Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3176163Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3176611Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3176949Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3177298Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3178323Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3178610Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3179087Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3180305Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3180679Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3182095Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3182409Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3182655Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3183785Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3184038Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3184305Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3184805Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3185001Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3185214Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3185429Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3185693Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3186269Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3186476Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3186648Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3186657Z 2023-01-11T21:03:36.3189818Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.3189942Z ================== 2023-01-11T21:03:36.3190052Z ================== 2023-01-11T21:03:36.3190355Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.3190653Z  Write of size 8 at 0x7ba400016770 by thread T2: 2023-01-11T21:03:36.3194793Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.3195248Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3195687Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3196201Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3196724Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3197207Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3197460Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3197851Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3198126Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3198136Z 2023-01-11T21:03:36.3198474Z  Previous write of size 8 at 0x7ba400016770 by main thread: 2023-01-11T21:03:36.3202521Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.3202974Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3203369Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3203871Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3204395Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3204742Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.3205171Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.3205573Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.3205952Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.3207409Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.3207800Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.3208158Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.3209616Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.3209979Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.3210347Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.3211834Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3212256Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3213832Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3214266Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3214652Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3215180Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3215378Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3215591Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3215805Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3216074Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3216643Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3216841Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3217009Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3217019Z 2023-01-11T21:03:36.3217415Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.3217705Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.3217916Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.3218206Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.3218570Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.3219370Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.3219861Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.3220336Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.3220813Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.3221394Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.3223461Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.3224600Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.3225158Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.3227068Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.3227565Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.3227881Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.3229134Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.3229486Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.3229854Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.3231380Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3231819Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3233390Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3233773Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3234069Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3234521Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3234791Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3234993Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3235209Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3235465Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3236020Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3236233Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3236437Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3236445Z 2023-01-11T21:03:36.3236827Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.3237117Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3237516Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3238081Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3238378Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3238891Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3239170Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3239538Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3240292Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3240692Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3241006Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3241363Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3242399Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3242684Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3243086Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3244313Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3244681Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3246103Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3246463Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3246715Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3247889Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3248157Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3248422Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3248883Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3249086Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3249298Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3249514Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3249787Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3250368Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3250563Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3250730Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3250739Z 2023-01-11T21:03:36.3253859Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.3253988Z ================== 2023-01-11T21:03:36.3254187Z ================== 2023-01-11T21:03:36.3254583Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.3254897Z  Write of size 8 at 0x7ba400017b20 by thread T3: 2023-01-11T21:03:36.3259105Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.3259578Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3259981Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3260484Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3261007Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3261489Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3261738Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3262123Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3262374Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3262386Z 2023-01-11T21:03:36.3262714Z  Previous write of size 8 at 0x7ba400017b20 by thread T2: 2023-01-11T21:03:36.3266811Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.3267277Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3267673Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3268182Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3268736Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3269222Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3269473Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3269874Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3270114Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3270120Z 2023-01-11T21:03:36.3270519Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.3270812Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.3271027Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.3271311Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.3271664Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.3272482Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.3272979Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.3273458Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.3273886Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.3274358Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.3276087Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.3277038Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.3277464Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.3279282Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.3279806Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.3280104Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.3281365Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.3281724Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.3282089Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.3283609Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3284026Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3285595Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3285979Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3286257Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3286728Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3286926Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3287142Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3287357Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3287611Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3288206Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3288419Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3288625Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3288637Z 2023-01-11T21:03:36.3289032Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.3289325Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3289712Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3290270Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3290575Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3291100Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3291382Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3291750Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3292520Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3292903Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3293234Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3293593Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3294715Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3295009Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3295425Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3296664Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3297043Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3298474Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3298860Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3299117Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3300305Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3300565Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3300828Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3301300Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3301497Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3301700Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3301904Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3302173Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3302733Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3302947Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3303099Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3303109Z 2023-01-11T21:03:36.3303495Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.3303782Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3304173Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3304742Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3305038Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3305553Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3305830Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3306156Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3306931Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3307314Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3307650Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3308000Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3309032Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3309381Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3309775Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3311018Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3311411Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3312834Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3313157Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3313407Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3314534Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3314899Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3315167Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3315644Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3315841Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3316057Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3316273Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3316516Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3317075Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3317290Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3317453Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3317463Z 2023-01-11T21:03:36.3320646Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.3320782Z ================== 2023-01-11T21:03:36.3320979Z ================== 2023-01-11T21:03:36.3321279Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.3321576Z  Write of size 8 at 0x7ba400016758 by thread T1: 2023-01-11T21:03:36.3325676Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:36.3326141Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3326580Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3327093Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3327618Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3328096Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3328348Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3328785Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3329022Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3329032Z 2023-01-11T21:03:36.3329368Z  Previous write of size 8 at 0x7ba400016758 by main thread: 2023-01-11T21:03:36.3333483Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:36.3333956Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3334448Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3334964Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3335482Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3335899Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.3336271Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.3336680Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.3337063Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.3338542Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.3338926Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.3339290Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.3340737Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.3341128Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.3341485Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.3342996Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3343436Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3345065Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3345438Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3345730Z #19 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3346233Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3346440Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3346650Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3346851Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3347125Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3347683Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3347898Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3348043Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3348053Z 2023-01-11T21:03:36.3348449Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.3348736Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.3348958Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.3349235Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.3349607Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.3350394Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.3350885Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.3351355Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.3351831Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.3352479Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.3354477Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.3355667Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.3356227Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.3358139Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.3358634Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.3358956Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.3360258Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.3360566Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.3370190Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.3371795Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3372233Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3373831Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3374212Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3374735Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3375208Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3375404Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3375618Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3375828Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3376091Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3376660Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3376959Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3377124Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3377134Z 2023-01-11T21:03:36.3377543Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.3377837Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3378231Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3378803Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3379103Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3379637Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3379977Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3380321Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3381077Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3381467Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3381803Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3382165Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3383208Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3383489Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3383904Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3385137Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3385504Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3386955Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3387277Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3387521Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3388685Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3388948Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3389211Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3389658Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3389866Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3390075Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3390289Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3390559Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3391129Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3391338Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3391498Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3391511Z 2023-01-11T21:03:36.3394721Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.3394838Z ================== 2023-01-11T21:03:36.3499044Z ================== 2023-01-11T21:03:36.3499453Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.3499930Z  Write of size 8 at 0x7ba400018eb8 by thread T3: 2023-01-11T21:03:36.3504141Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:36.3504618Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3505056Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3505567Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3506099Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3506591Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3506842Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3507243Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3507483Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3507493Z 2023-01-11T21:03:36.3507824Z  Previous write of size 8 at 0x7ba400018eb8 by thread T2: 2023-01-11T21:03:36.3511956Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:36.3512461Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.3512866Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.3513400Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.3513928Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.3514416Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.3514721Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.3515123Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.3515367Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.3515376Z 2023-01-11T21:03:36.3515785Z  Location is heap block of size 20160 at 0x7ba400014000 allocated by main thread: 2023-01-11T21:03:36.3516083Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.3516298Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.3516589Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.3516958Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.3517779Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.3518275Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.3518754Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.3519235Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.3519881Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.3521962Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.3523125Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.3523687Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.3525625Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.3526126Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.3526446Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:36.3527778Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:36.3528093Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:36.3528473Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:36.3530025Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.3530474Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:36.3532103Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.3532493Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.3532789Z #22 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cac8c) 2023-01-11T21:03:36.3533262Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3533462Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3533664Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3533878Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3534144Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3535013Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3535296Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3535461Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3535470Z 2023-01-11T21:03:36.3535877Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.3536173Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3536573Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3537152Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3537466Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3538009Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3538320Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3538671Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3539451Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3539838Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3540178Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3540538Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3541585Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3541883Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3542292Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3543562Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3543944Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3545428Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3545744Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3546003Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3547185Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3547452Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3547721Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3548191Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3548398Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3548612Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3548828Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3549096Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3549668Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3549876Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3550046Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3550055Z 2023-01-11T21:03:36.3550444Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.3550746Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.3551145Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.3551729Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.3552041Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.3552581Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.3552860Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.3553243Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.3554039Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.3554442Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.3554844Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.3555204Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.3556296Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.3556598Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.3557008Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.3558247Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.3558637Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.3560084Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.3560403Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.3560662Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.3561805Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.3562102Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.3562371Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.3562846Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.3563044Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.3563260Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.3563477Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.3563738Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.3564323Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.3564543Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.3564743Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.3564753Z 2023-01-11T21:03:36.3567946Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.3568072Z ================== 2023-01-11T21:03:36.4592150Z ================== 2023-01-11T21:03:36.4592824Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.4593369Z  Write of size 8 at 0x7ba40001b760 by thread T1: 2023-01-11T21:03:36.4597474Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.4600413Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.4601211Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.4602054Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.4603026Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.4603963Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.4604738Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.4605400Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.4605981Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.4606262Z 2023-01-11T21:03:36.4606597Z  Previous write of size 8 at 0x7ba40001b760 by main thread: 2023-01-11T21:03:36.4610429Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.4613049Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.4613832Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.4615453Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.4617230Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.4618220Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.4618898Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.4619627Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.4620352Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.4621971Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.4623542Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.4624317Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.4625328Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.4626628Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.4627650Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.4628103Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.4629101Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.4630068Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.4630524Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.4631486Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.4632426Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.4633106Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.4633911Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.4634530Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.4635738Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.4636811Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.4637288Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.4637715Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.4638064Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.4638493Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.4638870Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.4639146Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.4639401Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.4639687Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.4640163Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.4640587Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.4640818Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.4640947Z 2023-01-11T21:03:36.4641213Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2023-01-11T21:03:36.4641551Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.4641802Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.4642107Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.4642491Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.4643173Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.4643870Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.4644401Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.4644922Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.4645509Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.4646919Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.4648659Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.4649578Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.4650927Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.4652290Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.4652746Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.4653194Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.4654709Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.4656216Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.4657703Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.4659108Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.4659650Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.4661087Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.4662602Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.4664020Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.4665483Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.4665962Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.4666525Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.4668923Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.4671425Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.4673711Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.4676155Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.4677086Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.4679450Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.4681999Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.4684485Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.4686570Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.4687310Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.4687852Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.4689308Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.4690731Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.4691310Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.4691877Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.4692543Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.4693272Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.4694255Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.4695524Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.4696477Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.4697168Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.4698399Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.4699362Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.4699781Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.4700735Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.4701848Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.4702506Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.4703313Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.4703966Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.4705070Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.4706071Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.4706544Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.4706983Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.4707328Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.4707746Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.4708121Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.4708377Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.4708636Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.4708910Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.4709384Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.4709816Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.4710045Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.4710159Z 2023-01-11T21:03:36.4710438Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.4710773Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.4711135Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.4711676Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.4712151Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.4712623Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.4713068Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.4713424Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.4714058Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.4714546Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.4715034Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.4715424Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.4716193Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.4716888Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.4717291Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.4718184Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.4719029Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.4720006Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.4720948Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.4721278Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.4722074Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.4722815Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.4723121Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.4723531Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.4723905Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.4724154Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.4724409Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.4724684Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.4725157Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.4725590Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.4725820Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.4725935Z 2023-01-11T21:03:36.4727623Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.4728641Z ================== 2023-01-11T21:03:36.4728790Z ================== 2023-01-11T21:03:36.4729050Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.4729367Z  Write of size 8 at 0x7ba40001a3b0 by thread T3: 2023-01-11T21:03:36.4731651Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.4733358Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.4733827Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.4734433Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.4735006Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.4735783Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.4736419Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.4736958Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.4737531Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.4737774Z 2023-01-11T21:03:36.4738085Z  Previous write of size 8 at 0x7ba40001a3b0 by main thread: 2023-01-11T21:03:36.4741873Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:36.4744639Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.4745404Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.4746211Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.4747185Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.4747990Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.4748622Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.4749216Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.4749798Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.4751305Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.4752863Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.4753710Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.4754727Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.4756070Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.4757155Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.4757879Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.4759310Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.4760846Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.4761427Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.4763043Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.4764537Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.4765666Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.4767027Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.4767820Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.4768922Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.4769995Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.4770473Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.4770910Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.4771241Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.4771671Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.4772049Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.4772301Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.4772546Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.4772866Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.4773347Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.4773784Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.4774003Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.4774132Z 2023-01-11T21:03:36.4774487Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2023-01-11T21:03:36.4774828Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.4775089Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.4775376Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.4775759Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.4776415Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.4777105Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.4777640Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.4778166Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.4778749Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.4780140Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.4781986Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.4782879Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.4784205Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.4785575Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.4786031Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.4786501Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.4787902Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.4789468Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.4790836Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.4792245Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.4792787Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.4794212Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.4795858Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.4797289Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.4798733Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.4799211Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.4799701Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.4801111Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.4802563Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.4803965Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.4805916Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.4806871Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.4809022Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.4811455Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.4813768Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.4816328Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.4817132Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.4817675Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.4819202Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.4820543Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.4820970Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.4821463Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.4822162Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.4822955Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.4823893Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.4825120Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.4826138Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.4826851Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.4828480Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.4830177Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.4830880Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.4832483Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.4834106Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.4835284Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.4836630Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.4837333Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.4838436Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.4839468Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.4839932Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.4840371Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.4840770Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.4841203Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.4841583Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.4841825Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.4842084Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.4842374Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.4842853Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.4843276Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.4843514Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.4843643Z 2023-01-11T21:03:36.4843892Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.4844264Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.4844614Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.4845162Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.4845649Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.4846124Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.4846576Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.4846923Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.4847530Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.4848015Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.4848429Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.4848821Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.4849587Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.4850284Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.4850674Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.4851604Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.4852451Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.4853474Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.4854490Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.4854808Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.4855585Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.4856318Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.4856633Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.4857057Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.4857434Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.4857680Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.4857940Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.4858227Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.4858700Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.4859121Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.4859352Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.4859480Z 2023-01-11T21:03:36.4861141Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.4862219Z ================== 2023-01-11T21:03:36.4862535Z ================== 2023-01-11T21:03:36.4862805Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.4863113Z  Write of size 8 at 0x7ba40001a3b8 by thread T3: 2023-01-11T21:03:36.4865446Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.4867071Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.4867552Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.4868063Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.4868639Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.4869196Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.4869596Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.4870082Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.4870612Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.4870893Z 2023-01-11T21:03:36.4871157Z  Previous write of size 8 at 0x7ba40001a3b8 by main thread: 2023-01-11T21:03:36.4874833Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.4877176Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.4877822Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.4878568Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.4879152Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.4879751Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.4880271Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.4880843Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.4881473Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.4882436Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.4883651Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.4884420Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.4885275Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.4886385Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.4887162Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.4887812Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.4889197Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.4890526Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.4891074Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.4892280Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.4893526Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.4894460Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.4895377Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.4896176Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.4897820Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.4899020Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.4899642Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.4900235Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.4900715Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.4901310Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.4901833Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.4902213Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.4902578Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.4902975Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.4903622Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.4904214Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.4904523Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.4904720Z 2023-01-11T21:03:36.4905045Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2023-01-11T21:03:36.4905507Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.4905872Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.4906285Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.4906798Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.4907686Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.4908707Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.4909429Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.4910298Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.4911153Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.4913154Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.4915660Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.4916956Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.4919011Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.4921003Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.4921659Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.4922320Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.4924350Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.4926404Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.4928339Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.4930241Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.4930988Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.4933023Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.4935529Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.4937932Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.4940331Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.4941143Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.4941971Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.4944364Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.4946868Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.4949281Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.4951628Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.4952527Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.4955051Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.4957670Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.4960100Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.4962501Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.4963280Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.4963860Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.4965272Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.4966605Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.4967207Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.4967871Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.4968611Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.4969363Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.4970370Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.4971770Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.4972895Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.4973659Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.4975834Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.4977577Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.4978327Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.4980088Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.4981769Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.4982958Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.4984440Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.4985577Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.4987617Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.4989521Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.4990384Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.4991175Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.4991806Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.4992614Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.4993300Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.4993750Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.4994222Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.4994778Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.4995652Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.4996447Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.4996867Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.4997075Z 2023-01-11T21:03:36.4997497Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.4998085Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.4998725Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.4999705Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.5000573Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.5001446Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.5002247Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.5002895Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.5004005Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.5004887Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.5005657Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.5006364Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.5007753Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.5009021Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.5009752Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.5011420Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.5012962Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.5014908Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.5016546Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.5017140Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.5018548Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.5019866Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.5020429Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.5021172Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5021907Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5022365Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5022826Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5023330Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5024196Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5024982Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5025395Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5025591Z 2023-01-11T21:03:36.5028789Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.5030598Z ================== 2023-01-11T21:03:36.5030897Z ================== 2023-01-11T21:03:36.5031352Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.5031930Z  Write of size 8 at 0x7ba40001b768 by thread T1: 2023-01-11T21:03:36.5036257Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.5039146Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5040014Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5040963Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5041991Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5043001Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.5043747Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.5044435Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.5045097Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.5045371Z 2023-01-11T21:03:36.5045718Z  Previous write of size 8 at 0x7ba40001b768 by main thread: 2023-01-11T21:03:36.5050110Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:36.5053064Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5053941Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5054967Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5055998Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5056877Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.5057585Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.5058449Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.5059257Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.5060985Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.5062647Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.5063524Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5064639Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5066022Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5067111Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5067874Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5069707Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5071428Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5072191Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5073942Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5075730Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5076935Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5078441Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5079562Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5081590Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5083447Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5084315Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5085100Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5085712Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5086493Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5086698Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5086910Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5087122Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5087389Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5087966Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5088223Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5088374Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5088397Z 2023-01-11T21:03:36.5088805Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2023-01-11T21:03:36.5089100Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.5089324Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.5089613Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.5089986Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.5090813Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.5091337Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.5091825Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.5092300Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.5092894Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.5094996Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.5096145Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.5096778Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.5098732Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.5099236Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.5099565Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.5100057Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.5102167Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.5102744Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5104699Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5105226Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5105754Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5107914Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5108487Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5110507Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5111077Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5111428Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5111976Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.5114039Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.5114736Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5116691Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5117185Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5117681Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5119887Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5120511Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5122536Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5123066Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5123410Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5123675Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.5124923Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.5125187Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.5125572Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.5125929Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.5126350Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.5126746Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5127442Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5128177Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5128558Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5128918Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5130363Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5130730Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5131105Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5132466Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5132884Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5133675Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5134496Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5134928Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5136570Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5136944Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5137421Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5137724Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5138016Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5138482Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5138683Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5138898Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5139113Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5139373Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5139938Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5140153Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5140313Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5140322Z 2023-01-11T21:03:36.5140723Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.5141022Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.5141405Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.5141975Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.5142327Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.5142868Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.5143139Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.5143491Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.5144250Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.5144644Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.5145022Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.5145378Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.5146412Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.5146706Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.5147123Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.5148340Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.5148729Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.5150146Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.5150495Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.5150745Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.5151876Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.5152136Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.5152403Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.5152867Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5153101Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5153313Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5153523Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5153784Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5154369Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5154636Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5154799Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5154812Z 2023-01-11T21:03:36.5158013Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.5158135Z ================== 2023-01-11T21:03:36.5158616Z ================== 2023-01-11T21:03:36.5158915Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.5159214Z  Write of size 8 at 0x7ba40001a3c0 by thread T3: 2023-01-11T21:03:36.5163343Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.5163842Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5164245Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5164786Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5165305Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5165793Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.5166040Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.5166443Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.5166688Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.5166698Z 2023-01-11T21:03:36.5167023Z  Previous write of size 8 at 0x7ba40001a3c0 by main thread: 2023-01-11T21:03:36.5171106Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.5171563Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5172005Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5172504Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5173025Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5173364Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.5173734Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.5174173Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.5174655Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.5175971Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.5176400Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.5176796Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5177492Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5178198Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5178578Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5178929Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5180383Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5180836Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5181208Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5182643Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5183053Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5183845Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5184544Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5184975Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5186556Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5186939Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5187391Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5187732Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5188026Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5188495Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5188694Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5188905Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5189124Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5189389Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5189961Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5190177Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5190375Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5190384Z 2023-01-11T21:03:36.5190790Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2023-01-11T21:03:36.5191077Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.5191291Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.5191573Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.5191946Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.5192748Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.5193228Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.5193712Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.5194183Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.5194836Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.5196828Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.5198016Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.5198603Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.5200525Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.5201023Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.5201353Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.5201853Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.5203962Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.5204558Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5206571Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5207072Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5207564Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5209730Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5210309Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5212375Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5212932Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5213277Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5213822Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.5216052Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.5216643Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5218599Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5219157Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5219639Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5221858Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5222439Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5224474Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5224992Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5225380Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5225645Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.5226880Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.5227161Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.5227545Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.5227909Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.5228331Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.5228721Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5229424Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5230134Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5230505Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5230873Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5232320Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5232692Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5233090Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5234483Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5234933Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5235760Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5236463Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5236892Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5238479Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5238856Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5239328Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5239630Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5239922Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5240382Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5240582Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5240795Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5241046Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5241307Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5241888Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5242101Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5242248Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5242258Z 2023-01-11T21:03:36.5242655Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.5242955Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.5243339Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.5243919Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.5244260Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.5244799Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.5245061Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.5245405Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.5246167Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.5246576Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.5246906Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.5247262Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.5248292Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.5248585Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.5248999Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.5250228Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.5250638Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.5252064Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.5252379Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.5252671Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.5253806Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.5254075Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.5254477Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.5254957Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5255153Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5255368Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5255587Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5255857Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5256435Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5256651Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5256815Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5256824Z 2023-01-11T21:03:36.5259952Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.5260131Z ================== 2023-01-11T21:03:36.5260251Z ================== 2023-01-11T21:03:36.5260552Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.5260847Z  Write of size 8 at 0x7ba40001b770 by thread T1: 2023-01-11T21:03:36.5264988Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.5265438Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5265842Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5266348Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5266865Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5267340Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.5267591Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.5267989Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.5268227Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.5268236Z 2023-01-11T21:03:36.5268564Z  Previous write of size 8 at 0x7ba40001b770 by main thread: 2023-01-11T21:03:36.5272640Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.5273145Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5273563Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5274069Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5274644Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5274994Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.5275359Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.5275747Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.5276128Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.5277428Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.5277841Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.5278229Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5278907Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5279637Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5280019Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5280384Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5281860Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5282236Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5282602Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5283962Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5284366Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5285140Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5285836Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5286262Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5287826Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5288231Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5288693Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5289022Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5289312Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5289768Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5289944Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5290151Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5290364Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5290630Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5291190Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5291396Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5291561Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5291570Z 2023-01-11T21:03:36.5291965Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2023-01-11T21:03:36.5292260Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.5292482Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.5292749Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.5293112Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.5293917Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.5294493Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.5294975Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.5295512Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.5296114Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.5298105Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.5299246Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.5299812Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.5301697Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.5302190Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.5302561Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.5303064Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.5305215Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.5305781Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5307758Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5308260Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5308749Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5310904Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5311548Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5313597Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5314124Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5314459Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5315055Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.5317119Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.5317714Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5319727Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5320229Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5320723Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5322870Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5323463Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5325472Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5326053Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5326399Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5326657Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.5327896Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.5328175Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.5328518Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.5328877Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.5329304Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.5329691Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5330395Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5331106Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5331482Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5331918Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5333372Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5333744Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5334164Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5335634Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5336046Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5336832Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5337533Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5337978Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5339563Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5340004Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5340479Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5340774Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5341063Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5341539Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5341741Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5341955Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5342172Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5342491Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5343062Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5343276Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5343442Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5343451Z 2023-01-11T21:03:36.5343846Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.5344135Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.5344530Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.5345107Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.5345418Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.5345957Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.5346239Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.5346562Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.5347328Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.5347718Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.5348052Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.5348404Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.5349426Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.5349762Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.5350168Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.5351441Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.5351826Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.5353244Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.5353562Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.5353817Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.5355005Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.5355263Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.5355536Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.5355997Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5356196Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5356410Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5356625Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5356876Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5357449Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5357694Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5357858Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5357868Z 2023-01-11T21:03:36.5361078Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.5361204Z ================== 2023-01-11T21:03:36.5361319Z ================== 2023-01-11T21:03:36.5361620Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.5361927Z  Write of size 8 at 0x7ba40001b770 by thread T2: 2023-01-11T21:03:36.5366043Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.5366523Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5366917Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5367411Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5367945Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5368457Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.5368696Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.5369099Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.5369336Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.5369344Z 2023-01-11T21:03:36.5369669Z  Previous write of size 8 at 0x7ba40001b770 by main thread: 2023-01-11T21:03:36.5373789Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:36.5374265Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5374904Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5375399Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5375928Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5376267Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.5376632Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.5377039Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.5377402Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.5378737Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.5379217Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.5379615Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5380315Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5381079Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5381470Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5381828Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5383280Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5383648Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5384016Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5385392Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5385836Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5386633Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5387342Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5387769Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5389394Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5389767Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5390239Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5390547Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5390839Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5391304Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5391501Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5391714Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5391933Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5392199Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5392756Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5392973Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5393136Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5393145Z 2023-01-11T21:03:36.5393546Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2023-01-11T21:03:36.5393845Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.5394066Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.5394380Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.5394804Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.5395602Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.5396094Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.5396567Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.5397090Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.5397675Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.5399646Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.5400811Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.5401354Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.5403251Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.5403799Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.5404164Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.5404665Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.5406783Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.5407336Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5409326Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5409860Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5410353Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5412554Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5413138Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5415240Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5415774Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5416121Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5416699Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.5418778Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.5419342Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5421322Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5421820Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5422313Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5424485Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5425109Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5427171Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5427718Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5428068Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5428326Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.5429575Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.5429850Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.5430192Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.5430554Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.5430976Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.5431404Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5432102Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5432811Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5433188Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5433609Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5435111Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5435486Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5435863Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5437231Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5437637Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5438416Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5439115Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5439588Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5441171Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5441584Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5442040Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5442353Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5442643Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5443110Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5443315Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5443527Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5443719Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5443981Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5444563Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5444770Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5444934Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5444944Z 2023-01-11T21:03:36.5445344Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.5445636Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.5446027Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.5446599Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.5446906Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.5447439Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.5447745Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.5448093Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.5448855Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.5449254Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.5449564Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.5449918Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.5450989Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.5451284Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.5451669Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.5452906Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.5453290Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.5454793Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.5455120Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.5455374Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.5456510Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.5456817Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.5457088Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.5457542Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5457745Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5457960Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5458175Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5458437Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5459058Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5459256Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5459412Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5459422Z 2023-01-11T21:03:36.5462542Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.5462679Z ================== 2023-01-11T21:03:36.5462917Z ================== 2023-01-11T21:03:36.5463218Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.5463526Z  Write of size 8 at 0x7ba40001b758 by thread T3: 2023-01-11T21:03:36.5467592Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:36.5468100Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5468487Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5469000Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5469516Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5470045Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.5470288Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.5470689Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.5470933Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.5470943Z 2023-01-11T21:03:36.5471271Z  Previous write of size 8 at 0x7ba40001b758 by main thread: 2023-01-11T21:03:36.5475433Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:36.5475901Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.5476292Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.5476803Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.5477361Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.5477705Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.5478068Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.5478468Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:36.5478849Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.5480189Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.5480618Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.5481014Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5481717Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5482421Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5482804Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5483153Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5484611Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5485020Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5485395Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5486759Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5487186Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5487970Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5488680Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5489108Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5490710Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5491086Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5491557Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5491865Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5492149Z #28 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5492618Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5492855Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5493047Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5493260Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5493530Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5494095Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5494309Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5494819Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5494852Z 2023-01-11T21:03:36.5495240Z  Location is heap block of size 20160 at 0x7ba400019000 allocated by main thread: 2023-01-11T21:03:36.5495433Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.5495580Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.5495735Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.5496127Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.5496588Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.5496857Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.5497125Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.5497391Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.5497717Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.5498796Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.5499492Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.5499792Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.5500844Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.5501120Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.5501305Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.5501580Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.5502725Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.5503062Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5504176Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5504450Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5504716Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5505877Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5506210Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5507301Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5507618Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5507810Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5508130Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.5509246Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.5509552Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.5510634Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.5510937Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.5511205Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.5512386Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.5512717Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.5513807Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.5514094Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.5514283Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.5514427Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.5515165Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.5515358Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.5515551Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.5515751Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.5515988Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.5516231Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.5516615Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.5517000Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.5517216Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.5517413Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.5518212Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.5518417Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.5518620Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.5519361Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:36.5519614Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:36.5520043Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:36.5520465Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:36.5520709Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:36.5521567Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:36.5521794Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.5522060Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e23e0) 2023-01-11T21:03:36.5522235Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.5522385Z #60 torch::lazy::LazyOpsTest_TestOneIndexPut_Test::TestBody() (test_lazy+0x2cae41) 2023-01-11T21:03:36.5522644Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5522759Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5522879Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5523001Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5523149Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5523462Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5523585Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5523710Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5523716Z 2023-01-11T21:03:36.5523942Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.5524099Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.5524319Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.5524636Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.5524809Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.5525101Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.5525256Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.5525482Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.5525890Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.5526110Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.5526294Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.5526492Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.5527052Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.5527216Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.5527443Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.5528103Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.5528316Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.5529095Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.5529303Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.5529448Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.5530089Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.5530238Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.5530389Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.5530647Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.5530763Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.5530871Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.5530989Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.5531135Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.5531446Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.5531563Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.5531658Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.5531664Z 2023-01-11T21:03:36.5533357Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:36.5533432Z ================== 2023-01-11T21:03:36.6871160Z [ OK ] LazyOpsTest.TestOneIndexPut (1062 ms) 2023-01-11T21:03:36.6902923Z [ RUN ] LazyOpsTest.TestOneIndexPutInPlace 2023-01-11T21:03:36.6903306Z ================== 2023-01-11T21:03:36.6903593Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.6903881Z  Write of size 4 at 0x7b9400015358 by thread T2: 2023-01-11T21:03:36.6907691Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:36.6908312Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.6908606Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.6908916Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.6909346Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.6909650Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.6909846Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.6910128Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.6910341Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.6910350Z 2023-01-11T21:03:36.6910628Z  Previous write of size 4 at 0x7b9400015358 by main thread: 2023-01-11T21:03:36.6913491Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:36.6913899Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.6914235Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.6914798Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.6915287Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.6915620Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.6915947Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.6916309Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.6916655Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.6918061Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.6918427Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.6918786Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.6920186Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.6920669Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.6921972Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.6922350Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.6923654Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.6923949Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.6924405Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.6924673Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.6924970Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.6925399Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.6925587Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.6925781Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.6925973Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.6926203Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.6926705Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.6926965Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.6927113Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.6927122Z 2023-01-11T21:03:36.6927518Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.6927785Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.6927962Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.6928223Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.6928554Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.6929257Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.6929785Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.6930202Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.6930642Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.6931197Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.6932478Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.6933523Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.6934086Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.6936033Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.6936516Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.6936822Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.6937239Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.6937603Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.6938122Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.6939389Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.6939953Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.6940430Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.6941918Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.6942322Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.6942557Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.6942787Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.6943221Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.6943501Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.6943784Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.6944200Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.6944376Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.6944563Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.6944746Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.6944977Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.6945475Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.6945651Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.6945806Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.6945818Z 2023-01-11T21:03:36.6946141Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.6946420Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.6946766Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.6947316Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.6947593Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.6948055Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.6948296Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.6948595Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.6949123Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.6949379Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.6949564Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.6949760Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.6950339Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.6950592Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.6965923Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.6967036Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.6967405Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.6968722Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.6969046Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.6969279Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.6970414Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.6970689Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.6970967Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.6971508Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.6971716Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.6971931Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.6972148Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.6972417Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.6972994Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.6973212Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.6973377Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.6973391Z 2023-01-11T21:03:36.6976341Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.6976455Z ================== 2023-01-11T21:03:36.6976644Z ================== 2023-01-11T21:03:36.6976915Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.6977171Z  Write of size 4 at 0x7b9400015358 by thread T3: 2023-01-11T21:03:36.6980452Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:36.6980974Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.6981365Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.6981798Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.6982230Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.6982624Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.6982839Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.6983161Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.6983364Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.6983373Z 2023-01-11T21:03:36.6983663Z  Previous write of size 4 at 0x7b9400015358 by main thread: 2023-01-11T21:03:36.6987029Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:36.6987468Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.6987810Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.6988199Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.6988639Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.6988925Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.6989275Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.6989596Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.6989909Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.6991069Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.6991384Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.6991676Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.6992922Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.6993363Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.6994854Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.6995309Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.6996803Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.6997151Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.6997620Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.6997931Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.6998234Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.6998670Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.6998867Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.6999065Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.6999269Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.6999528Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7000075Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7000270Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7000423Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7000433Z 2023-01-11T21:03:36.7000818Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7001100Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7001309Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7001583Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7001930Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7002720Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7003161Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7003613Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7004082Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7004707Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7006676Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7007788Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7008341Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7010171Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7010706Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7011066Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7011511Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7011900Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7012455Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7014163Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7015243Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7015709Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7017084Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7017334Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7017544Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7017792Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7018238Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7018554Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7018865Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7019339Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7019547Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7019766Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7019987Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7020237Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7020579Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7020701Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7020796Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7020805Z 2023-01-11T21:03:36.7021042Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.7021210Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7021418Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7021738Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7021912Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7022205Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7022398Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7022589Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7023001Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7023221Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7023404Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7023626Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7024219Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7024379Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7024602Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7025267Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7025481Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7026261Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7026438Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7026580Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7027191Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7027368Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7027517Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7027769Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7027884Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7027988Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7028110Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7028256Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7028593Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7028713Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7028806Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7028812Z 2023-01-11T21:03:36.7030475Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7030550Z ================== 2023-01-11T21:03:36.7030673Z ================== 2023-01-11T21:03:36.7030843Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7031018Z  Write of size 4 at 0x7b9400015358 by thread T1: 2023-01-11T21:03:36.7033150Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:36.7033462Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7033685Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7033967Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7034258Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7034622Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7034768Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7034980Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7035119Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7035125Z 2023-01-11T21:03:36.7035313Z  Previous write of size 4 at 0x7b9400015358 by main thread: 2023-01-11T21:03:36.7037447Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:36.7037723Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7037943Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7038224Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7038545Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7038740Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7038941Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7039167Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7039382Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7040212Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7040428Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7040628Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7041476Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7041737Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7043056Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7043545Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7044942Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7045358Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7045859Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7046144Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7046468Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7046912Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7047122Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7047322Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7047543Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7047818Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7048381Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7048581Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7048746Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7048756Z 2023-01-11T21:03:36.7049175Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7049485Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7049704Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7049992Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7050359Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7051143Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7051595Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7052142Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7052624Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7053212Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7055437Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7056611Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7057188Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7059142Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7059738Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7060058Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7060511Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7060930Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7061554Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7063400Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7064409Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7064686Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7065614Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7065897Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7066044Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7066191Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7066461Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7066637Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7066827Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7067079Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7067191Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7067310Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7067428Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7067575Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7067881Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7068001Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7068095Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7068102Z 2023-01-11T21:03:36.7068329Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.7068494Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7068702Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7069016Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7069189Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7069483Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7069632Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7069820Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7070221Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7070439Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7070654Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7070854Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7071412Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7071575Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7071797Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7072483Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7072695Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7073468Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7073648Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7073792Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7074403Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7074547Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7074805Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7075057Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7075203Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7075312Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7075430Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7075575Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7075886Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7076002Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7076091Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7076096Z 2023-01-11T21:03:36.7077796Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7077873Z ================== 2023-01-11T21:03:36.7077990Z ================== 2023-01-11T21:03:36.7078158Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7078330Z  Write of size 4 at 0x7b9400015360 by thread T2: 2023-01-11T21:03:36.7080466Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:36.7080739Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7080961Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7081274Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7081561Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7081827Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7081965Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7082175Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7082311Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7082316Z 2023-01-11T21:03:36.7082537Z  Previous write of size 4 at 0x7b9400015360 by main thread: 2023-01-11T21:03:36.7084686Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:36.7084956Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7085179Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7085461Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7085792Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7086087Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7086393Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7086790Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7087029Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7088276Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7088708Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7089038Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7090350Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7090736Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7092277Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7092718Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7094258Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7094771Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7095207Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7095473Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7095765Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7096298Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7096501Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7096689Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7096898Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7097128Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7097688Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7097884Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7098037Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7098046Z 2023-01-11T21:03:36.7098454Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7098722Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7098912Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7099171Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7099496Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7100230Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7100679Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7101112Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7101608Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7102317Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7104315Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7105546Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7106112Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7108063Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7108607Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7108957Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7109479Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7109899Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7110519Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7111978Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7112562Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7112835Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7113747Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7113993Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7114170Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7114322Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7114683Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7114863Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7115042Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7115296Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7115411Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7115532Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7115650Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7115799Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7116139Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7116261Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7116341Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7116347Z 2023-01-11T21:03:36.7116584Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.7116752Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7116973Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7117293Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7117466Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7117758Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7117909Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7118100Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7118505Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7118726Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7118912Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7119106Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7119668Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7119861Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7120085Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7120747Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7121006Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7121775Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7121953Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7122096Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7122706Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7122868Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7123006Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7123262Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7123375Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7123495Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7123615Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7123761Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7124069Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7124215Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7124305Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7124310Z 2023-01-11T21:03:36.7126000Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7126075Z ================== 2023-01-11T21:03:36.7126193Z ================== 2023-01-11T21:03:36.7126363Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7126537Z  Write of size 4 at 0x7b9400015360 by thread T3: 2023-01-11T21:03:36.7129204Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:36.7129604Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7129945Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7130466Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7130972Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7131523Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7131751Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7132159Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7132410Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7132421Z 2023-01-11T21:03:36.7132776Z  Previous write of size 4 at 0x7b9400015360 by main thread: 2023-01-11T21:03:36.7136467Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:36.7136739Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7136961Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7137242Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7137529Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7137723Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7137926Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7138150Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7138366Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7139164Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7139416Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7139615Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7140425Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7140662Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7141486Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7141722Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7142603Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7142891Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7143369Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7143627Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7143912Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7144368Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7144560Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7144731Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7144949Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7145217Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7145796Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7146007Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7146164Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7146176Z 2023-01-11T21:03:36.7146571Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7146867Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7147075Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7147364Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7147726Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7148573Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7149040Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7149347Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7149620Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7149959Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7151074Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7151818Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7152138Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7153207Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7153508Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7153686Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7153942Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7154177Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7154500Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7155627Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7156215Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7156486Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7157412Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7157658Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7157804Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7157955Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7158226Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7158399Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7158576Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7158871Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7158974Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7159093Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7159212Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7159359Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7159667Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7159787Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7159882Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7159888Z 2023-01-11T21:03:36.7160109Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.7160276Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7160524Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7160841Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7161011Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7161302Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7161442Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7161633Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7162040Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7162261Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7162445Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7162641Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7163202Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7163364Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7163589Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7164286Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7164504Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7165305Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7165486Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7165627Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7166237Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7166386Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7166537Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7166790Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7166905Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7167025Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7167133Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7167278Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7167586Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7167704Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7167797Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7167802Z 2023-01-11T21:03:36.7169474Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7169572Z ================== 2023-01-11T21:03:36.7169707Z ================== 2023-01-11T21:03:36.7169865Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7170038Z  Write of size 4 at 0x7b9400015360 by thread T1: 2023-01-11T21:03:36.7173529Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:36.7173934Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7174257Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7174838Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7175345Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7175849Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7176110Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7176497Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7176673Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7176693Z 2023-01-11T21:03:36.7177079Z  Previous write of size 4 at 0x7b9400015360 by main thread: 2023-01-11T21:03:36.7181259Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:36.7181736Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7182136Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7182655Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7183183Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7183509Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7183858Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7184263Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7184654Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7186067Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7186452Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7186866Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7188319Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7188799Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7190271Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7190693Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7192185Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7192565Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7193064Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7193381Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7193704Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7194156Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7194406Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7194677Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7194903Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7195160Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7195476Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7195594Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7195688Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7195694Z 2023-01-11T21:03:36.7195929Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7196099Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7196210Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7196407Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7196614Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7197053Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7197315Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7197583Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7197849Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7198183Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7199311Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7199992Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7200318Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7201416Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7201707Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7201897Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7202154Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7202389Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7202715Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7203714Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7204300Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7204597Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7205520Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7205760Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7205905Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7206053Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7206324Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7206498Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7206662Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7206909Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7207023Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7207142Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7207260Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7207407Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7207743Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7207862Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7207955Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7207961Z 2023-01-11T21:03:36.7208176Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.7208328Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7208546Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7208864Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7209038Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7209367Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7209524Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7209713Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7210115Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7210337Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7210523Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7210715Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7211273Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7211440Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7211665Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7212326Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7212640Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7213820Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7214102Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7214420Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7215490Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7215731Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7215968Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7216361Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7216526Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7216700Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7216891Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7217125Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7217633Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7217818Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7217966Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7217980Z 2023-01-11T21:03:36.7220752Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7220958Z ================== 2023-01-11T21:03:36.7221147Z ================== 2023-01-11T21:03:36.7221407Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7221695Z  Write of size 4 at 0x7b9400015364 by thread T1: 2023-01-11T21:03:36.7224995Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:36.7225388Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7225752Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7226194Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7226602Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7227026Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7227247Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7227600Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7227793Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7227804Z 2023-01-11T21:03:36.7228068Z  Previous write of size 4 at 0x7b9400015364 by main thread: 2023-01-11T21:03:36.7231412Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:36.7231813Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7232160Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7232632Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7233095Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7233390Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7233719Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7233999Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7234306Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7235255Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7235479Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7235679Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7236480Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7236752Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7237601Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7237838Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7238664Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7238882Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7239157Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7239319Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7239495Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7239751Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7239866Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7239985Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7240107Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7240257Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7240567Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7240712Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7240803Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7240809Z 2023-01-11T21:03:36.7241043Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7241199Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7241323Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7241482Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7241691Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7242131Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7242418Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7242689Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7242955Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7243296Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7244425Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7245074Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7245427Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7246540Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7246830Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7247021Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7247279Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7247513Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7247837Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7248838Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7249427Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7249697Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7250644Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7250900Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7251046Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7251183Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7251454Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7251627Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7251802Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7252055Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7252170Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7252287Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7252406Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7252555Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7252863Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7252979Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7253072Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7253077Z 2023-01-11T21:03:36.7253275Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.7253440Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7253684Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7254012Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7254274Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7254711Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7254928Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7255120Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7255768Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7256088Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7256370Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7256674Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7257604Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7257871Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7258244Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7259339Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7259663Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7260661Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7261033Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7261280Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7262201Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7262355Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7262614Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7262999Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7263117Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7263224Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7263344Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7263489Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7263803Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7263927Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7264023Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7264029Z 2023-01-11T21:03:36.7266795Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7266889Z ================== 2023-01-11T21:03:36.7266982Z ================== 2023-01-11T21:03:36.7267267Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7267554Z  Write of size 4 at 0x7b9400015364 by thread T3: 2023-01-11T21:03:36.7270997Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:36.7271529Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7271956Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7272443Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7272973Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7273419Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7273605Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7273916Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7274125Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7274137Z 2023-01-11T21:03:36.7274506Z  Previous write of size 4 at 0x7b9400015364 by main thread: 2023-01-11T21:03:36.7277638Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:36.7277953Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7278177Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7278459Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7278745Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7278940Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7279183Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7279411Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7279626Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7280422Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7280637Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7280838Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7281623Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7281860Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7282714Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7282946Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7283817Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7284027Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7284302Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7284477Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7284653Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7284905Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7285019Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7285123Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7285245Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7285391Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7285701Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7285820Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7286009Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7286015Z 2023-01-11T21:03:36.7286228Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7286397Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7286520Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7286679Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7286912Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7287354Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7287616Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7287885Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7288179Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7288518Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7289634Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7290281Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7290597Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7291681Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7292040Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7292229Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7292488Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7292721Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7293046Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7294030Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7294701Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7294977Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7295939Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7296230Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7296367Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7296517Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7296784Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7296958Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7297135Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7297391Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7297505Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7297625Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7297747Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7297892Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7298203Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7298320Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7298402Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7298407Z 2023-01-11T21:03:36.7298621Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.7298791Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7299016Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7299332Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7299506Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7299804Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7300062Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7300368Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7301047Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7301347Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7301613Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7301928Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7302887Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7303096Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7303450Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7304491Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7304845Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7306084Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7306376Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7306598Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7307642Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7307944Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7308156Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7308583Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7308767Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7308962Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7309168Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7309423Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7309981Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7310174Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7310318Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7310329Z 2023-01-11T21:03:36.7312952Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7313064Z ================== 2023-01-11T21:03:36.7313171Z ================== 2023-01-11T21:03:36.7313438Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7313658Z  Write of size 4 at 0x7b9400015364 by thread T2: 2023-01-11T21:03:36.7317023Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:36.7317522Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7317833Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7318170Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7318681Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7318961Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7319174Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7319510Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7319718Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7319728Z 2023-01-11T21:03:36.7319932Z  Previous write of size 4 at 0x7b9400015364 by main thread: 2023-01-11T21:03:36.7322400Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:36.7322662Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7322884Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7323217Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7323505Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7323698Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7323901Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7324126Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7324340Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7325149Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7325385Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7325574Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7326375Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7326616Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7327440Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7327701Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7328573Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7328784Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7329055Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7329231Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7329409Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7329666Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7329768Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7329890Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7330013Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7330162Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7330471Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7330592Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7330686Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7330694Z 2023-01-11T21:03:36.7330920Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7331088Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7331212Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7331361Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7331567Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7332010Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7332300Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7332574Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7332843Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7333179Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7334454Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7335105Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7335436Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7336517Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7336854Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7337046Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7337305Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7337576Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7337960Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7338955Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7339514Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7339790Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7340983Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7341353Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7341579Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7341806Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7342293Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7342649Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7342945Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7343281Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7343452Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7343601Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7343790Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7344031Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7344547Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7344705Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7344849Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7344857Z 2023-01-11T21:03:36.7345206Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.7345480Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7345812Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7346324Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7346627Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7347050Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7347289Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7347586Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7348330Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7348777Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7349127Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7349425Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7350414Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7350730Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7351182Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7352420Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7352840Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7354050Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7354324Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7354535Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7355592Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7355828Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7356137Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7356537Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7356714Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7356904Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7357075Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7357309Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7357849Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7358034Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7358184Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7358192Z 2023-01-11T21:03:36.7360911Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7360995Z ================== 2023-01-11T21:03:36.7361257Z ================== 2023-01-11T21:03:36.7361517Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7361743Z  Write of size 4 at 0x7b9400015368 by thread T1: 2023-01-11T21:03:36.7365139Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:36.7365534Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7365909Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7366338Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7366780Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7367198Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7367425Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7367755Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7367999Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7368009Z 2023-01-11T21:03:36.7368302Z  Previous write of size 4 at 0x7b9400015368 by main thread: 2023-01-11T21:03:36.7371794Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:36.7372208Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7372561Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7373000Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7373436Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7373716Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7374093Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7374544Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7374881Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7376188Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7376536Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7376864Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7378197Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7378597Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7379952Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7380307Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7381629Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7382039Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7382456Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7382701Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7383048Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7383460Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7383643Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7383824Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7384020Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7384266Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7384809Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7385022Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7385187Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7385198Z 2023-01-11T21:03:36.7385619Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7385873Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7386077Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7386349Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7386693Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7387446Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7387889Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7388349Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7388814Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7389442Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7391445Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7392560Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7393098Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7395014Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7395510Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7395870Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7396331Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7396731Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7397291Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7399072Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7400046Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7400508Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7402070Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7402479Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7402778Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7403037Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7403504Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7403807Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7404090Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7404516Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7404710Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7404912Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7405110Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7405399Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7405928Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7406133Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7406287Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7406297Z 2023-01-11T21:03:36.7406684Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.7406965Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7407327Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7407759Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7407938Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7408257Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7408451Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7408644Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7409062Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7409282Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7409467Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7409663Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7410227Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7410436Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7410661Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7411417Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7411646Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7412421Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7412601Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7412747Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7413364Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7413513Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7413666Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7413943Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7414060Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7414166Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7414288Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7414534Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7414902Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7415022Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7415117Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7415123Z 2023-01-11T21:03:36.7416838Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7416914Z ================== 2023-01-11T21:03:36.7416980Z ================== 2023-01-11T21:03:36.7417150Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7417327Z  Write of size 4 at 0x7b9400015368 by thread T3: 2023-01-11T21:03:36.7419454Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:36.7419717Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7419940Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7420221Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7420514Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7420815Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7420957Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7421180Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7421317Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7421323Z 2023-01-11T21:03:36.7421512Z  Previous write of size 4 at 0x7b9400015368 by main thread: 2023-01-11T21:03:36.7423661Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:36.7423921Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7424143Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7424422Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7424711Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7424909Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7425109Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7425337Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7425549Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7426340Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7426588Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7426789Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7427626Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7427996Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7429262Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7429657Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7431079Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7431470Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7483120Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7483552Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7483970Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7484336Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7484486Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7484685Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7484839Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7485024Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7485555Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7485756Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7485857Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7485864Z 2023-01-11T21:03:36.7486126Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7486377Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7486583Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7486848Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7487098Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7487761Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7488161Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7488499Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7488888Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7489283Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7490561Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7491471Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7491801Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7493164Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7493735Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7494016Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7494278Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7494661Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7495219Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7496800Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7497657Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7498064Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7499526Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7499912Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7500134Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7500353Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7500766Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7500992Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7501311Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7501703Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7501894Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7502062Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7502232Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7502461Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7502944Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7503124Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7503279Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7503289Z 2023-01-11T21:03:36.7503625Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.7503935Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7504284Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7504633Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7504810Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7505205Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7505450Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7505731Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7506348Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7506687Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7506974Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7507284Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7508142Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7508388Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7508740Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7509832Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7510163Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7511394Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7511679Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7511903Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7512568Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7512715Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7512912Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7513295Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7513469Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7513649Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7513834Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7514026Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7514495Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7514753Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7514888Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7514897Z 2023-01-11T21:03:36.7517549Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7517716Z ================== 2023-01-11T21:03:36.7518029Z ================== 2023-01-11T21:03:36.7518299Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7518573Z  Write of size 4 at 0x7b9400015368 by thread T2: 2023-01-11T21:03:36.7521996Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:36.7522277Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7522546Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7522895Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7523314Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7523734Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7523935Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7524297Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7524562Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7524571Z 2023-01-11T21:03:36.7524917Z  Previous write of size 4 at 0x7b9400015368 by main thread: 2023-01-11T21:03:36.7528648Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:36.7529097Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7529456Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7529887Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7530353Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7530677Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7531004Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7531386Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7531760Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7533122Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7533584Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7533918Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7535243Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7535718Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7536948Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7537323Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7538482Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7538794Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7539202Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7539462Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7539720Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7540213Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7540400Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7540582Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7540778Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7541010Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7541501Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7541680Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7541841Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7541853Z 2023-01-11T21:03:36.7542222Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7542482Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7542746Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7543012Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7543336Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7544041Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7544315Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7544590Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7544862Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7545201Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7546318Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7547023Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7547365Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7548453Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7548742Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7548934Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7549192Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7549432Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7549756Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7550741Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7551362Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7551636Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7552546Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7552788Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7552935Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7553086Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7553363Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7553538Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7553713Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7553967Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7554080Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7554197Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7554303Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7554502Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7554904Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7555025Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7555119Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7555126Z 2023-01-11T21:03:36.7555353Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.7555521Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7555743Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7556058Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7556263Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7556557Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7556709Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7556897Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7557306Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7557529Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7557717Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7557897Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7558467Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7558632Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7558857Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7559520Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7559758Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7560523Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7560702Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7560870Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7561480Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7561626Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7561777Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7562032Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7562146Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7562266Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7562387Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7562537Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7562849Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7562967Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7563049Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7563054Z 2023-01-11T21:03:36.7564721Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7564819Z ================== 2023-01-11T21:03:36.7564885Z ================== 2023-01-11T21:03:36.7565042Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7565215Z  Write of size 4 at 0x7b940001536c by thread T1: 2023-01-11T21:03:36.7567377Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:36.7567651Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7567876Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7568156Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7568446Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7568712Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7568855Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7569078Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7569201Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7569218Z 2023-01-11T21:03:36.7569392Z  Previous write of size 4 at 0x7b940001536c by main thread: 2023-01-11T21:03:36.7571546Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:36.7571845Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7572095Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7572376Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7572664Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7572855Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7573056Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7573283Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7573495Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7574281Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7574612Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7574811Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7575601Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7575894Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7576770Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7577009Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7577837Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7578044Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7578317Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7578494Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7578671Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7578925Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7579039Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7579160Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7579282Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7579429Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7579780Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7579898Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7579978Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7579984Z 2023-01-11T21:03:36.7580203Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7580368Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7580491Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7580650Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7580853Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7581329Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7581594Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7581863Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7582128Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7582468Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7583590Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7584241Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7584586Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7585691Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7585978Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7586172Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7586434Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7586666Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7586994Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7587982Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7588581Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7588854Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7589784Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7590027Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7590176Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7590326Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7590597Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7590771Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7590944Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7591195Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7591310Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7591430Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7591551Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7591697Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7591992Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7592110Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7592203Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7592208Z 2023-01-11T21:03:36.7592419Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.7592623Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7592841Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7593154Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7593328Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7593624Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7593777Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7593967Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7594398Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7594683Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7594870Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7595061Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7595618Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7595782Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7596007Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7596672Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7596883Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7597649Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7597859Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7598003Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7598612Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7598786Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7598938Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7599190Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7599306Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7599424Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7599543Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7599690Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7600001Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7600122Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7600214Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7600220Z 2023-01-11T21:03:36.7601877Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7601949Z ================== 2023-01-11T21:03:36.7602014Z ================== 2023-01-11T21:03:36.7602168Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7602344Z  Write of size 4 at 0x7b940001536c by thread T3: 2023-01-11T21:03:36.7604478Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:36.7604809Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7605033Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7605314Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7605601Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7605869Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7606010Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7606230Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7606365Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7606371Z 2023-01-11T21:03:36.7606558Z  Previous write of size 4 at 0x7b940001536c by main thread: 2023-01-11T21:03:36.7608692Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:36.7608976Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7609194Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7609472Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7609759Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7609977Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7610180Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7610408Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7610617Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7611399Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7611614Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7611818Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7612598Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7612850Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7613703Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7613935Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7614899Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7615108Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7615382Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7615556Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7615730Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7615988Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7616106Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7616229Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7616349Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7616500Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7616810Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7616931Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7617026Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7617031Z 2023-01-11T21:03:36.7617242Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7617407Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7617569Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7617729Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7617934Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7618375Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7618636Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7618908Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7619199Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7619539Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7620660Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7621311Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7621628Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7622737Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7623051Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7623242Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7623503Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7623735Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7624063Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7625047Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7625620Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7625916Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7626827Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7627111Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7627261Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7627411Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7627680Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7627855Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7628032Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7628285Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7628399Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7628517Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7628636Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7628782Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7629093Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7629213Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7629293Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7629299Z 2023-01-11T21:03:36.7629509Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.7629675Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7629894Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7630208Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7630378Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7630697Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7630851Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7631041Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7631448Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7631668Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7631855Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7632049Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7632633Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7632795Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7633021Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7633685Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7633897Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7634727Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7634908Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7635051Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7635708Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7635872Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7636009Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7636263Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7636379Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7636498Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7636619Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7636793Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7637106Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7637226Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7637320Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7637325Z 2023-01-11T21:03:36.7638977Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7639048Z ================== 2023-01-11T21:03:36.7639168Z ================== 2023-01-11T21:03:36.7639339Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7639515Z  Write of size 4 at 0x7b940001536c by thread T2: 2023-01-11T21:03:36.7641660Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:36.7641950Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7642174Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7642458Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7642775Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7643045Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7643187Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7643414Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7643549Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7643556Z 2023-01-11T21:03:36.7643745Z  Previous write of size 4 at 0x7b940001536c by main thread: 2023-01-11T21:03:36.7645888Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:36.7646147Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7646369Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7646680Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7646973Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7647164Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7647363Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7647590Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:36.7647801Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7648618Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7648839Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7649040Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7649824Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7650062Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7650888Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7651145Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7652019Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7652225Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7652496Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7652671Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7652849Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7653105Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7653218Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7653323Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7653444Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7653589Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7653898Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7654014Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7654110Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7654116Z 2023-01-11T21:03:36.7654425Z  Location is heap block of size 10080 at 0x7b9400014000 allocated by main thread: 2023-01-11T21:03:36.7654599Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7654725Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7654886Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7655077Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7655529Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7655961Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7656360Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7656788Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7657322Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7659127Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7660176Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7660670Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7662394Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7662907Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7663192Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7663598Z #15 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1910570) 2023-01-11T21:03:36.7664018Z #16 at::native::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19102f3) 2023-01-11T21:03:36.7664531Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1af5d) 2023-01-11T21:03:36.7665793Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efcb66) 2023-01-11T21:03:36.7666687Z #19 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x215d98f) 2023-01-11T21:03:36.7667122Z #20 at::_ops::rand::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2511309) 2023-01-11T21:03:36.7668569Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::rand(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7d232) 2023-01-11T21:03:36.7668998Z #22 at::_ops::rand::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2510e10) 2023-01-11T21:03:36.7669239Z #23 at::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x213656) 2023-01-11T21:03:36.7669480Z #24 torch::rand(c10::ArrayRef, c10::TensorOptions) (test_lazy+0x21186f) 2023-01-11T21:03:36.7669949Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e301d) 2023-01-11T21:03:36.7670221Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7670506Z #27 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7670888Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7671061Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7671249Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7671435Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7671656Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7672151Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7672331Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7672461Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7672468Z 2023-01-11T21:03:36.7672719Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.7672978Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7673309Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7673802Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7674074Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7674540Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7674832Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7675140Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7675811Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7676246Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7676533Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7676838Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7677719Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7678027Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7678375Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7679409Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7679762Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7680963Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7681245Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7681467Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7682199Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7682386Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7682534Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7682866Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7683033Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7683205Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7683372Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7683592Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7684093Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7684283Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7684427Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7684435Z 2023-01-11T21:03:36.7687170Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:36.7687256Z ================== 2023-01-11T21:03:36.7687382Z ================== 2023-01-11T21:03:36.7687658Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7687938Z  Write of size 1 at 0x7b740002d276 by thread T3: 2023-01-11T21:03:36.7691524Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:36.7692001Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7692460Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7692886Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7693384Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7693848Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7694072Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7694647Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7694898Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7694909Z 2023-01-11T21:03:36.7695246Z  Previous write of size 1 at 0x7b740002d276 by main thread: 2023-01-11T21:03:36.7698396Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:36.7698781Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7699099Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7699471Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7699887Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7700278Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7700641Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7701018Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.7701368Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7702422Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7702794Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7703116Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7704169Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7704518Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7705668Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7705914Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7706754Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7707009Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7707283Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7707483Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7707660Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7707914Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7708027Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7708133Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7708253Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7708398Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7708710Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7708828Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7708920Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7708927Z 2023-01-11T21:03:36.7709171Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.7709338Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7709462Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7709619Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7709810Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7710271Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7710530Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7710797Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7711095Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7711434Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7712572Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7713238Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7713552Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7714717Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7715011Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7715234Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7715506Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.7715773Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.7716012Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.7716373Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.7717400Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.7717974Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.7718257Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.7719205Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.7719510Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.7719670Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.7719829Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.7720101Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.7720277Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7720479Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7720735Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7720851Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7720956Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7721077Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7721224Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7721538Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7721658Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7721754Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7721760Z 2023-01-11T21:03:36.7721980Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.7722147Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7722366Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7722682Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7722860Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7723154Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7723306Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7723483Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7723889Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7724145Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7724348Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7724547Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7725118Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7725317Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7725634Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7726719Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7727050Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7728635Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7728835Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7729045Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7729839Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7729993Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7730142Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7730438Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7730555Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7730675Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7730851Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7731085Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7731582Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7731755Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7731910Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7731919Z 2023-01-11T21:03:36.7735095Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.7735248Z ================== 2023-01-11T21:03:36.7735415Z ================== 2023-01-11T21:03:36.7735712Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7736031Z  Write of size 1 at 0x7b740002d276 by thread T1: 2023-01-11T21:03:36.7739806Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:36.7740212Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7740554Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7741046Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7741491Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7741918Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7742152Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7742490Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7742664Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7742671Z 2023-01-11T21:03:36.7743011Z  Previous write of size 1 at 0x7b740002d276 by main thread: 2023-01-11T21:03:36.7746495Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:36.7746941Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7747285Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7747740Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7748186Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7748496Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7748829Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7749272Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.7749615Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7750872Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7751266Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7751592Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7752880Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7753264Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7754537Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7754866Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7756162Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7756557Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7756995Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7757268Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7757546Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7758003Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7758191Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7758388Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7758577Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7758822Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7759332Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7759525Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7759675Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7759683Z 2023-01-11T21:03:36.7760078Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.7760341Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7760539Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7760769Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7761095Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7761740Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7762159Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7762594Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7763037Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7763621Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7765582Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7766646Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7767183Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7768923Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7769391Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7769766Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7770212Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.7770487Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.7770727Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.7771094Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.7773026Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.7774036Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.7774621Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.7776113Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.7776564Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.7776792Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.7776988Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.7777385Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.7777625Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7777899Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7778359Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7778491Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7778677Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7778864Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7779077Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7779605Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7779816Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7779984Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7779995Z 2023-01-11T21:03:36.7780416Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.7780736Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7781085Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7781630Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7781942Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7782455Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7782855Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7783198Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7783978Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7784360Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7784711Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7785131Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7786049Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7786337Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7786729Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7787818Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7788141Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7789330Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7789604Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7789833Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7790805Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7791034Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7791264Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7791697Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7791830Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7792004Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7792125Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7792317Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7792661Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7792769Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7792861Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7792869Z 2023-01-11T21:03:36.7794683Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.7794779Z ================== 2023-01-11T21:03:36.7794899Z ================== 2023-01-11T21:03:36.7795075Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7795241Z  Write of size 1 at 0x7b740002d276 by main thread: 2023-01-11T21:03:36.7797420Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:36.7797682Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7797904Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7798188Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7798512Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7798704Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7798907Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7799133Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.7799345Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7800156Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7800371Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7800572Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7801355Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7801594Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7802426Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7802687Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7803511Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7803742Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7804014Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7804189Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7804366Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7804618Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7804733Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7804852Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7804973Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7805119Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7805429Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7805545Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7805625Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7805631Z 2023-01-11T21:03:36.7805816Z  Previous write of size 1 at 0x7b740002d276 by thread T2: 2023-01-11T21:03:36.7807978Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:36.7808278Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7808500Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7808781Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7809095Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7809362Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7809503Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7809725Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7809858Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7809866Z 2023-01-11T21:03:36.7810071Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.7810236Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7810360Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7810518Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7810720Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7811162Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7811422Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7811694Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7811979Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7812516Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7814599Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7815676Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7816228Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7818126Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7818586Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7818919Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7819437Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.7819859Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.7820231Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.7820775Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.7822343Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.7823268Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.7823652Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.7825090Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.7825594Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.7825884Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.7826147Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.7826547Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.7826791Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7827068Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7827474Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7827582Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7827702Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7827861Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7828014Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7828325Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7828446Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7828539Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7828546Z 2023-01-11T21:03:36.7828784Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.7828956Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7829247Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7829693Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7829888Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7830344Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7830622Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7830954Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7831735Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7832134Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7832460Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7832819Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7833888Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7834207Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7834669Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7835793Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7836009Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7836776Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7836959Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7837102Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7837711Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7837861Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7838011Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7838263Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7838381Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7838500Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7838620Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7838802Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7839110Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7839214Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7839306Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7839312Z 2023-01-11T21:03:36.7841005Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.7841093Z ================== 2023-01-11T21:03:36.7841210Z ================== 2023-01-11T21:03:36.7841380Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7841542Z  Write of size 1 at 0x7b740002d277 by thread T2: 2023-01-11T21:03:36.7843721Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:36.7843985Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7844210Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7844490Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7844777Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7845076Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7845214Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7845438Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7845573Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7845578Z 2023-01-11T21:03:36.7845766Z  Previous write of size 1 at 0x7b740002d277 by main thread: 2023-01-11T21:03:36.7847961Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:36.7848223Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7848446Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7848725Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7849017Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7849205Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7849404Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7849633Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.7849844Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7850654Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7850865Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7851067Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7851878Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7852140Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7853415Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7853802Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7855257Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7855692Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7856081Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7856350Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7856611Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7856978Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7857168Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7857363Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7857546Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7857793Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7858304Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7858462Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7858603Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7858611Z 2023-01-11T21:03:36.7858965Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.7859227Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7859429Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7859660Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7859965Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7860571Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7860998Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7861420Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7861817Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7862250Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7863874Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7864946Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7865447Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7867093Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7867557Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7867856Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7868276Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.7868753Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.7869128Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.7869646Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.7871330Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.7872131Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.7872566Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.7873905Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.7874290Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.7874647Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.7874899Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.7875331Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.7875618Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7875915Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7876314Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7876486Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7876689Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7876877Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7877114Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7877676Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7877878Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7878027Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7878039Z 2023-01-11T21:03:36.7878414Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.7878693Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7879020Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7879524Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7879808Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7880256Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7880506Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7880807Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7881494Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7881859Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7882156Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7882476Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7883091Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7883407Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7883777Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7884867Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7885269Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7886522Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7886801Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7887015Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7888017Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7888262Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7888504Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7888916Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7889097Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7889286Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7889468Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7889695Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7890145Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7890391Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7890547Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7890556Z 2023-01-11T21:03:36.7893366Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.7893479Z ================== 2023-01-11T21:03:36.7893661Z ================== 2023-01-11T21:03:36.7893946Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7894233Z  Write of size 1 at 0x7b740002d277 by thread T3: 2023-01-11T21:03:36.7897957Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:36.7898380Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7898609Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7898890Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7899216Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7899653Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7899857Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7900222Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7900400Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7900424Z 2023-01-11T21:03:36.7900710Z  Previous write of size 1 at 0x7b740002d277 by main thread: 2023-01-11T21:03:36.7904695Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:36.7914274Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7914805Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7915306Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7915843Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7916171Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7916380Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7916608Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.7916820Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7917679Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7918126Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7918445Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7919731Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7920064Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7921336Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7921704Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7922941Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7923258Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7923728Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7923987Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7924250Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7924609Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7924789Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7924968Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7925159Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7925397Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7925909Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7926101Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7926249Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7926259Z 2023-01-11T21:03:36.7926596Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.7926877Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7927064Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7927323Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7927652Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7928361Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7928774Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7929189Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7929592Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7930119Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7931819Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7932929Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7933421Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.7935268Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.7935741Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.7936041Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.7936459Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.7936873Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.7937336Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.7937817Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.7939441Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.7940304Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.7940740Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.7942247Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.7942691Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.7942964Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.7943240Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.7943742Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.7944043Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7944341Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7944762Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7944953Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7945149Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7945353Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7945600Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7946183Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7946381Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7946533Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7946542Z 2023-01-11T21:03:36.7946932Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.7947213Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.7947579Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.7948121Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.7948411Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.7948913Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.7949181Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.7949502Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.7950197Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.7950559Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.7950876Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.7951205Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.7952150Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.7952468Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.7952852Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.7954017Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.7954394Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.7955830Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.7956138Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.7956374Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.7957421Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.7957657Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.7957908Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.7958333Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7958522Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7958715Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7958895Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7959148Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7959671Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7959863Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7960057Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7960067Z 2023-01-11T21:03:36.7962996Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.7963114Z ================== 2023-01-11T21:03:36.7963373Z ================== 2023-01-11T21:03:36.7963648Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.7963966Z  Write of size 1 at 0x7b740002d277 by thread T1: 2023-01-11T21:03:36.7967996Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:36.7968473Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7968884Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7969376Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7969897Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7970385Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.7970688Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.7971075Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.7971317Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.7971327Z 2023-01-11T21:03:36.7971667Z  Previous write of size 1 at 0x7b740002d277 by main thread: 2023-01-11T21:03:36.7975961Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:36.7976403Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.7976800Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.7977316Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.7977813Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.7978157Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.7978530Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.7978939Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.7979308Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.7980762Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.7981203Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.7981555Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.7983028Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.7983469Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7984971Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.7985401Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.7986913Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.7987284Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.7987748Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.7988089Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.7988416Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.7988884Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.7989065Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.7989264Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.7989475Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.7989733Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.7990306Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.7990524Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.7990716Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.7990726Z 2023-01-11T21:03:36.7991113Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.7991407Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.7991622Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.7991893Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.7992260Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.7993057Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.7993540Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.7994023Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.7994509Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.7995168Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.7997212Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.7998488Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.7999056Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.8001002Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.8001537Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.8001868Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.8002352Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.8002840Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.8003279Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.8003902Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.8005814Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.8006874Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.8007399Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.8009114Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.8009549Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.8009824Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.8010103Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.8010595Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.8010922Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8011238Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8011712Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8011919Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8012133Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8012333Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8012580Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8013150Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8013369Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8013534Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8013544Z 2023-01-11T21:03:36.8013964Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.8014248Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.8014700Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.8015273Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.8015586Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.8016083Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.8016354Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.8016682Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.8017437Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.8017843Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.8018151Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.8018486Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.8019517Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.8019806Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.8020294Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.8021506Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.8021885Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.8023343Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.8023661Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.8023920Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.8025046Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.8025303Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.8025573Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.8026045Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8026250Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8026452Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8026654Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8026921Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8027496Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8027713Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8027844Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8027853Z 2023-01-11T21:03:36.8031035Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.8031204Z ================== 2023-01-11T21:03:36.8031318Z ================== 2023-01-11T21:03:36.8031606Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.8031918Z  Write of size 1 at 0x7b740002d27e by thread T2: 2023-01-11T21:03:36.8036014Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:36.8036507Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.8036872Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.8037363Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.8037888Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.8038349Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.8038592Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.8038984Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.8039245Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.8039269Z 2023-01-11T21:03:36.8039592Z  Previous write of size 1 at 0x7b740002d27e by main thread: 2023-01-11T21:03:36.8043709Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:36.8044179Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.8044543Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.8045050Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.8045574Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.8045926Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.8046286Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.8046676Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.8047058Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.8048459Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.8048885Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.8049245Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.8050693Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.8051125Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8052633Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.8053059Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8054680Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.8055012Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.8055474Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.8055779Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8056142Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8056605Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8056806Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8057016Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8057233Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8057499Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8058046Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8058262Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8058416Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8058425Z 2023-01-11T21:03:36.8058836Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.8059166Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.8059389Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.8059671Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.8060039Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.8060856Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.8061321Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.8061815Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.8062312Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.8062898Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.8064980Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.8066230Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.8066844Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.8068841Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.8069334Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.8069675Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.8070180Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.8070677Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.8071089Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.8071698Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.8073599Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.8074736Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.8075224Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.8076955Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.8077417Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.8077700Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.8077960Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.8078447Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.8078755Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8079077Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8079587Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8079774Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8079980Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8080193Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8080454Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8081037Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8081251Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8081407Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8081416Z 2023-01-11T21:03:36.8081785Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.8082080Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.8082505Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.8083086Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.8083387Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.8083907Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.8084185Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.8084542Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.8085297Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.8085686Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.8086018Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.8086377Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.8087381Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.8087674Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.8088073Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.8089352Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.8089738Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.8091131Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.8091458Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.8091713Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.8092853Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.8093241Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.8093492Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.8093953Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8094149Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8094460Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8094680Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8094940Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8095521Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8095716Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8095866Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8095875Z 2023-01-11T21:03:36.8099066Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.8099252Z ================== 2023-01-11T21:03:36.8099365Z ================== 2023-01-11T21:03:36.8099669Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.8099984Z  Write of size 1 at 0x7b740002d27e by thread T3: 2023-01-11T21:03:36.8104221Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:36.8104684Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.8105078Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.8105595Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.8106093Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.8106572Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.8106809Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.8107214Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.8107438Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.8107446Z 2023-01-11T21:03:36.8107813Z  Previous write of size 1 at 0x7b740002d27e by main thread: 2023-01-11T21:03:36.8111915Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:36.8112401Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.8112788Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.8113295Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.8113818Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.8114149Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.8114510Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.8114985Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.8115355Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.8116823Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.8117192Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.8117602Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.8119068Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.8119531Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8121092Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.8121533Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8123073Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.8123433Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.8123896Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.8124182Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8124514Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8124967Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8125220Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8125431Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8125633Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8125881Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8126432Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8126650Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8126813Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8126821Z 2023-01-11T21:03:36.8127243Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.8127542Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.8127745Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.8128062Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.8128432Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.8129232Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.8129684Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.8130159Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.8130628Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.8131222Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.8133230Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.8134568Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.8135126Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.8137124Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.8137623Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.8137939Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.8138446Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.8138932Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.8139370Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.8139975Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.8141832Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.8142952Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.8143453Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.8145171Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.8145592Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.8145865Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.8146147Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.8146640Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.8146953Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8147269Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8147718Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8147971Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8148185Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8148401Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8148659Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8149190Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8149400Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8149565Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8149574Z 2023-01-11T21:03:36.8149971Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.8150266Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.8150631Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.8151210Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.8151500Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.8152006Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.8152277Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.8152611Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.8153356Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.8153738Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.8154066Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.8154426Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.8155488Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.8155780Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.8156194Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.8157400Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.8157823Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.8159229Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.8159529Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.8159786Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.8160897Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.8161163Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.8161440Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.8161904Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8162083Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8162287Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8162500Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8162765Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8163355Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8163567Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8163734Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8163744Z 2023-01-11T21:03:36.8166789Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.8166939Z ================== 2023-01-11T21:03:36.8167054Z ================== 2023-01-11T21:03:36.8167323Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.8167630Z  Write of size 1 at 0x7b740002d286 by thread T1: 2023-01-11T21:03:36.8171678Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:36.8172162Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.8172531Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.8173034Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.8173566Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.8174064Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.8174305Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.8174801Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.8175037Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.8175047Z 2023-01-11T21:03:36.8175389Z  Previous write of size 1 at 0x7b740002d286 by main thread: 2023-01-11T21:03:36.8179438Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:36.8180015Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.8180401Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.8180906Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.8181437Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.8181793Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.8182166Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.8182543Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.8182917Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.8184368Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:36.8184751Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:36.8185111Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.8186583Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.8187020Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8188567Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.8188991Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8190542Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.8190907Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.8191409Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:36.8191722Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8192042Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8192480Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8192682Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8192927Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8193143Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8193414Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8194006Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8194217Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8194364Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8194372Z 2023-01-11T21:03:36.8194813Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:36.8195113Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.8195334Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.8195630Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.8196005Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.8196814Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.8197297Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:36.8197795Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:36.8198283Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:36.8198890Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:36.8200957Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:36.8202230Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:36.8202789Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:36.8204811Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:36.8205349Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:36.8205694Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:36.8206184Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:36.8206650Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:36.8207095Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:36.8207718Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:36.8209567Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:36.8210709Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:36.8211220Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:36.8212964Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:36.8213435Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:36.8213700Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:36.8213975Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:36.8214571Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:36.8214891Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8215217Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8215684Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8215860Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8216069Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8216338Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8216606Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8217196Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8217411Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8217578Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8217588Z 2023-01-11T21:03:36.8217948Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:36.8218253Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.8218638Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.8219223Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.8219576Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.8220082Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.8220352Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.8220693Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.8221459Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.8221868Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.8222191Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.8222544Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.8223582Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.8223880Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.8224268Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.8225503Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.8225930Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.8227322Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.8227661Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.8227943Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.8229059Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.8229324Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.8229599Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.8230055Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8230259Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8230458Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8230656Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8230917Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8231501Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8231719Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8231888Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8231897Z 2023-01-11T21:03:36.8235088Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.8235255Z ================== 2023-01-11T21:03:36.8514119Z ================== 2023-01-11T21:03:36.8514513Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.8514894Z  Write of size 1 at 0x7b7400035476 by main thread: 2023-01-11T21:03:36.8518346Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:36.8518628Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.8518857Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.8519268Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.8519731Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.8520047Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.8520316Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.8520554Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:36.8520769Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.8521496Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.8521812Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.8522032Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.8522415Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.8522844Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.8523071Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.8523258Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.8524057Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.8524261Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.8524464Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.8525277Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.8525488Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.8525722Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:36.8534614Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:36.8535106Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8536714Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.8537141Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8538625Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.8538975Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.8539488Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:36.8539792Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8540100Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8540547Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8540820Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8541019Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8541233Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8541489Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8542052Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8542244Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8542414Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8542425Z 2023-01-11T21:03:36.8542788Z  Previous write of size 1 at 0x7b7400035476 by thread T3: 2023-01-11T21:03:36.8545793Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:36.8546071Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.8546296Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.8546576Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.8546867Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.8547133Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.8547261Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.8547482Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.8547618Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.8547624Z 2023-01-11T21:03:36.8547843Z  Location is heap block of size 2520 at 0x7b7400035200 allocated by main thread: 2023-01-11T21:03:36.8548044Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.8548168Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.8548329Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.8548533Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.8548971Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.8549237Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.8549544Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.8549940Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.8550494Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.8552539Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.8553566Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.8553873Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.8555050Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.8555352Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.8555543Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.8555814Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.8556946Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.8557257Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.8558332Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.8558634Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.8558904Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.8560098Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.8560422Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.8561525Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.8561816Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.8562052Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.8562349Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.8563470Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.8563780Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.8564848Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.8565126Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.8565393Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.8566608Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.8566954Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.8568085Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.8568373Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.8568563Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.8568708Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.8569384Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.8569535Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.8569730Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.8569928Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.8570190Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.8570415Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.8570798Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.8571184Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.8571424Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.8571625Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.8572416Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.8572620Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.8572823Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.8573643Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.8573853Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.8574088Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:36.8615380Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:36.8615682Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8616619Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.8616875Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.8617707Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.8617909Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.8618186Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:36.8618365Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.8618545Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.8618797Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8618911Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8619030Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8619183Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8619332Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8619644Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8619766Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8619859Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8619867Z 2023-01-11T21:03:36.8620120Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.8620289Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.8620508Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.8620828Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.8621031Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.8621325Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.8621475Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.8621663Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.8622069Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.8622292Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.8622476Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.8622658Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.8623229Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.8623396Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.8623620Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.8624281Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.8624522Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.8625282Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.8625459Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.8625627Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.8626242Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.8626390Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.8626540Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.8626795Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.8626910Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.8627027Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.8627145Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.8627293Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.8627605Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.8627723Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.8627802Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.8627808Z 2023-01-11T21:03:36.8629487Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:36.8629585Z ================== 2023-01-11T21:03:36.9420272Z ================== 2023-01-11T21:03:36.9427013Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.9427610Z  Write of size 1 at 0x7b7400035e76 by main thread: 2023-01-11T21:03:36.9432368Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:36.9435528Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.9436384Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.9437266Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.9438281Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.9439141Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.9439891Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.9440692Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:36.9442453Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.9444135Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.9445908Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.9446709Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.9447830Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.9449244Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.9450348Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.9451114Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.9452947Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.9454852Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9455626Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.9457220Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.9458211Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.9458730Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:36.9459783Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:36.9460780Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9461872Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.9462892Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9463975Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.9464963Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9465450Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:36.9465893Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.9466251Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.9466697Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9467103Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9467348Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9467607Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9467898Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9468376Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9468798Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9469036Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9469164Z 2023-01-11T21:03:36.9469385Z  Previous write of size 1 at 0x7b7400035e76 by thread T3: 2023-01-11T21:03:36.9471743Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:36.9473399Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.9473867Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.9474377Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.9475017Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.9475576Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.9475991Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.9476374Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.9476726Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.9476888Z 2023-01-11T21:03:36.9477146Z  Location is heap block of size 2520 at 0x7b7400035c00 allocated by main thread: 2023-01-11T21:03:36.9477480Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.9477742Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.9478034Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.9478417Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.9479074Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.9479768Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.9480356Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.9480884Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.9481723Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.9483442Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.9485201Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.9486099Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.9488078Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.9490410Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.9491279Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.9492145Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.9494715Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.9496790Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.9498211Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.9499697Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.9500241Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.9501793Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.9504236Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.9506770Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.9509277Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.9510164Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.9511000Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.9513459Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.9516082Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.9518461Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.9520844Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.9521779Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.9524313Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.9526984Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.9531662Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.9533138Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.9533617Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.9533955Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.9535071Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.9535897Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.9536246Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.9536721Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.9537168Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.9537626Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.9538237Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.9538997Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.9539618Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.9540043Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.9541037Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.9541997Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9542403Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.9543437Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.9544402Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.9544841Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:36.9545924Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:36.9546909Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9547990Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.9549002Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9550065Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.9551050Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9551534Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:36.9551987Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.9552354Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.9552792Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9553153Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9553408Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9553696Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9553982Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9554445Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9554989Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9555222Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9555352Z 2023-01-11T21:03:36.9555605Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:36.9555926Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.9556284Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.9556829Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.9557354Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.9557836Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.9558270Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.9558626Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.9559241Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.9559729Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.9560138Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.9560516Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.9561279Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.9561989Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.9562388Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.9563278Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.9564161Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.9565139Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.9566072Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.9566405Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.9567177Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.9567914Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.9568223Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.9568647Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9569010Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9569260Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9569516Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9569803Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9570268Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9570702Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9570934Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9571062Z 2023-01-11T21:03:36.9572722Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:36.9573786Z ================== 2023-01-11T21:03:36.9573949Z ================== 2023-01-11T21:03:36.9574200Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.9574713Z  Write of size 1 at 0x7b7400035e7a by main thread: 2023-01-11T21:03:36.9577067Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:36.9578714Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.9579202Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.9579697Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.9580273Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.9580748Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.9581151Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.9581591Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:36.9582071Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.9583083Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.9584036Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.9584496Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.9585105Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.9585889Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.9586472Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.9586897Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.9587972Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.9588927Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9589344Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.9590372Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.9591341Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.9591830Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:36.9592870Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:36.9593865Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9595017Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.9596051Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9597122Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.9598117Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9598605Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:36.9599052Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.9599401Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.9599848Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9600251Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9600501Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9600741Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9601027Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9601503Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9601934Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9602150Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9602278Z 2023-01-11T21:03:36.9602481Z  Previous write of size 1 at 0x7b7400035e7a by thread T2: 2023-01-11T21:03:36.9604850Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:36.9606465Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.9606942Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.9607447Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.9608004Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.9608558Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.9608968Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.9609350Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.9609711Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.9609873Z 2023-01-11T21:03:36.9610108Z  Location is heap block of size 2520 at 0x7b7400035c00 allocated by main thread: 2023-01-11T21:03:36.9610439Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.9610701Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.9611002Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.9611371Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.9612019Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.9612713Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.9613269Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.9613802Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.9614475Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.9615875Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.9617637Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.9618516Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.9619950Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.9621305Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.9621766Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.9622230Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.9623638Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.9625148Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.9626516Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.9627938Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.9628479Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.9629934Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.9631479Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.9632881Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.9634315Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.9634893Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.9635393Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.9636822Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.9638281Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.9639643Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.9641254Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.9642147Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.9644395Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.9647226Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.9649732Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.9652198Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.9653001Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.9653593Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.9655309Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.9656657Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.9657274Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.9658080Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.9658787Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.9659532Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.9660520Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.9661776Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.9662848Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.9663537Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.9665181Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.9666754Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9667368Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.9669014Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.9670639Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.9671319Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:36.9673034Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:36.9674658Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9676456Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.9677846Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9679642Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.9681172Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9681942Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:36.9682662Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.9683223Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.9684027Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9684481Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9684901Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9685194Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9685550Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9686399Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9687052Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9687288Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9687417Z 2023-01-11T21:03:36.9687653Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.9687988Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.9688347Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.9688939Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.9689429Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.9689892Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.9690342Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.9690702Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.9691314Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.9691802Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.9692212Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.9692588Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.9693352Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.9694047Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.9694593Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.9695528Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.9696438Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.9697415Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.9698376Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.9698706Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.9699477Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.9700218Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.9700532Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.9700955Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9701319Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9701574Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9701838Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9702112Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9702584Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9703022Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9703252Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9703379Z 2023-01-11T21:03:36.9705046Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:36.9706114Z ================== 2023-01-11T21:03:36.9706346Z ================== 2023-01-11T21:03:36.9706611Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:36.9706919Z  Write of size 1 at 0x7b74000360eb by main thread: 2023-01-11T21:03:36.9709287Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:36.9710916Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.9711397Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.9711907Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.9712475Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.9712947Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:36.9713338Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:36.9713779Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:36.9714219Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:36.9715231Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:36.9716175Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:36.9716634Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.9717243Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.9718030Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.9718631Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.9719049Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.9720043Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.9720991Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9721404Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.9722431Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.9723409Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.9723891Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:36.9724927Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:36.9725920Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9727002Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.9728019Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9729090Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.9730076Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9730555Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:36.9730987Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.9731348Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.9731788Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9732187Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9732428Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9732686Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9732970Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9733442Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9733874Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9734090Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9734216Z 2023-01-11T21:03:36.9734557Z  Previous write of size 1 at 0x7b74000360eb by thread T2: 2023-01-11T21:03:36.9736967Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:36.9738591Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:36.9739071Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:36.9739568Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:36.9740140Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:36.9740695Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:36.9741106Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:36.9741488Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:36.9741848Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:36.9742040Z 2023-01-11T21:03:36.9742263Z  Location is heap block of size 2520 at 0x7b7400035c00 allocated by main thread: 2023-01-11T21:03:36.9742596Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:36.9742859Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:36.9743151Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:36.9743530Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:36.9744181Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:36.9744876Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:36.9745437Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:36.9745966Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:36.9746553Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:36.9747942Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:36.9749703Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:36.9750594Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:36.9751979Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:36.9753353Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:36.9753812Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:36.9754273Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:36.9755754Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:36.9757266Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.9758621Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.9760061Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.9760600Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.9762074Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.9763596Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.9764997Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.9766438Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.9766946Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.9767444Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:36.9768858Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:36.9770336Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:36.9771699Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:36.9773104Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:36.9773631Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:36.9775165Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:36.9776791Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:36.9778191Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:36.9779629Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:36.9780089Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:36.9780442Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:36.9781281Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:36.9782074Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:36.9782433Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:36.9782861Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:36.9783303Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:36.9783755Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:36.9784354Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:36.9785115Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:36.9785735Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:36.9786156Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:36.9787142Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:36.9788090Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9788500Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:36.9789525Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:36.9790501Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:36.9790948Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:36.9792010Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:36.9793010Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9794095Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:36.9795177Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:36.9796240Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:36.9797215Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:36.9797698Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:36.9798150Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:36.9798514Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:36.9798941Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9799318Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9799605Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9799866Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9800141Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9800626Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9801061Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9801295Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9801424Z 2023-01-11T21:03:36.9801644Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:36.9801977Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:36.9802337Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:36.9802913Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:36.9803402Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:36.9803864Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:36.9804319Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:36.9804679Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:36.9805289Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:36.9805776Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:36.9806175Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:36.9806567Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:36.9807328Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:36.9808036Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:36.9808442Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:36.9809337Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:36.9810232Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:36.9811212Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:36.9812149Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:36.9812482Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:36.9813254Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:36.9813990Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:36.9814300Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:36.9814805Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:36.9815177Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:36.9815432Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:36.9815687Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:36.9815957Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:36.9816431Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:36.9816869Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:36.9817101Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:36.9817227Z 2023-01-11T21:03:36.9818888Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882ddc1) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:36.9819943Z ================== 2023-01-11T21:03:37.0109504Z ================== 2023-01-11T21:03:37.0110177Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0110606Z  Write of size 2 at 0x7b840000f96c by thread T1: 2023-01-11T21:03:37.0113382Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:37.0115213Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0115772Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0116323Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0116898Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0117519Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0122293Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0122765Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0123135Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0123330Z 2023-01-11T21:03:37.0123546Z  Previous write of size 2 at 0x7b840000f96c by main thread: 2023-01-11T21:03:37.0125879Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:37.0127678Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0128160Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0128667Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0129237Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0129723Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0130113Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0130552Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0130994Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0132194Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0133336Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0133920Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0135182Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0136430Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0138029Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0139446Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0141007Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0142464Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0142853Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0143105Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0143357Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0143722Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0143867Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0144043Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0144222Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0144490Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0144950Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0145102Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0145232Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0145241Z 2023-01-11T21:03:37.0145613Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0145856Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0146034Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0146269Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0146560Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0147254Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0147658Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0148059Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0148467Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0148968Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0150563Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0151509Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0152003Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0153598Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0154014Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0154298Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0154747Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0155179Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0155606Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0156208Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0157928Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0159000Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0159565Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0161208Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0161656Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0161900Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0162182Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0162642Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0162931Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0163228Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0163658Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0163851Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0164048Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0164245Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0164493Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0165057Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0165257Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0165411Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0165422Z 2023-01-11T21:03:37.0165782Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.0166079Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0166450Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0167002Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0167299Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0167856Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0168116Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0168450Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0169183Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0169557Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0169867Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0170199Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0171150Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0171415Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0171788Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0172912Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0173312Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0174762Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0175090Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0175322Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0176449Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0176692Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0176948Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0177378Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0177570Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0177773Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0177980Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0178243Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0178809Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0179014Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0179176Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0179189Z 2023-01-11T21:03:37.0182192Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0182336Z ================== 2023-01-11T21:03:37.0182401Z ================== 2023-01-11T21:03:37.0182577Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0182828Z  Write of size 2 at 0x7b840000f96c by thread T3: 2023-01-11T21:03:37.0186510Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:37.0186778Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0187005Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0187289Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0187580Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0187846Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0187989Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0188212Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0188351Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0188357Z 2023-01-11T21:03:37.0188552Z  Previous write of size 2 at 0x7b840000f96c by main thread: 2023-01-11T21:03:37.0190687Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:37.0190986Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0191210Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0191515Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0191806Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0191984Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0192185Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0192414Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0192626Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0193422Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0193639Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0193845Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0194692Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0194986Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0195837Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0196088Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0196925Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0197133Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0197409Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0197587Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0197766Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0198023Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0198140Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0198260Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0198368Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0198517Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0198830Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0198978Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0199071Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0199079Z 2023-01-11T21:03:37.0199303Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0199468Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0199592Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0199752Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0199957Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0200432Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0200697Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0200969Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0201238Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0201576Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0203150Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0204256Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0204752Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0206604Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0207111Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0207436Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0207752Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0208174Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0208551Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0209088Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0210739Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0211658Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0212095Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0213538Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0213945Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0214214Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0214563Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0214999Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0215290Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0215597Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0216048Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0216235Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0216454Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0216631Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0216881Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0217447Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0217750Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0217917Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0217928Z 2023-01-11T21:03:37.0218359Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.0218644Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0219055Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0219599Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0219953Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0220472Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0220845Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0221174Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0221964Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0222373Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0222727Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0223044Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0224050Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0224315Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0224672Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0225588Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0225799Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0226880Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0227162Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0227379Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0228418Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0228652Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0228894Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0229304Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0229493Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0229678Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0229865Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0230103Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0230539Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0230660Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0230753Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0230760Z 2023-01-11T21:03:37.0233299Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0233417Z ================== 2023-01-11T21:03:37.0233525Z ================== 2023-01-11T21:03:37.0233791Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0234120Z  Write of size 2 at 0x7b840000f96c by thread T2: 2023-01-11T21:03:37.0237731Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:37.0238155Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0238520Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0238978Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0239460Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0239893Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0240123Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0240489Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0240705Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0240715Z 2023-01-11T21:03:37.0241024Z  Previous write of size 2 at 0x7b840000f96c by main thread: 2023-01-11T21:03:37.0244497Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:37.0244812Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0245036Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0245362Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0245728Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0246033Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0246331Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0246690Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0247024Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0247989Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0248282Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0248560Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0249567Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0249914Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0251057Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0251389Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0252497Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0252775Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0253100Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0253297Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0253506Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0253826Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0253986Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0254149Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0254300Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0254582Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0254935Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0255102Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0255318Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0255327Z 2023-01-11T21:03:37.0255634Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0255792Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0255921Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0256130Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0256439Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0257144Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0257568Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0258068Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0258590Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0259132Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0260977Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0262065Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0262635Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0264558Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0265042Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0265329Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0265824Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0266302Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0266725Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0267324Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0268632Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0269269Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0269547Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0270610Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0270877Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0271021Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0271178Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0271447Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0284795Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0284983Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0285247Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0285363Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0285472Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0285593Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0285740Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0286053Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0286172Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0286308Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0286318Z 2023-01-11T21:03:37.0286766Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.0286974Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0287197Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0287515Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0287688Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0288128Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0288362Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0288646Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0289425Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0289782Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0290078Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0290384Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0291200Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0291465Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0291803Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0292932Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0293332Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0294859Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0295301Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0295572Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0296680Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0296964Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0297247Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0297706Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0297912Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0298114Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0298306Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0298586Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0299156Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0299329Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0299492Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0299504Z 2023-01-11T21:03:37.0302459Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0302562Z ================== 2023-01-11T21:03:37.0302639Z ================== 2023-01-11T21:03:37.0302908Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0303174Z  Write of size 2 at 0x7b840000f970 by thread T1: 2023-01-11T21:03:37.0306700Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:37.0307266Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0307654Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0308149Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0308651Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0309071Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0309214Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0309435Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0309635Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0309641Z 2023-01-11T21:03:37.0309841Z  Previous write of size 2 at 0x7b840000f970 by main thread: 2023-01-11T21:03:37.0312074Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:37.0312387Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0312606Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0312885Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0313216Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0313409Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0313609Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0313837Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0314046Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0314894Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0315108Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0315310Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0316096Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0316364Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0317198Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0317439Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0318289Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0318499Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0318773Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0318949Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0319129Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0319379Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0319495Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0319613Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0319734Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0319883Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0320181Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0320300Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0320394Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0320400Z 2023-01-11T21:03:37.0320624Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0320792Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0320945Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0321106Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0321312Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0321758Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0322019Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0322291Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0322594Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0322933Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0324051Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0324720Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0325035Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0326148Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0326463Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0326654Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0326925Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0327193Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0327433Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0327766Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0328784Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0329376Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0329686Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0330645Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0330897Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0331058Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0331216Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0331489Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0331716Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0331994Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0332321Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0332492Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0332675Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0332818Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0333048Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0333547Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0333776Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0333933Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0333945Z 2023-01-11T21:03:37.0334310Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.0334712Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0335129Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0335555Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0335728Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0336021Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0336173Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0336365Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0336772Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0337030Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0337218Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0337416Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0337975Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0338140Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0338366Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0339030Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0339267Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0340448Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0340764Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0340989Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0341926Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0342160Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0342398Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0342846Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0343035Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0343210Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0343399Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0343637Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0344144Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0344347Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0344487Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0344497Z 2023-01-11T21:03:37.0347311Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0347426Z ================== 2023-01-11T21:03:37.0347641Z ================== 2023-01-11T21:03:37.0347925Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0348213Z  Write of size 2 at 0x7b840000f970 by thread T3: 2023-01-11T21:03:37.0351427Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:37.0351891Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0352246Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0352693Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0353161Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0353655Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0353910Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0354272Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0354492Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0354503Z 2023-01-11T21:03:37.0354914Z  Previous write of size 2 at 0x7b840000f970 by main thread: 2023-01-11T21:03:37.0357921Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:37.0358244Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0358468Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0358746Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0359037Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0359230Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0359458Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0359674Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0359886Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0360677Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0360893Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0361093Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0361880Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0362119Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0362970Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0363216Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0364086Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0364292Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0364570Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0364745Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0364923Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0365176Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0365291Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0365409Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0365518Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0365666Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0365978Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0366098Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0366191Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0366197Z 2023-01-11T21:03:37.0366423Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0366589Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0366713Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0366874Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0367108Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0367552Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0367812Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0368084Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0368381Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0368718Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0369831Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0370493Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0370811Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0372149Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0372595Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0372928Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0373366Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0373796Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0374174Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0374874Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0376788Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0377634Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0378146Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0379626Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0380093Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0380339Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0380544Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0380839Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0381016Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0381210Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0381562Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0381679Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0381799Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0381940Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0382139Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0382594Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0382796Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0382971Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0382981Z 2023-01-11T21:03:37.0383405Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.0383694Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0384086Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0384639Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0384968Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0385505Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0385774Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0386128Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0386883Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0387308Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0387706Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0388078Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0389065Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0389234Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0389462Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0390452Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0390811Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0391904Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0392229Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0392433Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0393371Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0393623Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0393905Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0394360Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0394651Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0394859Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0395068Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0395351Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0395846Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0395966Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0396049Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0396069Z 2023-01-11T21:03:37.0397747Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0397822Z ================== 2023-01-11T21:03:37.0397888Z ================== 2023-01-11T21:03:37.0398045Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0398221Z  Write of size 2 at 0x7b840000f970 by thread T2: 2023-01-11T21:03:37.0400385Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:37.0400703Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0400929Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0401237Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0401530Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0401796Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0401940Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0402164Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0402303Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0402308Z 2023-01-11T21:03:37.0402483Z  Previous write of size 2 at 0x7b840000f970 by main thread: 2023-01-11T21:03:37.0404640Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:37.0404895Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0405164Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0405448Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0405737Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0405927Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0406128Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0406390Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0406605Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0407388Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0407603Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0407803Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0408588Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0408827Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0409665Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0409928Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0410774Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0410979Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0411252Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0411429Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0411610Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0411862Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0411977Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0412097Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0412217Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0412367Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0412680Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0412800Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0412880Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0412887Z 2023-01-11T21:03:37.0413109Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0413334Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0413468Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0413718Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0414039Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0414851Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0415362Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0415820Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0416258Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0416871Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0418879Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0420075Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0420539Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0422391Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0422930Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0423245Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0423655Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0424098Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0424440Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0424999Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0426646Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0427648Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0428092Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0429642Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0430115Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0430359Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0430619Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0431002Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0431287Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0431571Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0431978Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0432170Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0432366Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0432566Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0432796Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0433282Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0433457Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0433596Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0433607Z 2023-01-11T21:03:37.0433993Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.0434260Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0434669Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0435233Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0435530Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0436133Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0436420Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0436725Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0437140Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0437362Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0437556Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0437750Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0438424Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0438591Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0438818Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0439481Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0439689Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0440456Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0440631Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0440772Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0441416Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0441564Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0441715Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0441968Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0442084Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0442202Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0442323Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0442496Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0442808Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0442926Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0443017Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0443023Z 2023-01-11T21:03:37.0444683Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0444756Z ================== 2023-01-11T21:03:37.0444822Z ================== 2023-01-11T21:03:37.0444988Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0445150Z  Write of size 2 at 0x7b840000f972 by thread T1: 2023-01-11T21:03:37.0447291Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:37.0447576Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0447800Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0448080Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0448407Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0448676Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0448816Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0449036Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0449173Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0449179Z 2023-01-11T21:03:37.0449366Z  Previous write of size 2 at 0x7b840000f972 by main thread: 2023-01-11T21:03:37.0451532Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:37.0451788Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0452007Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0452321Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0452609Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0452798Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0452998Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0453222Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0453434Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0454239Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0454559Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0454766Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0455550Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0455802Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0456626Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0456907Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0457837Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0458108Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0458483Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0458753Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0459001Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0459397Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0459557Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0459729Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0459917Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0460157Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0460655Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0460853Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0461024Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0461032Z 2023-01-11T21:03:37.0461399Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0461699Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0461923Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0462177Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0462518Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0463240Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0463780Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0464259Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0464767Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0465358Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0467466Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0468642Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0469232Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0471161Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0471740Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0472086Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0472593Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0473098Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0473536Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0474129Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0476085Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0477185Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0477666Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0479452Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0479936Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0480259Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0480552Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0481047Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0481344Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0481652Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0482120Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0482324Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0482544Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0482762Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0483017Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0483600Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0483817Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0483990Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0484003Z 2023-01-11T21:03:37.0484355Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.0484511Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0484737Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0485054Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0485226Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0485519Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0485713Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0485901Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0486309Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0486528Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0486713Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0486907Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0487499Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0487663Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0487887Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0488549Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0488760Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0489538Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0489716Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0489856Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0490470Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0490647Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0490795Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0491049Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0491150Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0491267Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0491388Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0491534Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0491882Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0492003Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0492098Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0492104Z 2023-01-11T21:03:37.0493756Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0493830Z ================== 2023-01-11T21:03:37.0493892Z ================== 2023-01-11T21:03:37.0494060Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0494232Z  Write of size 2 at 0x7b840000f972 by thread T3: 2023-01-11T21:03:37.0496672Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:37.0496990Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0497216Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0497494Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0497783Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0498101Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0498244Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0498466Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0498602Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0498608Z 2023-01-11T21:03:37.0498799Z  Previous write of size 2 at 0x7b840000f972 by main thread: 2023-01-11T21:03:37.0501191Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:37.0501586Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0501914Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0502322Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0502843Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0503131Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0503411Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0503680Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0503977Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0505085Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0505453Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0505786Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0507023Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0507401Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0508676Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0509117Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0510405Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0510771Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0511196Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0511462Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0511735Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0512150Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0512335Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0512502Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0512690Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0512933Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0513410Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0513532Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0513675Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0513685Z 2023-01-11T21:03:37.0514066Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0514337Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0514531Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0514844Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0515144Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0515896Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0516317Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0516852Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0517326Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0518140Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0520080Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0521006Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0521438Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0523377Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0523980Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0524314Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0524586Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0524874Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0525148Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0525491Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0526505Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0527082Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0527363Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0528314Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0528593Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0528754Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0528914Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0529216Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0529391Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0529569Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0529824Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0529941Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0530048Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0530170Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0530319Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0530633Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0530752Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0530849Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0530855Z 2023-01-11T21:03:37.0531090Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.0531258Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0531480Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0531800Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0531974Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0532268Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0532424Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0532615Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0533101Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0533353Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0533538Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0533735Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0534456Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0534645Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0534857Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0535538Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0535749Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0536512Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0536691Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0536836Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0537447Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0537643Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0537796Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0538050Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0538168Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0538289Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0538408Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0538557Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0538866Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0538973Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0539066Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0539104Z 2023-01-11T21:03:37.0540761Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0540849Z ================== 2023-01-11T21:03:37.0540902Z ================== 2023-01-11T21:03:37.0541072Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0541249Z  Write of size 2 at 0x7b840000f972 by thread T2: 2023-01-11T21:03:37.0543397Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:37.0543700Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0543926Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0544207Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0544499Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0544771Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0544937Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0545148Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0545285Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0545291Z 2023-01-11T21:03:37.0545478Z  Previous write of size 2 at 0x7b840000f972 by main thread: 2023-01-11T21:03:37.0547681Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:37.0548030Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0548324Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0548701Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0549149Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0549512Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0549835Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0550215Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0550613Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0551857Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0552195Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0552531Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0553826Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0554208Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0555660Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0556053Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0557464Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0557792Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0558289Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0558552Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0558834Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0559262Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0559465Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0559636Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0559832Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0560055Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0560611Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0560794Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0560941Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0560950Z 2023-01-11T21:03:37.0561351Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0561620Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0561808Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0562067Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0562358Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0563083Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0563503Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0563936Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0564437Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0564930Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0566642Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0567633Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0568134Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0569689Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0570185Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0570504Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0570888Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0571307Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0571679Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0572251Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0573872Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0574914Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0575366Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0576826Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0577324Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0577568Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0577800Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0578230Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0578562Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0578829Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0579086Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0579202Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0579362Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0579546Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0579778Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0580272Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0580465Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0580607Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0580617Z 2023-01-11T21:03:37.0580964Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.0581233Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0581573Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0582070Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0582348Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0582811Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0583060Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0583354Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0584005Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0584409Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0584710Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0585014Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0585891Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0586146Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0586462Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0587499Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0587830Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0589055Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0589345Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0589553Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0590530Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0590744Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0591020Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0591397Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0591577Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0591776Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0591967Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0592198Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0592661Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0592855Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0593005Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0593015Z 2023-01-11T21:03:37.0595628Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0595709Z ================== 2023-01-11T21:03:37.0595775Z ================== 2023-01-11T21:03:37.0595952Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0596194Z  Write of size 2 at 0x7b840000f974 by thread T1: 2023-01-11T21:03:37.0599483Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:37.0599752Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0600041Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0600324Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0600617Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0600883Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0601027Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0601251Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0601415Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0601422Z 2023-01-11T21:03:37.0601621Z  Previous write of size 2 at 0x7b840000f974 by main thread: 2023-01-11T21:03:37.0603738Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:37.0603997Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0604225Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0604505Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0604794Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0604987Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0605224Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0605455Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0605671Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0606480Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0606697Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0606899Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0607699Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0608028Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0609304Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0609693Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0611102Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0611534Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0612037Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0612317Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0612603Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0612944Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0613082Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0613224Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0613395Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0613619Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0614029Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0614231Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0614476Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0614486Z 2023-01-11T21:03:37.0614897Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0615192Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0615409Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0615696Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0616012Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0616600Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0616953Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0617339Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0617730Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0618289Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0620015Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0621061Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0621561Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0623234Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0623706Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0624043Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0624452Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0624870Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0625254Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0625789Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0627445Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0628253Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0628539Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0630035Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0630472Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0630718Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0630966Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0631379Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0631644Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0631927Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0632365Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0632542Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0632708Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0632892Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0633126Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0633616Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0633797Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0633952Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0633961Z 2023-01-11T21:03:37.0634310Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.0634633Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0634976Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0635454Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0635778Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0636223Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0636466Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0636766Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0637435Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0637784Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0638139Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0638448Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0639348Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0639592Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0639944Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0641028Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0641361Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0642548Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0642819Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0643037Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0644015Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0644244Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0644473Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0644855Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0645020Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0645142Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0645261Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0645411Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0645734Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0645915Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0646022Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0646028Z 2023-01-11T21:03:37.0648269Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0648368Z ================== 2023-01-11T21:03:37.0648471Z ================== 2023-01-11T21:03:37.0648699Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0648964Z  Write of size 2 at 0x7b840000f976 by thread T1: 2023-01-11T21:03:37.0651661Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:37.0651924Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0652146Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0652460Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0652750Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0653017Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0653161Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0653385Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0653525Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0653530Z 2023-01-11T21:03:37.0653722Z  Previous write of size 2 at 0x7b840000f976 by main thread: 2023-01-11T21:03:37.0656945Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:37.0657355Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0657723Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0658200Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0658658Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0658988Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0659322Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0659735Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0660166Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0661472Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0661864Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0662253Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0663641Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0663888Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0664715Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0664951Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0665788Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0666029Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0666307Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0666483Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0666664Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0666921Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0667064Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0667171Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0667294Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0667444Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0667763Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0667943Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0668094Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0668103Z 2023-01-11T21:03:37.0668489Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0668752Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0668961Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0669223Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0669527Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0670250Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0670689Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0671118Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0671545Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0672081Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0673497Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0674171Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0674652Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0675731Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0676033Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0676224Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0676585Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0676873Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0677113Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0677448Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0678562Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0679562Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0679859Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0680811Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0681092Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0681253Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0681414Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0681687Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0681861Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0682039Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0682302Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0682477Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0682632Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0682739Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0682888Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0683198Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0683318Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0683411Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0683420Z 2023-01-11T21:03:37.0683650Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.0683821Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0684043Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0684359Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0684531Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0684826Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0684980Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0685175Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0685576Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0685795Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0685968Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0686162Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0686764Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0686927Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0687151Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0687838Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0688051Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0688819Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0688996Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0689141Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0689755Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0689903Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0690054Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0690307Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0690427Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0690546Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0690667Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0690841Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0691153Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0691271Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0691350Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0691356Z 2023-01-11T21:03:37.0693069Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0693143Z ================== 2023-01-11T21:03:37.0693198Z ================== 2023-01-11T21:03:37.0693368Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0693543Z  Write of size 2 at 0x7b840000f974 by thread T2: 2023-01-11T21:03:37.0695893Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:37.0696168Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0696391Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0696671Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0697016Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0697282Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0697424Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0697646Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0697769Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0697774Z 2023-01-11T21:03:37.0697965Z  Previous write of size 2 at 0x7b840000f974 by main thread: 2023-01-11T21:03:37.0700132Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:37.0700391Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0700617Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0700896Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0701184Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0701376Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0701578Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0701803Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0702017Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0702824Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0703041Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0703246Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0704057Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0704298Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0705133Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0705371Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0706196Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0706429Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0706705Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0706879Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0707055Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0707310Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0707426Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0707545Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0707702Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0707853Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0708164Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0708272Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0708365Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0708370Z 2023-01-11T21:03:37.0708590Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0708758Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0708883Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0709045Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0709255Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0709698Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0709957Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0710229Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0710499Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0710836Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0711965Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0712667Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0712983Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0714069Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0714358Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0714612Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0714895Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0715197Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0715437Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0715770Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0716816Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0717413Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0717695Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0718633Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0718890Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0719077Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0719239Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0719511Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0719685Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0719863Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0720199Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0720300Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0720422Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0720543Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0720719Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0721030Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0721149Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0721244Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0721249Z 2023-01-11T21:03:37.0721467Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.0721638Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0721858Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0722181Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0722355Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0722646Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0722784Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0722974Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0723379Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0723604Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0723789Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0723986Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0724548Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0724740Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0724966Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0725672Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0725886Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0726655Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0726835Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0726981Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0727595Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0727744Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0727898Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0728153Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0728267Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0728390Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0728512Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0728648Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0728959Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0729105Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0729199Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0729207Z 2023-01-11T21:03:37.0730871Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0730947Z ================== 2023-01-11T21:03:37.0731015Z ================== 2023-01-11T21:03:37.0731185Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.0731362Z  Write of size 2 at 0x7b840000f974 by thread T3: 2023-01-11T21:03:37.0733487Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:37.0733750Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0733976Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0734258Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0734732Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0735053Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.0735195Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.0735419Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.0735555Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.0735561Z 2023-01-11T21:03:37.0735752Z  Previous write of size 2 at 0x7b840000f974 by main thread: 2023-01-11T21:03:37.0737911Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:37.0738189Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.0738410Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.0738693Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.0738981Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.0739175Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.0739377Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.0739589Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:37.0739802Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.0740595Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.0740842Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.0741046Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.0741867Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.0742107Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0742932Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.0743183Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.0744011Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.0744213Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.0744518Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.0744695Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0744873Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0745127Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0745243Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0745364Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0745472Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0745621Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0745971Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0746091Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0746186Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0746191Z 2023-01-11T21:03:37.0746413Z  Location is heap block of size 5040 at 0x7b840000f000 allocated by main thread: 2023-01-11T21:03:37.0746580Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.0746704Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.0746865Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.0747071Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.0747517Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.0747778Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.0748047Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.0748324Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.0748663Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.0749775Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.0750492Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.0750808Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.0751895Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.0752201Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.0752392Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.0752667Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.0752935Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.0753202Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.0753537Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.0754642Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.0755224Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.0755524Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.0756467Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.0756721Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.0756881Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.0757037Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.0757339Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.0757516Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.0757692Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.0757945Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0758061Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0758180Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0758303Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0758440Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0758777Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0758899Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0758994Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0758999Z 2023-01-11T21:03:37.0759214Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.0759380Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.0759599Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.0759915Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.0760090Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.0760383Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.0760537Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.0760726Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.0761130Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.0761350Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.0761537Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.0761718Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.0762292Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.0762486Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.0762713Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.0763372Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.0763584Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.0764379Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.0764558Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.0764702Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.0765315Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.0765464Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.0765616Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.0765871Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.0765988Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.0766108Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.0766232Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.0766379Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.0766692Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.0766811Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.0766935Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.0766940Z 2023-01-11T21:03:37.0768611Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:37.0768684Z ================== 2023-01-11T21:03:37.1436152Z ================== 2023-01-11T21:03:37.1448027Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1448478Z  Write of size 4 at 0x7b9400026b58 by main thread: 2023-01-11T21:03:37.1451090Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:37.1451510Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1451881Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1452332Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1452783Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1453077Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1453283Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1453736Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:37.1454065Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1455333Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.1455781Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.1456077Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.1456659Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.1457237Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.1457488Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.1457811Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1458834Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1459101Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1459423Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.1460669Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.1460967Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.1461270Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.1462285Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.1462566Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1463675Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1463964Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1464896Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1465193Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1465619Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.1465889Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1466113Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1466526Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1466684Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1466809Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1466932Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1468133Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1469551Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1469816Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1469970Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1471439Z 2023-01-11T21:03:37.1471728Z  Previous write of size 4 at 0x7b9400026b58 by thread T2: 2023-01-11T21:03:37.1482347Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:37.1482928Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1483323Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1483846Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1484357Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1484962Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1485208Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1485623Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1485964Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1485975Z 2023-01-11T21:03:37.1486392Z  Location is heap block of size 10080 at 0x7b9400025800 allocated by main thread: 2023-01-11T21:03:37.1486701Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1486925Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1487202Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1487637Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1488431Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1488929Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.1489416Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.1489908Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.1490497Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.1492478Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.1493705Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.1494247Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.1496413Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.1496942Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.1497262Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.1497769Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.1499899Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.1500513Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.1502536Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.1503047Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.1503544Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.1505723Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.1506293Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.1508325Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.1508932Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.1509268Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.1509855Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.1511156Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.1511467Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.1512547Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.1512861Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.1513130Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.1514326Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.1514718Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.1515823Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.1516127Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.1516321Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.1516455Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.1517148Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.1517333Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.1517530Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.1517731Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.1517968Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.1518198Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.1518596Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.1518988Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.1519204Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.1519407Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1520188Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1520395Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1520603Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.1521409Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.1521648Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.1521883Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.1522719Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.1522957Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1523775Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1524007Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1524829Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1525047Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1525347Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.1525511Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1525693Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1525948Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1526064Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1526184Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1526308Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1526460Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1526794Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1526916Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1527010Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1527017Z 2023-01-11T21:03:37.1527253Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.1527407Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1527627Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1527945Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1528121Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1528416Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1528569Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1528762Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1529168Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1529389Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1529574Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1529771Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1530334Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1530535Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1530763Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1531432Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1531644Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1532455Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1532637Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1532781Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1533398Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1533546Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1533700Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1533953Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1534072Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1534177Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1534297Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1534545Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1534856Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1534975Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1535124Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1535130Z 2023-01-11T21:03:37.1536806Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:37.1536881Z ================== 2023-01-11T21:03:37.1607183Z ================== 2023-01-11T21:03:37.1608060Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1613515Z  Write of size 8 at 0x7ba4000103b0 by thread T3: 2023-01-11T21:03:37.1617438Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.1617964Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1618368Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1618888Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1619417Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1619788Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1620104Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1620474Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1620718Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1620733Z 2023-01-11T21:03:37.1621073Z  Previous write of size 8 at 0x7ba4000103b0 by main thread: 2023-01-11T21:03:37.1624558Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.1624967Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1625301Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1625748Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1626178Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1626443Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1626756Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1627128Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.1627476Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1628714Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.1628994Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.1629196Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1630023Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1630266Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1631090Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1631330Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1632156Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1632374Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1632649Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.1632839Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1633020Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1633326Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1633444Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1633549Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1633670Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1633818Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1634127Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1634250Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1634390Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1634397Z 2023-01-11T21:03:37.1634794Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.1634968Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1635093Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1635253Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1635445Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1635905Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1636169Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.1636436Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.1636708Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.1637051Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.1638233Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.1638961Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.1639279Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.1640354Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.1640640Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.1640833Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.1641109Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.1641380Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.1641618Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.1641976Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.1643025Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.1643606Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.1643887Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.1644839Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.1645090Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.1645248Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.1645408Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.1645680Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.1645880Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1646058Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1646310Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1646426Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1646531Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1646654Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1646801Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1647110Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1647230Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1647326Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1647331Z 2023-01-11T21:03:37.1647585Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.1647758Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1647979Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1648294Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1648467Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1648759Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1648913Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1649090Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1649500Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1649718Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1649909Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1650104Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1650660Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1650823Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1651073Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1651750Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1651963Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1652751Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1652931Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1653073Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1653689Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1653835Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1653988Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1654239Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1654453Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1654574Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1654695Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1654829Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1655141Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1655301Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1655442Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1655449Z 2023-01-11T21:03:37.1657955Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.1658160Z ================== 2023-01-11T21:03:37.1658302Z ================== 2023-01-11T21:03:37.1658588Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1658894Z  Write of size 8 at 0x7ba4000103b0 by thread T2: 2023-01-11T21:03:37.1662324Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.1662799Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1663138Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1663500Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1663909Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1664321Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1664524Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1664861Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1665093Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1665117Z 2023-01-11T21:03:37.1665389Z  Previous write of size 8 at 0x7ba4000103b0 by main thread: 2023-01-11T21:03:37.1668596Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.1668874Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1669096Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1669383Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1669677Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1669868Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1670069Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1670298Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.1670511Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1671294Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.1671542Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.1671746Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1672530Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1672793Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1673632Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1673870Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1674774Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1674984Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1675259Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.1675433Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1675642Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1675897Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1676013Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1676134Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1676256Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1676403Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1676716Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1676835Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1676918Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1676924Z 2023-01-11T21:03:37.1677156Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.1677349Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1677476Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1677638Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1677844Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1678286Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1678555Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.1678822Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.1679123Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.1679463Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.1680588Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.1681264Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.1681612Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.1682704Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.1682992Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.1683182Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.1683456Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.1683727Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.1683968Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.1684302Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.1685355Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.1685969Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.1686245Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.1687200Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.1687449Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.1687607Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.1687767Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.1688040Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.1688200Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1688379Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1688658Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1688774Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1688898Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1689018Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1689167Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1689480Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1689599Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1689692Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1689700Z 2023-01-11T21:03:37.1689916Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.1690069Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1690319Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1690639Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1690812Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1691104Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1691257Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1691451Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1691860Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1692233Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1692493Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1692813Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1693719Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1694004Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1694538Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1695686Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1696116Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1697288Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1697474Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1697648Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1698495Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1698735Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1698953Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1699376Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1699570Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1699741Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1699946Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1700138Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1700614Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1700804Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1700952Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1700965Z 2023-01-11T21:03:37.1703821Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.1704022Z ================== 2023-01-11T21:03:37.1704189Z ================== 2023-01-11T21:03:37.1704479Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1704792Z  Write of size 8 at 0x7ba4000103b8 by thread T2: 2023-01-11T21:03:37.1708772Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.1709200Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1709469Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1709924Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1710437Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1710849Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1711070Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1711377Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1711579Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1711590Z 2023-01-11T21:03:37.1711903Z  Previous write of size 8 at 0x7ba4000103b8 by main thread: 2023-01-11T21:03:37.1715368Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.1715754Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1716091Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1716518Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1716965Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1717245Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1717555Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1717893Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.1718221Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1719394Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.1719697Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.1720059Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1721235Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1721553Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1722638Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1722981Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1724203Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1724535Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1724931Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.1725173Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1725439Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1725811Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1726031Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1726229Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1726408Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1726622Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1727097Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1727285Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1727417Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1727426Z 2023-01-11T21:03:37.1727768Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.1728008Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1728184Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1728428Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1728735Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1729410Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1729813Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.1730230Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.1730611Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.1731111Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.1732833Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.1733875Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.1734570Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.1736248Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.1736707Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.1737000Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.1737398Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.1737705Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.1737949Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.1738362Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.1739784Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.1740802Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.1741206Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.1742605Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.1742997Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.1743239Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.1743479Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.1743905Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.1744174Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1744439Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1744833Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1745045Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1745208Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1745395Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1745628Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1746112Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1746283Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1746412Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1746422Z 2023-01-11T21:03:37.1746744Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.1746999Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1747326Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1747876Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1748155Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1748615Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1748844Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1749144Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1749825Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1750201Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1750492Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1750819Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1751714Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1751976Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1752320Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1753374Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1753706Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1754983Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1755315Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1755540Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1756528Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1756758Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1756995Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1757410Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1757589Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1757758Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1757933Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1758162Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1758614Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1758759Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1758855Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1758865Z 2023-01-11T21:03:37.1761083Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.1761225Z ================== 2023-01-11T21:03:37.1761343Z ================== 2023-01-11T21:03:37.1761517Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1761682Z  Write of size 8 at 0x7ba4000103b8 by thread T3: 2023-01-11T21:03:37.1763884Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.1764149Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1764372Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1764653Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1764940Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1765211Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1765355Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1765578Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1765715Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1765721Z 2023-01-11T21:03:37.1765909Z  Previous write of size 8 at 0x7ba4000103b8 by main thread: 2023-01-11T21:03:37.1768040Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.1768361Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1768587Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1768866Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1769154Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1769349Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1769550Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1769774Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.1769983Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1770763Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.1770981Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.1771181Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1771996Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1772248Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1773100Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1773335Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1774161Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1774460Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1774736Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.1774914Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1775093Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1775347Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1775463Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1775584Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1775760Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1775906Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1776218Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1776336Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1776430Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1776436Z 2023-01-11T21:03:37.1776650Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.1776819Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1776943Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1777104Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1777313Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1777800Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1778062Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.1778328Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.1778600Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.1778936Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.1780056Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.1780704Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.1781051Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.1782161Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.1782458Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.1782649Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.1782924Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.1783191Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.1783436Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.1783769Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.1785037Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.1785978Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.1786481Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.1788007Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.1788419Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.1788652Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.1788874Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.1789296Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.1789567Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1789847Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1790272Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1790440Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1790629Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1790821Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1791127Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1791547Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1791746Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1791919Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1791929Z 2023-01-11T21:03:37.1792350Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.1792609Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1792970Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1793477Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1793804Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1794365Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1794710Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1795032Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1795671Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1796063Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1796380Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1796587Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1797264Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1797509Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1797867Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1798846Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1799186Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1800309Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1800585Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1800811Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1801816Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1802014Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1802259Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1802668Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1802857Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1803036Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1803228Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1803461Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1803976Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1804167Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1804321Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1804329Z 2023-01-11T21:03:37.1807331Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.1807524Z ================== 2023-01-11T21:03:37.1807730Z ================== 2023-01-11T21:03:37.1808044Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1808366Z  Write of size 8 at 0x7ba4000103b0 by thread T1: 2023-01-11T21:03:37.1811928Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.1812212Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1812439Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1812720Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1813012Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1813277Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1813422Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1813631Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1813768Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1813776Z 2023-01-11T21:03:37.1813970Z  Previous write of size 8 at 0x7ba4000103b0 by main thread: 2023-01-11T21:03:37.1816204Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.1816521Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1816780Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1817062Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1817353Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1817547Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1817748Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1817975Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.1818186Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1818963Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.1819180Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.1819379Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1820165Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1820431Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1821313Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1821551Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1822372Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1822577Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1822849Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.1823027Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1823205Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1823455Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1823568Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1823686Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1823804Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1823949Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1824257Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1824388Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1824481Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1824487Z 2023-01-11T21:03:37.1824709Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.1824875Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1824998Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1825155Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1825357Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1825822Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1826084Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.1826350Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.1826619Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.1826959Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.1828116Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.1829029Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.1829551Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.1831277Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.1831732Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.1832026Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.1832414Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.1832832Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.1833214Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.1833764Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.1835446Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.1836521Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.1837020Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.1838669Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.1839111Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.1839361Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.1839626Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.1839987Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.1840269Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1840546Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1840883Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1841075Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1841265Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1841447Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1841682Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1842083Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1842329Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1842476Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1842485Z 2023-01-11T21:03:37.1842805Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.1843034Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1843357Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1843845Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1844169Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1844671Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1844987Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1845337Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1846015Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1846354Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1846641Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1846937Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1847743Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1847989Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1848327Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1849386Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1849737Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1851148Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1851457Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1851714Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1852907Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1853170Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1853391Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1853792Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1853986Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1854194Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1854501Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1854782Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1855204Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1855325Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1855415Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1855421Z 2023-01-11T21:03:37.1857089Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.1857163Z ================== 2023-01-11T21:03:37.1857279Z ================== 2023-01-11T21:03:37.1857521Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1857695Z  Write of size 8 at 0x7ba4000103c0 by thread T2: 2023-01-11T21:03:37.1859875Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.1860139Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1860363Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1860646Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1860935Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1861203Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1861345Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1861568Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1861707Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1861713Z 2023-01-11T21:03:37.1861905Z  Previous write of size 8 at 0x7ba4000103c0 by main thread: 2023-01-11T21:03:37.1864040Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.1864326Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1864546Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1864869Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1865157Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1865349Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1865549Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1865774Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.1865988Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1866772Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.1867002Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.1867201Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1867983Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1868250Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1869100Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1869335Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1870173Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1870379Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1870651Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.1870824Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1871002Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1871255Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1871358Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1871476Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1871598Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1871745Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1872052Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1872169Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1872291Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1872296Z 2023-01-11T21:03:37.1872518Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.1872684Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1872806Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1872951Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1873152Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1873594Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1873894Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.1874161Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.1874499Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.1875063Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.1876724Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.1877829Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.1878385Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.1880195Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.1880699Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.1881026Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.1881494Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.1881908Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.1882302Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.1882870Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.1884694Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.1885624Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.1886095Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.1887776Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.1888206Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.1888463Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.1888731Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.1889191Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.1889420Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1889634Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1890044Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1890235Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1890415Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1890607Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1890853Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1891352Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1891551Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1891708Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1891769Z 2023-01-11T21:03:37.1892149Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.1892413Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1892740Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1893146Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1893394Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1893791Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1894019Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1894498Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1895094Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1895437Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1895678Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1895908Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1896742Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1896951Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1897283Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1898348Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1898678Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1899708Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1899960Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1900103Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1900754Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1900949Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1901174Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1901601Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1901804Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1902015Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1902234Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1902506Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1903096Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1903290Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1903445Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1903457Z 2023-01-11T21:03:37.1905895Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.1905985Z ================== 2023-01-11T21:03:37.1906104Z ================== 2023-01-11T21:03:37.1906279Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1906443Z  Write of size 8 at 0x7ba4000103c0 by thread T3: 2023-01-11T21:03:37.1908616Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.1908975Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1909200Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1909485Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1909776Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1910046Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1910188Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1910415Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1910550Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1910557Z 2023-01-11T21:03:37.1910745Z  Previous write of size 8 at 0x7ba4000103c0 by main thread: 2023-01-11T21:03:37.1912875Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.1913170Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1913393Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1913673Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1913989Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1914182Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1914384Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1914676Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.1914892Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1915670Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.1915881Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.1916085Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1916866Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1917164Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1917987Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1918248Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1919071Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1919282Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1919551Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.1919725Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1919900Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1920150Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1920268Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1920387Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1920508Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1920656Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1920964Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1921083Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1921179Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1921184Z 2023-01-11T21:03:37.1921465Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.1921681Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1921867Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1922091Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1922336Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1923022Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1937962Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.1938547Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.1938909Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.1939438Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.1941096Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.1942024Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.1942431Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.1944225Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.1944707Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.1945006Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.1945456Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.1945881Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.1946279Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.1946766Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.1948330Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.1948996Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.1949414Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.1951011Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.1951268Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.1951426Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.1951585Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.1951859Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.1952032Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1952209Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1952462Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1952577Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1952733Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1952854Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1953002Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1953312Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1953430Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1953521Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1953528Z 2023-01-11T21:03:37.1953773Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.1953945Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1954202Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1954517Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1954757Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1955055Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1955210Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1955386Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1955837Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1956056Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1956241Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1956435Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1956998Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1957162Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1957385Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1958059Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1958267Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1959031Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1959237Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1959376Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1959986Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1960132Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1960306Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1960558Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1960671Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1960789Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1960909Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1961043Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1961353Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1961472Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1961563Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1961570Z 2023-01-11T21:03:37.1963213Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.1963287Z ================== 2023-01-11T21:03:37.1963419Z ================== 2023-01-11T21:03:37.1963575Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.1963749Z  Write of size 8 at 0x7ba4000103c0 by thread T1: 2023-01-11T21:03:37.1965917Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.1966206Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1966450Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1966732Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1967015Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1967286Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.1967429Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.1967651Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.1967785Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.1967790Z 2023-01-11T21:03:37.1967978Z  Previous write of size 8 at 0x7ba4000103c0 by main thread: 2023-01-11T21:03:37.1970080Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.1970368Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.1970584Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.1970862Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.1971144Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.1971337Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.1971572Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.1971798Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.1972009Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.1972787Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.1972998Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.1973198Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.1973984Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.1974231Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1975188Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.1975422Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.1976289Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.1976492Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.1976765Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.1976940Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1977117Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1977368Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1977482Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1977599Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1977721Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1977868Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1978176Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1978295Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1978388Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1978394Z 2023-01-11T21:03:37.1978607Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.1978772Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.1978893Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.1979051Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.1979289Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.1979729Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.1979985Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.1980250Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.1980545Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.1980883Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.1982000Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.1982651Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.1982967Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.1984046Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.1984388Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.1984576Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.1984846Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.1985114Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.1985353Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.1985683Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.1986693Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.1987280Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.1987586Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.1988558Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.1988824Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.1988976Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.1989121Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.1989389Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.1989561Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.1989737Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.1989989Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1990104Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1990220Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1990339Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1990485Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1990795Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1990911Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1991001Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1991007Z 2023-01-11T21:03:37.1991205Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.1991369Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.1991583Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.1991896Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.1992098Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.1992392Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.1992544Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.1992732Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.1993135Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.1993352Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.1993561Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.1993759Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.1994316Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.1994479Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.1994768Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.1995434Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.1995648Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.1996413Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.1996650Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.1996779Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.1997401Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.1997546Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.1997696Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.1997935Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.1998076Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.1998195Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.1998314Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.1998461Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.1998769Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.1998887Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.1998982Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.1998987Z 2023-01-11T21:03:37.2000635Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.2000706Z ================== 2023-01-11T21:03:37.2319198Z ================== 2023-01-11T21:03:37.2319944Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.2320685Z  Write of size 8 at 0x7ba400011758 by thread T2: 2023-01-11T21:03:37.2324216Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.2324800Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.2325152Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.2325680Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.2326137Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.2326559Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.2326801Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.2327154Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.2327345Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.2327354Z 2023-01-11T21:03:37.2327675Z  Previous write of size 8 at 0x7ba400011758 by main thread: 2023-01-11T21:03:37.2330880Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.2331262Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.2331689Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.2332120Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.2332542Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.2332820Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.2333134Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.2333535Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.2333884Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.2335294Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.2335637Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.2335964Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.2337230Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.2337649Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.2338953Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.2339448Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.2340852Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.2341182Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.2341648Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.2341974Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.2342278Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.2342712Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.2342827Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.2342995Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.2343110Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.2343256Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.2343564Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.2343717Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.2343833Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.2343841Z 2023-01-11T21:03:37.2344089Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.2344257Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.2344383Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.2344594Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.2344801Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.2345287Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.2345596Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.2345865Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.2346190Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.2346561Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.2347763Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.2348488Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.2348804Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.2349960Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.2350301Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.2350490Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.2350838Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.2351108Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.2351396Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.2351730Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.2352805Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.2353419Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.2353800Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.2354867Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.2355202Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.2355363Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.2355520Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.2355790Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.2356020Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.2356197Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.2356451Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.2356565Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.2356738Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.2356849Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.2356996Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.2357304Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.2357422Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.2357518Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.2357524Z 2023-01-11T21:03:37.2357795Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.2357961Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.2358179Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.2358559Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.2358732Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.2359119Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.2359273Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.2359465Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.2359873Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.2360113Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.2360298Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.2360490Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.2361076Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.2361303Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.2361533Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.2362197Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.2362404Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.2363171Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.2363344Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.2363486Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.2364128Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.2364275Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.2364423Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.2364676Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.2364794Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.2364929Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.2365091Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.2365268Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.2365578Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.2365694Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.2365773Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.2365791Z 2023-01-11T21:03:37.2367734Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.2367833Z ================== 2023-01-11T21:03:37.2368398Z ================== 2023-01-11T21:03:37.2368644Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.2371335Z  Write of size 8 at 0x7ba400011758 by thread T3: 2023-01-11T21:03:37.2375790Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.2376575Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.2377416Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.2396080Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.2396706Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.2397209Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.2397457Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.2397931Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.2398183Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.2398193Z 2023-01-11T21:03:37.2398554Z  Previous write of size 8 at 0x7ba400011758 by main thread: 2023-01-11T21:03:37.2402751Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.2403229Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.2403603Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.2404201Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.2404720Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.2405073Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.2405445Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.2405855Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.2406239Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.2407749Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.2408154Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.2408510Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.2409977Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.2410416Z #13 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.2411958Z #14 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.2412432Z #15 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.2414020Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.2414481Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.2414987Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e316d) 2023-01-11T21:03:37.2415308Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.2415626Z #20 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.2416104Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.2416313Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.2416512Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.2416725Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.2416984Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.2417592Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.2417806Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.2417967Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.2417976Z 2023-01-11T21:03:37.2418404Z  Location is heap block of size 20160 at 0x7ba40000f000 allocated by main thread: 2023-01-11T21:03:37.2418708Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.2418931Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.2419205Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.2419558Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.2420385Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.2420949Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:37.2421453Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:37.2421935Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:37.2422571Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:37.2424714Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:37.2425929Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:37.2426501Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:37.2428879Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:37.2429466Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:37.2429767Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:37.2430262Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:37.2430797Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:37.2431230Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:37.2431877Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:37.2433796Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:37.2434935Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:37.2435453Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:37.2437281Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:37.2437750Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:37.2438087Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:37.2438351Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:37.2438869Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e3869) 2023-01-11T21:03:37.2439185Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.2439490Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.2439969Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.2440173Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.2440374Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.2440582Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.2440862Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.2441453Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.2441664Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.2441818Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.2441830Z 2023-01-11T21:03:37.2442233Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.2442538Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.2442940Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.2443525Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.2443841Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.2444358Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.2444697Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.2445053Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.2445798Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.2446207Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.2446546Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.2446895Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.2447974Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.2448294Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.2448716Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.2449962Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.2450330Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.2451793Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.2452121Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.2452380Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.2453518Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.2453806Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.2454075Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.2454621Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.2454816Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.2455010Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.2455216Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.2455471Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.2456051Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.2456252Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.2456408Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.2456417Z 2023-01-11T21:03:37.2459424Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.2459562Z ================== 2023-01-11T21:03:37.4384428Z ================== 2023-01-11T21:03:37.4385024Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.4385530Z  Write of size 8 at 0x7ba4000293b0 by thread T3: 2023-01-11T21:03:37.4389546Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.4392847Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4393618Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4394527Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4395639Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4396776Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.4397470Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.4398288Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.4398916Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.4399233Z 2023-01-11T21:03:37.4399607Z  Previous write of size 8 at 0x7ba4000293b0 by main thread: 2023-01-11T21:03:37.4403884Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.4406776Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4407627Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4408536Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4409632Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4410417Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.4411143Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.4411943Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.4412817Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.4413800Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.4414983Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.4415446Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4416058Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4416822Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4417409Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4417830Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4418824Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4419828Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4420251Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4421274Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4422290Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4422749Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4423794Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4424776Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4425835Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4426837Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4427918Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4428934Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4429417Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4429856Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4430217Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4430680Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4431062Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4431302Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4431559Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4431843Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4432317Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4432742Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4432975Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4433105Z 2023-01-11T21:03:37.4433356Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.4433688Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.4433935Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.4434236Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.4434690Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.4435348Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.4436048Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.4436580Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.4437096Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.4437721Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.4439158Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.4440924Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.4441823Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.4443651Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.4445740Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.4446485Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.4447320Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.4449651Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.4452125Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4454093Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4456360Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4457162Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4459057Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4460957Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4462985Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4465428Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4466206Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4467036Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.4469250Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.4471661Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4473433Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4474963Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4475497Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4476951Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4478495Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4479893Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4481391Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4481855Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4482236Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.4483085Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.4483896Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.4484263Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.4484670Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.4485115Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.4485560Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4486172Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4486944Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4487539Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4487960Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4488985Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4489937Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4490352Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4491405Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4492379Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4492832Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4493869Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4494978Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4496040Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4497105Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4498196Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4499174Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4499659Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4500115Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4500479Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4500911Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4501288Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4501545Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4501803Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4502074Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4502552Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4502990Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4503223Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4503341Z 2023-01-11T21:03:37.4503699Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.4504161Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.4504708Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.4505522Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.4506148Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.4506838Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.4507600Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.4508194Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.4509126Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.4509826Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.4510430Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.4511095Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.4512534Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.4513638Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.4514151Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.4515551Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.4516748Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.4518381Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.4519434Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.4519812Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.4520638Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.4521464Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.4521784Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.4522279Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4522870Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4523132Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4523415Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4523749Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4524446Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4525178Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4525415Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4525545Z 2023-01-11T21:03:37.4527820Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.4529610Z ================== 2023-01-11T21:03:37.4530134Z ================== 2023-01-11T21:03:37.4530609Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.4531201Z  Write of size 8 at 0x7ba4000293b0 by thread T1: 2023-01-11T21:03:37.4534323Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.4536906Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4537548Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4538314Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4539109Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4539988Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.4540587Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.4541142Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.4541686Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.4541918Z 2023-01-11T21:03:37.4542212Z  Previous write of size 8 at 0x7ba4000293b0 by main thread: 2023-01-11T21:03:37.4545769Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.4548052Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4548751Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4549497Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4550427Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4551144Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.4551750Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.4552415Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.4553062Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.4554483Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.4555940Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.4556616Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4557513Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4558607Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4559457Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4560075Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4561494Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4562912Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4563496Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4564972Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4566740Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4567506Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4569299Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4571012Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4572854Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4574702Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4576545Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4578475Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4579316Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4580073Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4580709Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4581533Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4582198Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4582615Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4583050Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4583543Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4584363Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4585088Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4585477Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4585692Z 2023-01-11T21:03:37.4586104Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.4586669Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.4587097Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.4587606Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.4588256Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.4589406Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.4590578Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.4591481Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.4592360Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.4593412Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.4595928Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.4598843Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.4600210Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.4602288Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.4604392Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.4605094Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.4605879Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.4608187Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.4610154Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4612291Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4614584Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4615352Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4617576Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4620010Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4622291Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4624533Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4625251Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4626027Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.4628264Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.4630541Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4632045Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4634206Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4635169Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4637433Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4639366Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4641418Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4643664Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4644291Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4644763Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.4646001Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.4647203Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.4647719Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.4648303Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.4648958Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.4649622Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4650491Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4651531Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4652418Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4653072Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4654504Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4655920Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4656569Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4658415Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4660175Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4660825Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4662378Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4663830Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4665380Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4666949Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4668659Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4670178Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4670929Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4671588Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4672138Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4672828Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4673244Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4673505Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4673884Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4674333Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4675173Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4675860Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4676169Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4676371Z 2023-01-11T21:03:37.4676732Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.4677252Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.4677813Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.4678650Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.4679382Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.4680054Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.4680816Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.4681375Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.4682339Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.4683100Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.4683733Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.4684346Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.4685607Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.4686695Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.4687320Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.4688690Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.4690010Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.4691520Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.4692899Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.4693408Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.4694847Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.4696018Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.4696320Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.4696744Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4697180Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4697528Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4697896Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4698334Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4699059Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4699589Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4699810Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4699939Z 2023-01-11T21:03:37.4701628Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.4702649Z ================== 2023-01-11T21:03:37.4702801Z ================== 2023-01-11T21:03:37.4703067Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.4703384Z  Write of size 8 at 0x7ba4000293b0 by thread T2: 2023-01-11T21:03:37.4705664Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.4707462Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4708240Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4709051Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4709990Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4710945Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.4711597Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.4712206Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.4712800Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.4713058Z 2023-01-11T21:03:37.4713393Z  Previous write of size 8 at 0x7ba4000293b0 by main thread: 2023-01-11T21:03:37.4717338Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:37.4719913Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4720702Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4721527Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4722467Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4723233Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.4723803Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.4724516Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.4725276Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.4726990Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.4728214Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.4728677Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4729287Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4730044Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4730624Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4731050Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4732049Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4733043Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4733460Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4734576Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4735640Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4736083Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4737144Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4738142Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4739203Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4740202Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4741263Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4742289Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4742773Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4743223Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4743584Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4744054Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4744419Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4744671Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4744928Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4745201Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4745679Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4746120Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4746356Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4746484Z 2023-01-11T21:03:37.4746727Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.4747062Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.4747327Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.4747627Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.4747997Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.4748652Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.4749348Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.4749881Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.4750409Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.4751030Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.4752455Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.4754210Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.4755176Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.4756513Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.4757863Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.4758323Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.4758965Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.4761204Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.4763435Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4765492Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4767724Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4768563Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4770845Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4773215Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4775681Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4777807Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4778564Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4779280Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.4781042Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.4783174Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4785262Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4787514Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4788232Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4790173Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4792534Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4794793Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4797071Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4797816Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4798408Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.4799712Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.4800662Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.4801222Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.4801854Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.4802524Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.4803242Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4804205Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4805380Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4806275Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4806858Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4808450Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4809932Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4810584Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4812218Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4813720Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4814543Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4815943Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4817229Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4818846Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4820489Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4822206Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4823496Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4823985Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4824466Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4824990Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4825638Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4826190Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4826615Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4826914Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4827335Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4828164Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4828844Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4829181Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4829319Z 2023-01-11T21:03:37.4829572Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.4830114Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.4830668Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.4831422Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.4832039Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.4832696Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.4833515Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.4834033Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.4834832Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.4835525Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.4836069Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.4836583Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.4837764Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.4838785Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.4839382Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.4840669Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.4842026Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.4844382Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.4846020Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.4846621Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.4847607Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.4848852Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.4849225Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.4849884Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4850402Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4850760Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4851128Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4851464Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4852320Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4853016Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4853408Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4853598Z 2023-01-11T21:03:37.4856558Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.4858344Z ================== 2023-01-11T21:03:37.4858595Z ================== 2023-01-11T21:03:37.4859056Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.4859583Z  Write of size 8 at 0x7ba4000293b8 by thread T3: 2023-01-11T21:03:37.4862630Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.4864452Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4865175Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4865930Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4866816Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4867731Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.4868341Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.4868900Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.4869363Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.4869527Z 2023-01-11T21:03:37.4869730Z  Previous write of size 8 at 0x7ba4000293b8 by main thread: 2023-01-11T21:03:37.4873278Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.4875789Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4876485Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4877220Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4878128Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4878855Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.4879465Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.4880116Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.4880769Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.4882227Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.4883593Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.4884292Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4885205Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4886369Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4887231Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4887853Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4889344Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4890860Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4891165Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4892402Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4892769Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4893114Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4893911Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4894161Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4895453Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4895840Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4897213Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4897633Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4898069Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4898345Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4898644Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4899117Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4899316Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4899507Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4899704Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4899942Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4900518Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4900717Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4900881Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4900893Z 2023-01-11T21:03:37.4901362Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.4901680Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.4901894Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.4902191Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.4902551Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.4903050Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.4903382Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.4903645Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.4903926Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.4904575Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.4906600Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.4907792Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.4908322Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.4909365Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.4909642Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.4909933Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.4910468Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.4912580Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.4913158Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4915169Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4915671Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4916151Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4918317Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4918962Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4921007Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4921510Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4921865Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4922417Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.4924054Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.4924401Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4925475Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4925752Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4926063Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4928155Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4928744Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4930076Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4930429Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4930623Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4930811Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.4931487Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.4931641Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.4931838Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.4932040Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.4932276Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.4932494Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4932914Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4933643Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4933934Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4934242Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4935705Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4935916Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4936176Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4937051Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4937262Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4937502Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4938293Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4938531Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4939349Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4939636Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4940488Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4940694Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4940965Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4941139Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4941316Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4941573Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4941691Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4941814Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4941923Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4942071Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4942385Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4942504Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4942599Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4942608Z 2023-01-11T21:03:37.4942846Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.4943016Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.4943236Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.4943555Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.4943729Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.4944023Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.4944209Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.4944405Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.4944817Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.4945037Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.4945222Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.4945407Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.4946014Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.4946177Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.4946399Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.4947066Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.4947277Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.4948043Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.4948222Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.4948363Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.4948972Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.4949146Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.4949294Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.4949546Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4949662Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4949781Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4949904Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4950049Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4950383Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4950500Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4950581Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4950586Z 2023-01-11T21:03:37.4952254Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.4952326Z ================== 2023-01-11T21:03:37.4952380Z ================== 2023-01-11T21:03:37.4952551Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.4952727Z  Write of size 8 at 0x7ba4000293b8 by thread T1: 2023-01-11T21:03:37.4954985Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.4955306Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4955529Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4955810Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4956100Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4956395Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.4956537Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.4956762Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.4956884Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.4956903Z 2023-01-11T21:03:37.4957081Z  Previous write of size 8 at 0x7ba4000293b8 by main thread: 2023-01-11T21:03:37.4959228Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.4959486Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.4959706Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.4959983Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.4960302Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.4960492Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.4960695Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.4960917Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.4961127Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.4961867Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.4962104Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.4962327Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4962707Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4963090Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4963302Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4963501Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4964285Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4964517Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4964721Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4965538Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4965792Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4966030Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4966827Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4967060Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4967881Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4968128Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4968956Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4969184Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4969455Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4969630Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4969808Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4970094Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.4970210Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.4970330Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.4970438Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.4970584Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.4970894Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.4971013Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.4971106Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.4971111Z 2023-01-11T21:03:37.4971337Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.4971503Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.4971626Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.4971788Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.4971994Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.4972433Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.4972703Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.4972969Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.4973230Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.4973584Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.4974816Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.4975455Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.4975760Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.4976803Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.4977090Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.4977275Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.4977586Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.4978747Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.4979053Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4980130Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4980403Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4980671Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4981845Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4982195Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4983310Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4983615Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4983806Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4984102Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.4985204Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.4985541Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.4986651Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.4986926Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.4987193Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.4988350Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.4988684Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.4989766Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.4990096Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.4990276Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.4990446Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.4991134Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.4991287Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.4991481Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.4991668Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.4991900Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.4992118Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.4992503Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.4992906Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.4993115Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.4993313Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.4994122Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.4994328Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4994534Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.4995476Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.4995686Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.4995922Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.4996714Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.4996965Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4997788Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.4998049Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.4998898Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.4999107Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.4999381Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.4999555Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.4999730Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.4999986Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5000101Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5000221Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5000340Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5000488Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5000799Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5000942Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5001035Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5001044Z 2023-01-11T21:03:37.5001270Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.5001425Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.5001646Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.5001964Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.5002136Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.5002430Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.5002613Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.5002805Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.5003208Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.5003427Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.5003610Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.5003805Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.5004392Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.5004560Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.5004782Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.5005450Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.5005658Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.5006436Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.5006617Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.5006757Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.5007367Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.5007551Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.5007701Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.5007954Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5008056Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5008173Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5008295Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5008442Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5008776Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5008898Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5008990Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5008996Z 2023-01-11T21:03:37.5010649Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.5010721Z ================== 2023-01-11T21:03:37.5010786Z ================== 2023-01-11T21:03:37.5010954Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.5011130Z  Write of size 8 at 0x7ba4000293b8 by thread T2: 2023-01-11T21:03:37.5013259Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.5013551Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5013771Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5014049Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5014436Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5014748Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.5014889Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.5015117Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.5015250Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.5015256Z 2023-01-11T21:03:37.5015446Z  Previous write of size 8 at 0x7ba4000293b8 by main thread: 2023-01-11T21:03:37.5017597Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:37.5017858Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5018079Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5018359Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5018688Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5018880Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.5019082Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.5019307Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.5019520Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.5020279Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.5020519Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.5020740Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5021126Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5021525Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5021738Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5021941Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5022729Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5022962Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5023167Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5023977Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5024220Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5024459Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5025270Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5025507Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5026332Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5026567Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5027386Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5027629Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5027888Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5028066Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5028244Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5028532Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5028649Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5028770Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5028891Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5029039Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5029348Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5029469Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5029564Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5029569Z 2023-01-11T21:03:37.5029795Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.5029948Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.5030074Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.5030237Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.5030443Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.5030883Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.5031154Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.5031416Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.5031753Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.5032119Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.5033221Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.5033841Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.5034142Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.5035235Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.5035509Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.5035695Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.5035994Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.5037168Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.5037475Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5038534Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5038812Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5039082Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5040250Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5040598Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5041725Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5042015Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5042205Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5042498Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.5043597Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.5043945Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5045032Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5045307Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5045572Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5046739Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5047065Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5048171Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5048484Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5048676Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5048855Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.5049535Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.5049689Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.5049882Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.5050082Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.5050314Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.5050530Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5050910Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5051296Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5051508Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5051705Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5052527Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5052730Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5052935Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5053787Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5053997Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5054235Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5055125Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5055370Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5056185Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5056498Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5057365Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5057571Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5057843Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5058022Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5058200Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5058456Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5058570Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5058692Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5058800Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5058947Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5059261Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5059376Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5059470Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5059479Z 2023-01-11T21:03:37.5059703Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.5059871Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.5060091Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.5060408Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.5060581Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.5060874Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.5061061Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.5061255Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.5061661Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.5061881Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.5062053Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.5062245Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.5062863Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.5063027Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.5063251Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.5063918Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.5064128Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.5064889Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.5065068Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.5065210Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.5065824Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.5066004Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.5066156Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.5066409Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5066524Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5066643Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5066766Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5066913Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5067251Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5067368Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5067448Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5067453Z 2023-01-11T21:03:37.5069130Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.5069202Z ================== 2023-01-11T21:03:37.5069255Z ================== 2023-01-11T21:03:37.5069421Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.5069593Z  Write of size 8 at 0x7ba4000293c0 by thread T3: 2023-01-11T21:03:37.5071712Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.5072018Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5072237Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5072519Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5072810Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5073100Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.5073243Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.5073465Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.5073587Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.5073592Z 2023-01-11T21:03:37.5073779Z  Previous write of size 8 at 0x7ba4000293c0 by main thread: 2023-01-11T21:03:37.5075977Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.5076234Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5076451Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5076727Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5077047Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5077236Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.5077438Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.5077662Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.5077875Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.5078623Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.5078861Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.5079082Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5079464Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5079848Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5080060Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5080260Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5081045Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5081284Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5081489Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5082306Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5082546Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5082783Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5083583Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5083825Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5084645Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5084891Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5085717Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5085945Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5086220Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5086395Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5086571Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5086850Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5086966Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5087085Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5087195Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5087341Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5087649Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5087767Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5087860Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5087866Z 2023-01-11T21:03:37.5088092Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.5088258Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.5088382Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.5088542Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.5088747Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.5089185Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.5089457Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.5089722Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.5089988Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.5090344Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.5091444Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.5092079Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.5092382Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.5093400Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.5093685Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.5093869Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.5094152Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.5095424Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.5095737Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5096813Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5097090Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5097356Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5098573Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5098938Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5100055Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5100360Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5100541Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5100833Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.5101947Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.5102285Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5103381Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5122699Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5123117Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5124305Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5124644Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5125733Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5126143Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5126338Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5126527Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.5127209Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.5127366Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.5127564Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.5127765Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.5128001Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.5128219Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5128655Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5129224Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5129544Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5129841Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5131023Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5131328Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5131632Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5132938Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5133259Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5133641Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5135024Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5135394Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5136700Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5137156Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5138456Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5138783Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5139197Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5139448Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5139719Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5140134Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5140255Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5140379Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5140499Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5140647Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5140960Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5141078Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5141190Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5141204Z 2023-01-11T21:03:37.5141569Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.5141841Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.5142186Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.5142671Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.5142939Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.5143397Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.5143671Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.5143963Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.5144615Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.5144951Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.5145238Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.5145530Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.5146438Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.5146691Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.5147043Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.5147961Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.5148288Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.5149456Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.5149733Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.5149952Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.5150904Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.5151174Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.5151416Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.5151813Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5151997Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5152163Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5152352Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5152580Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5153079Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5153267Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5153408Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5153416Z 2023-01-11T21:03:37.5156135Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.5156257Z ================== 2023-01-11T21:03:37.5156352Z ================== 2023-01-11T21:03:37.5156612Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.5156870Z  Write of size 8 at 0x7ba4000293c0 by thread T1: 2023-01-11T21:03:37.5160288Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.5160762Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5161113Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5161550Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5162006Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5162474Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.5162702Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.5163036Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.5163240Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.5163249Z 2023-01-11T21:03:37.5163542Z  Previous write of size 8 at 0x7ba4000293c0 by main thread: 2023-01-11T21:03:37.5165989Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.5166390Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5166741Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5167151Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5167702Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5168040Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.5168375Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.5168736Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.5169107Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.5170216Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.5170604Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.5170970Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5171603Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5172239Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5172601Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5172958Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5174235Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5174752Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5175106Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5176486Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5176976Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5177390Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5178588Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5178997Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5180355Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5180754Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5181993Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5182397Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5182732Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5182911Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5183094Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5183429Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5183613Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5183765Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5183948Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5184193Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5184700Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5184908Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5185030Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5185038Z 2023-01-11T21:03:37.5185289Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.5185459Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.5185636Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.5185887Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.5186240Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.5186983Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.5187353Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.5187788Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.5188230Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.5188794Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.5190405Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.5191326Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.5191851Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.5193735Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.5194239Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.5194644Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.5195208Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.5197201Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.5197675Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5199270Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5199679Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5200081Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5201867Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5202425Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5204062Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5204493Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5204781Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5205229Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.5206872Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.5207406Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5209379Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5209845Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5210269Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5212026Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5212509Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5214146Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5214752Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5215029Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5215321Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.5216311Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.5216539Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.5216835Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.5217126Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.5217456Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.5217781Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5218314Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5218885Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5219178Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5219473Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5220659Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5220957Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5221254Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5222434Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5222738Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5223077Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5224360Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5224770Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5225973Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5226354Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5227558Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5227859Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5228266Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5228526Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5228775Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5229124Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5229307Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5229491Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5229658Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5229837Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5230277Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5230450Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5230541Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5230566Z 2023-01-11T21:03:37.5230896Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.5231150Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.5231458Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.5231899Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.5232139Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.5232554Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.5232827Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.5233162Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.5233897Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.5234288Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.5234676Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.5235004Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.5236008Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.5236286Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.5236650Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.5237789Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.5238137Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.5239422Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.5239714Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.5239951Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.5241000Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.5241279Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.5241534Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.5241946Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5242118Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5242316Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5242518Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5242761Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5243332Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5243539Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5243687Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5243697Z 2023-01-11T21:03:37.5246552Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.5246668Z ================== 2023-01-11T21:03:37.5246776Z ================== 2023-01-11T21:03:37.5247069Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.5247358Z  Write of size 8 at 0x7ba4000293c0 by thread T2: 2023-01-11T21:03:37.5251079Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.5251567Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5251926Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5252400Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5252886Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5253386Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.5253623Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.5253995Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.5254216Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.5254225Z 2023-01-11T21:03:37.5254657Z  Previous write of size 8 at 0x7ba4000293c0 by main thread: 2023-01-11T21:03:37.5258363Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:37.5258797Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5259171Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5259647Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5260223Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5260553Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.5260895Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.5261271Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.5261620Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.5262879Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.5263289Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.5263656Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5264297Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5264942Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5265292Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5265625Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5266958Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5267345Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5267687Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5269038Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5269428Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5269826Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5271246Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5271709Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5273240Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5273659Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5275269Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5275692Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5276184Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5276500Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5276826Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5277303Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5277514Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5277725Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5277939Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5278203Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5278784Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5278995Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5279163Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5279173Z 2023-01-11T21:03:37.5279593Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.5279878Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.5280086Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.5280380Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.5280743Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.5281557Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.5282060Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.5282533Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.5283022Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.5283653Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.5285692Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.5286840Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.5287422Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.5289340Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.5289839Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.5290173Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.5290704Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.5292879Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.5293449Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5295550Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5296077Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5296557Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5298700Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5299333Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5301421Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5301950Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5302303Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5302840Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.5304897Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.5305503Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5307505Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5308008Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5308503Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5310654Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5311255Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5313264Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5313831Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5314170Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5314462Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.5315798Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.5316080Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.5316430Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.5316782Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.5317209Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.5317584Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5318305Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5319013Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5319394Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5319756Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5321229Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5321586Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5321961Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5323487Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5323875Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5324302Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5325787Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5326202Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5327643Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5328108Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5329695Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5330061Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5330551Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5330865Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5331181Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5331655Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5331857Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5332055Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5332263Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5332529Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5333102Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5333312Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5333482Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5333495Z 2023-01-11T21:03:37.5333895Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.5334182Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.5334811Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.5335370Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.5335684Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.5336203Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.5336558Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.5336887Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.5337654Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.5338042Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.5338378Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.5338731Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.5339809Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.5340085Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.5340499Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.5341741Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.5342107Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.5343518Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.5343832Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.5344085Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.5345197Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.5345496Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.5345762Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.5346245Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5346454Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5346666Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5346876Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5347133Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5347763Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5347957Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5348124Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5348134Z 2023-01-11T21:03:37.5351319Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.5351455Z ================== 2023-01-11T21:03:37.5351538Z ================== 2023-01-11T21:03:37.5351847Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.5352158Z  Write of size 8 at 0x7ba40002a758 by thread T3: 2023-01-11T21:03:37.5356312Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.5356844Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5357232Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5357739Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5358249Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5358765Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.5359001Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.5359395Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.5359640Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.5359648Z 2023-01-11T21:03:37.5359977Z  Previous write of size 8 at 0x7ba40002a758 by main thread: 2023-01-11T21:03:37.5364025Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.5364487Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5364892Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5365388Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5365965Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5366298Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.5366669Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.5367074Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.5367458Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.5368810Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.5369224Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.5369628Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5370317Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5370994Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5371383Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5371738Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5373193Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5373589Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5373970Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5375571Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5376026Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5376449Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5377938Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5378355Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5379869Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5380290Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5381838Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5382239Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5382739Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5383042Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5383371Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5383896Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5384104Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5384326Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5384526Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5384788Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5385370Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5385587Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5385740Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5385747Z 2023-01-11T21:03:37.5386167Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.5386466Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.5386678Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.5386975Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.5387350Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.5388149Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.5388629Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.5389117Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.5389575Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.5390215Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.5392209Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.5393365Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.5393920Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.5395870Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.5396384Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.5396722Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.5397240Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.5399374Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.5399927Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5401903Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5402406Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5402883Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5405015Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5405626Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5407681Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5408201Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5408555Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5409084Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.5411128Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.5411734Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5413751Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5414255Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5414844Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5416983Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5417586Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5419601Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5420203Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5420539Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5420848Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.5422084Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.5422371Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.5422714Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.5423077Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.5423480Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.5423880Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5424560Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5425260Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5425653Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5426005Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5427500Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5427865Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5428219Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5429757Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5430125Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5430568Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5432038Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5432485Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5434007Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5434472Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5436102Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5436471Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5436963Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5437274Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5437578Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5438054Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5438257Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5438463Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5438683Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5438958Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5439517Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5439733Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5439903Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5439917Z 2023-01-11T21:03:37.5440302Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.5440597Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.5440998Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.5441559Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.5441873Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.5442388Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.5442709Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.5443060Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.5443820Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.5444207Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.5444553Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.5444904Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.5445968Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.5446255Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.5446670Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.5447887Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.5448273Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.5449690Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.5450006Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.5450254Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.5451394Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.5451689Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.5451953Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.5452412Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5452610Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5452817Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5453038Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5453307Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5453899Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5454115Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5454279Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5454288Z 2023-01-11T21:03:37.5457538Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.5457669Z ================== 2023-01-11T21:03:37.5458016Z ================== 2023-01-11T21:03:37.5458313Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.5458622Z  Write of size 8 at 0x7ba40002a758 by thread T1: 2023-01-11T21:03:37.5462654Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.5463183Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5463612Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5464122Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5464636Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5465182Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.5465424Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.5465831Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.5466072Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.5466081Z 2023-01-11T21:03:37.5466408Z  Previous write of size 8 at 0x7ba40002a758 by main thread: 2023-01-11T21:03:37.5470491Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.5470940Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5471347Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5471849Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5472425Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5472769Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.5473124Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.5473537Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.5473899Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.5475328Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.5475748Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.5476159Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5476846Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5477570Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5477945Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5478298Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5479752Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5480165Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5480538Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5482038Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5482449Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5482884Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5484363Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5484807Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5486330Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5486758Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5488276Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5488697Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5489184Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5489492Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5489814Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5490300Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5490508Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5490728Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5490943Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5491200Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5491791Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5492006Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5492164Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5492173Z 2023-01-11T21:03:37.5492571Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.5492866Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.5493083Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.5493372Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.5493749Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.5494651Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.5495130Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.5495617Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.5496084Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.5496765Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.5498799Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.5499948Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.5500508Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.5502426Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.5502911Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.5503250Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.5503774Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.5505883Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.5506471Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5508453Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5508941Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5509440Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5511612Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5512260Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5514314Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5514884Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5515236Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5515751Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.5517781Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.5518396Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5520406Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5520927Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5521398Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5523577Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5524170Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5526194Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5526757Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5527107Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5527391Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.5528630Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.5528908Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.5529248Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.5529619Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.5530039Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.5530417Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5531120Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5531836Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5532203Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5532573Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5534063Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5534543Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5534925Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5536506Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5536889Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5537320Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5538795Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5539225Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5540753Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5541244Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5542811Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5543189Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5543680Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5543998Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5544316Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5544774Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5544982Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5545197Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5545396Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5545660Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5546242Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5546441Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5546614Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5546627Z 2023-01-11T21:03:37.5547030Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.5547326Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.5547725Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.5548287Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.5548604Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.5549133Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.5549443Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.5549796Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.5550557Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.5550952Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.5551260Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.5551620Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.5552707Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.5552991Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.5553399Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.5554740Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.5555117Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.5556544Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.5556856Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.5557119Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.5558256Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.5558555Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.5558821Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.5559298Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5559502Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5559707Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5559929Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5560198Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5560807Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5561008Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5561173Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5561181Z 2023-01-11T21:03:37.5564326Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.5564468Z ================== 2023-01-11T21:03:37.5564569Z ================== 2023-01-11T21:03:37.5564870Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.5565181Z  Write of size 8 at 0x7ba40002a758 by thread T2: 2023-01-11T21:03:37.5569293Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.5569818Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5570226Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5570729Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5571265Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5571771Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.5572032Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.5572420Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.5572660Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.5572668Z 2023-01-11T21:03:37.5573010Z  Previous write of size 8 at 0x7ba40002a758 by main thread: 2023-01-11T21:03:37.5577210Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:37.5577678Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.5578088Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.5578577Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.5579177Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.5579516Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.5579887Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.5580288Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:37.5580673Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.5582071Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.5582495Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.5582898Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5583607Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5584312Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5584705Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5585060Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5586531Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5586919Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5587302Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5588815Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5589243Z #20 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5589673Z #21 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5591171Z #22 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5591589Z #23 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5593125Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5593562Z #25 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5595157Z #26 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5595551Z #27 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5596051Z #28 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5596363Z #29 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5596691Z #30 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5597189Z #31 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5597387Z #32 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5597605Z #33 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5597806Z #34 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5598074Z #35 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5598659Z #36 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5598873Z #37 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5599039Z #38 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5599047Z 2023-01-11T21:03:37.5599459Z  Location is heap block of size 20160 at 0x7ba400028000 allocated by main thread: 2023-01-11T21:03:37.5599760Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.5599978Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.5600257Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.5600634Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.5601442Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.5601926Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.5602414Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.5602891Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.5603538Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.5605569Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.5606742Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.5607309Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.5609231Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.5609740Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.5610064Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.5610583Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.5612744Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.5613293Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5615374Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5615887Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5616378Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5618549Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5619195Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5621279Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5621801Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5622157Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5622699Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.5624754Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.5625362Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.5627391Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.5627903Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.5628391Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.5630571Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.5631169Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.5633197Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.5633763Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.5634103Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.5634443Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.5635766Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.5636037Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.5636381Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.5636747Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.5637163Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.5637566Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.5638281Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.5638985Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.5639376Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.5639729Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.5641249Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.5641617Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5641967Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.5643500Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.5643882Z #52 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.5644323Z #53 at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x34fe201) 2023-01-11T21:03:37.5645794Z #54 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::functionalization::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x364a3f4) 2023-01-11T21:03:37.5646245Z #55 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5647772Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::ADInplaceOrView::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x643f908) 2023-01-11T21:03:37.5648246Z #57 at::_ops::index_put_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d80a) 2023-01-11T21:03:37.5649804Z #58 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x51bc2bb) 2023-01-11T21:03:37.5650180Z #59 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.5650661Z #60 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e334b) 2023-01-11T21:03:37.5650982Z #61 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.5651303Z #62 torch::lazy::LazyOpsTest_TestOneIndexPutInPlace_Test::TestBody() (test_lazy+0x2cbc25) 2023-01-11T21:03:37.5651768Z #63 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5651976Z #64 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5652193Z #65 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5652408Z #66 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5652668Z #67 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5653254Z #68 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5653465Z #69 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5653627Z #70 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5653639Z 2023-01-11T21:03:37.5654030Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.5654423Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.5654810Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.5655385Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.5655697Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.5656239Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.5656569Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.5656928Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.5657698Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.5658102Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.5658431Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.5658794Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.5659877Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.5660171Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.5660580Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.5661811Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.5662190Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.5663607Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.5663943Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.5664174Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.5665326Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.5665628Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.5665896Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.5666345Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.5666550Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.5666760Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.5666968Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.5667243Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.5667866Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.5668072Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.5668241Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.5668251Z 2023-01-11T21:03:37.5671401Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:37.5671526Z ================== 2023-01-11T21:03:37.6904553Z [ OK ] LazyOpsTest.TestOneIndexPutInPlace (1003 ms) 2023-01-11T21:03:37.6904762Z [ RUN ] LazyOpsTest.TestOneIndexPutTransfer 2023-01-11T21:03:37.6935371Z ================== 2023-01-11T21:03:37.6935764Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.6936057Z  Write of size 4 at 0x7b940000db58 by thread T2: 2023-01-11T21:03:37.6939752Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.6940534Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.6940955Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.6941427Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.6941979Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.6942450Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.6942686Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.6943138Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.6943382Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.6943392Z 2023-01-11T21:03:37.6943764Z  Previous write of size 4 at 0x7b940000db58 by main thread: 2023-01-11T21:03:37.6947734Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.6948212Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.6948619Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.6949157Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.6949666Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.6949996Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.6950368Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.6950734Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.6951108Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.6952590Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.6952944Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.6953259Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.6954728Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.6955113Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.6955490Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.6956952Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.6957471Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.6958895Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.6959113Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.6959292Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.6959549Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.6959665Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.6959786Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.6959904Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.6960085Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.6960399Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.6960516Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.6960596Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.6960615Z 2023-01-11T21:03:37.6960845Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.6961022Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.6961146Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.6961306Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.6961512Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.6961953Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.6962221Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.6962523Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.6962790Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.6963113Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.6964228Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.6964855Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.6965159Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.6966197Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.6966503Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.6966678Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.6967363Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.6967571Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.6967776Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.6968590Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.6968832Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.6969696Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.6969907Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.6970086Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.6970341Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.6970510Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.6970630Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.6970738Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.6970888Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.6971198Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.6971319Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.6971413Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.6971418Z 2023-01-11T21:03:37.6971636Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.6971802Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.6972023Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.6972367Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.6972545Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.6972839Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.6972991Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.6973185Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.6973596Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.6973816Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.6974002Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.6974186Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.6975070Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.6975239Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.6975464Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.6976126Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.6976398Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.6977194Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.6977376Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.6977523Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.6978197Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.6978449Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.6978692Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.6979011Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.6979131Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.6979251Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.6979373Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.6979564Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.6979973Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.6980096Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.6980222Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.6980228Z 2023-01-11T21:03:37.6983037Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.6983209Z ================== 2023-01-11T21:03:37.6983351Z ================== 2023-01-11T21:03:37.6983646Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.6983932Z  Write of size 4 at 0x7b940000db60 by thread T2: 2023-01-11T21:03:37.6987562Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:37.6987845Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.6988081Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.6988599Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.6989058Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.6989329Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.6989518Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.6989917Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.6990134Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.6990142Z 2023-01-11T21:03:37.6990484Z  Previous write of size 4 at 0x7b940000db60 by main thread: 2023-01-11T21:03:37.6994502Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:37.6995112Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.6995514Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.6996006Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.6996517Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.6996857Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.6997231Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.6997648Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.6998044Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.6999509Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.6999915Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7000271Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7001195Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7001399Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7001607Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7002448Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7002692Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7003561Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7003776Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7003998Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7004252Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7004369Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7004490Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7004613Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7004746Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7005084Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7005205Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7005298Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7005305Z 2023-01-11T21:03:37.7005537Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7005707Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7005831Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7005991Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7006196Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7006683Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7006951Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7007215Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7007482Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7007805Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7008882Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7009528Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7009857Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7010907Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7011200Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7011376Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7012059Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7012237Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7012443Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7013258Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7013547Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7014506Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7014734Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7014964Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7015206Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7015323Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7015440Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7015559Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7015706Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7016017Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7016137Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7016231Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7016240Z 2023-01-11T21:03:37.7016462Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.7016630Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7016849Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7017168Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7017329Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7017625Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7017782Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7017973Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7018382Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7018640Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7018826Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7019021Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7019579Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7019744Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7019993Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7020659Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7020882Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7021852Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7022135Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7022364Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7023361Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7023610Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7023856Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7024353Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7024544Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7024725Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7024896Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7025119Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7025608Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7025798Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7025953Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7025965Z 2023-01-11T21:03:37.7029055Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7029192Z ================== 2023-01-11T21:03:37.7029358Z ================== 2023-01-11T21:03:37.7029671Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7029966Z  Write of size 4 at 0x7b940000db58 by thread T1: 2023-01-11T21:03:37.7033859Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7034366Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7034874Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7035382Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7035899Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7036368Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7036600Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7037026Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7037281Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7037341Z 2023-01-11T21:03:37.7037706Z  Previous write of size 4 at 0x7b940000db58 by main thread: 2023-01-11T21:03:37.7041177Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7041685Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7042084Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7042605Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7043134Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7043484Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7043857Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7044324Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7044725Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7046090Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7046349Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7046552Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7047343Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7047547Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7047750Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7048575Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7048817Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7049677Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7049917Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7050100Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7050358Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7050498Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7050622Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7050741Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7050889Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7051199Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7051353Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7051450Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7051456Z 2023-01-11T21:03:37.7051692Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7051846Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7051973Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7052134Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7052337Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7052778Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7053049Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7053311Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7053574Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7053898Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7055176Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7055803Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7056106Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7057146Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7057425Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7057603Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7058286Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7058519Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7058725Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7059561Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7059820Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7060677Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7060892Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7061072Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7061331Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7061449Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7061570Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7061691Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7061826Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7062135Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7062255Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7062379Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7062385Z 2023-01-11T21:03:37.7062653Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.7062912Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7063240Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7063707Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7063979Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7064442Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7064681Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7065033Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7065729Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7066110Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7066453Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7066794Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7067825Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7068098Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7068464Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7069670Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7069954Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7071027Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7071343Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7071569Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7072628Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7072883Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7073123Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7073523Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7073713Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7073895Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7074090Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7074328Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7074902Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7075087Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7075236Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7075248Z 2023-01-11T21:03:37.7078298Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7078426Z ================== 2023-01-11T21:03:37.7078614Z ================== 2023-01-11T21:03:37.7078927Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7079227Z  Write of size 4 at 0x7b940000db58 by thread T3: 2023-01-11T21:03:37.7083353Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7083885Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7084281Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7084789Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7085320Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7085617Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7085759Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7085984Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7086120Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7086125Z 2023-01-11T21:03:37.7086319Z  Previous write of size 4 at 0x7b940000db58 by main thread: 2023-01-11T21:03:37.7088474Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7088769Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7088991Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7089272Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7089587Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7089778Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7089980Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7090205Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7090414Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7091195Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7091421Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7091620Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7092408Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7092641Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7092846Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7093653Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7093919Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7095000Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7095212Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7095392Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7095649Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7095764Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7095872Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7095992Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7096139Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7096452Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7096572Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7096665Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7096670Z 2023-01-11T21:03:37.7096897Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7097063Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7097189Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7097393Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7097598Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7098056Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7098321Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7098584Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7098887Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7099212Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7100279Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7100912Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7101213Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7102237Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7102591Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7102768Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7103463Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7103641Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7103846Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7104657Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7104901Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7105755Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7105989Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7106171Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7106426Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7106541Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7106660Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7106781Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7106928Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7107262Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7107381Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7107474Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7107479Z 2023-01-11T21:03:37.7107677Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.7107844Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7108062Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7108454Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7108656Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7109117Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7109359Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7109667Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7110391Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7110756Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7111092Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7111407Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7112457Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7112818Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7113247Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7114448Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7114914Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7116310Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7116620Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7116870Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7118012Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7118293Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7118563Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7119008Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7119195Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7119331Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7119506Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7119772Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7120112Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7120276Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7120387Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7120396Z 2023-01-11T21:03:37.7123202Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7123320Z ================== 2023-01-11T21:03:37.7123406Z ================== 2023-01-11T21:03:37.7123655Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7123867Z  Write of size 4 at 0x7b940000db64 by thread T3: 2023-01-11T21:03:37.7126370Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.7126872Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7127222Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7127507Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7127838Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7128171Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7128350Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7128564Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7128703Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7128709Z 2023-01-11T21:03:37.7128902Z  Previous write of size 4 at 0x7b940000db64 by main thread: 2023-01-11T21:03:37.7131168Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.7131431Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7131652Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7131932Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7132219Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7132410Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7132610Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7132838Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7133049Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7133837Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7134082Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7134279Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7135314Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7135524Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7135730Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7136560Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7136800Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7137661Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7137915Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7138098Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7138351Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7138466Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7138584Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7138705Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7138850Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7139159Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7139267Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7139387Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7139394Z 2023-01-11T21:03:37.7139625Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7139794Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7139916Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7140075Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7140284Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7140730Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7140998Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7141262Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7141525Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7141855Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7142924Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7143597Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7143926Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7144968Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7145239Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7145414Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7146106Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7146284Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7146490Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7147340Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7147580Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7148506Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7148831Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7149095Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7149487Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7149638Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7149747Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7149919Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7150110Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7150566Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7150740Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7150885Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7150899Z 2023-01-11T21:03:37.7151256Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.7151535Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7151892Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7152386Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7152767Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7153226Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7153473Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7153786Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7154519Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7155007Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7155338Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7155734Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7156659Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7156955Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7157322Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7158353Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7158709Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7160046Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7160339Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7160680Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7161712Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7161966Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7162212Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7162645Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7162831Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7162983Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7163236Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7163487Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7163897Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7164074Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7164229Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7164236Z 2023-01-11T21:03:37.7167077Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7167214Z ================== 2023-01-11T21:03:37.7167404Z ================== 2023-01-11T21:03:37.7167724Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7168026Z  Write of size 4 at 0x7b940000db64 by thread T1: 2023-01-11T21:03:37.7171801Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.7172122Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7172346Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7172628Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7172946Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7173213Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7173354Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7173580Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7173716Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7173723Z 2023-01-11T21:03:37.7173915Z  Previous write of size 4 at 0x7b940000db64 by main thread: 2023-01-11T21:03:37.7176149Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.7176408Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7176683Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7176965Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7177251Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7177443Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7177644Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7177876Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7178123Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7178909Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7179125Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7179326Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7180123Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7180327Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7180531Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7181336Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7181607Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7182483Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7182695Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7182873Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7183128Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7183244Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7183369Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7183489Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7183639Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7183951Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7184071Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7184163Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7184169Z 2023-01-11T21:03:37.7184393Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7184545Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7184666Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7184829Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7185030Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7185470Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7185776Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7186040Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7186301Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7186623Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7187730Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7188354Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7188655Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7189713Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7190188Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7190478Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7191756Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7192072Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7192446Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7193988Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7194382Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7195889Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7196263Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7196596Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7197059Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7197231Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7197409Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7197601Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7197814Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7198317Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7198480Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7198602Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7198611Z 2023-01-11T21:03:37.7198962Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.7199234Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7199576Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7200043Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7200309Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7200764Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7201014Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7201356Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7202098Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7202380Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7202665Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7202964Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7203764Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7203945Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7204279Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7205273Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7205717Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7206925Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7207233Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7207426Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7208233Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7208476Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7208640Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7208985Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7209121Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7209296Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7209476Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7209625Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7210050Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7210184Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7210319Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7210327Z 2023-01-11T21:03:37.7212829Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7213010Z ================== 2023-01-11T21:03:37.7213076Z ================== 2023-01-11T21:03:37.7213311Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7213575Z  Write of size 4 at 0x7b940000db64 by thread T2: 2023-01-11T21:03:37.7216927Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.7217365Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7217727Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7218161Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7218602Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7219000Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7219211Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7219515Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7219707Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7219715Z 2023-01-11T21:03:37.7220011Z  Previous write of size 4 at 0x7b940000db64 by main thread: 2023-01-11T21:03:37.7223219Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.7223670Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7224001Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7224409Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7224850Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7225147Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7225460Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7225786Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7226095Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7227246Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7227555Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7227909Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7229036Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7229321Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7229644Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7230839Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7231191Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7232731Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7233095Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7233398Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7233830Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7234025Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7234227Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7234489Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7234799Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7235359Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7235544Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7235699Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7235711Z 2023-01-11T21:03:37.7236114Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7236401Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7236607Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7236885Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7237234Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7238054Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7238506Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7238956Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7239413Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7239962Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7241797Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7242913Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7243477Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7245313Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7245777Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7246079Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7247234Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7247540Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7247883Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7249279Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7249727Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7251199Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7251596Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7251901Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7252344Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7252531Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7252723Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7252923Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7253188Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7253760Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7253968Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7254118Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7254128Z 2023-01-11T21:03:37.7254589Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.7254776Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7255001Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7255318Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7255500Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7255796Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7255947Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7256137Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7256541Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7256841Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7257014Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7257208Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7257849Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7258012Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7258277Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7258941Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7259152Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7259926Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7260103Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7260246Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7260856Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7261001Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7261180Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7261435Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7261536Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7261656Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7261777Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7261923Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7262233Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7262355Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7262447Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7262453Z 2023-01-11T21:03:37.7264145Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7264220Z ================== 2023-01-11T21:03:37.7264285Z ================== 2023-01-11T21:03:37.7264457Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7264635Z  Write of size 4 at 0x7b940000db68 by thread T3: 2023-01-11T21:03:37.7266784Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.7267043Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7267293Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7267574Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7267863Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7268129Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7268270Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7268517Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7268655Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7268660Z 2023-01-11T21:03:37.7268848Z  Previous write of size 4 at 0x7b940000db68 by main thread: 2023-01-11T21:03:37.7270984Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.7271240Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7271458Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7271735Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7272023Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7272212Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7272441Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7272667Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7272875Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7273959Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7274202Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7274456Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7275904Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7276253Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7276601Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7277930Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7278321Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7279899Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7280244Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7280550Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7281020Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7281210Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7281378Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7281561Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7281808Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7282337Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7282537Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7282684Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7282692Z 2023-01-11T21:03:37.7283079Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7283350Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7283541Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7283765Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7284043Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7284725Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7285133Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7285541Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7286007Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7286570Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7288376Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7289351Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7289730Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7291095Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7291464Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7291753Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7292717Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7292984Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7293317Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7294282Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7294632Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7295488Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7295798Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7296090Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7296476Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7296677Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7296894Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7297106Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7297374Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7297956Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7298255Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7298357Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7298365Z 2023-01-11T21:03:37.7298605Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.7298777Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7298989Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7299304Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7299477Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7299774Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7299976Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7300171Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7300583Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7300801Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7300987Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7301183Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7301743Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7301906Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7302132Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7302797Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7303009Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7303784Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7303992Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7304133Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7304770Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7304917Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7305066Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7305319Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7305434Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7305540Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7305658Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7305805Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7306114Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7306230Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7306322Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7306328Z 2023-01-11T21:03:37.7307995Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7308067Z ================== 2023-01-11T21:03:37.7308199Z ================== 2023-01-11T21:03:37.7308365Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7308573Z  Write of size 4 at 0x7b940000db68 by thread T1: 2023-01-11T21:03:37.7310753Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.7311029Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7311250Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7311528Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7311820Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7312085Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7312224Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7312432Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7312570Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7312575Z 2023-01-11T21:03:37.7312760Z  Previous write of size 4 at 0x7b940000db68 by main thread: 2023-01-11T21:03:37.7315077Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.7315481Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7315785Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7316210Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7316785Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7317112Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7317492Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7317896Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7318283Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7319528Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7319875Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7320213Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7321546Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7322005Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7322340Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7323796Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7324211Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7325722Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7326109Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7326436Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7326915Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7327124Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7327340Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7327561Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7327813Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7328343Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7328533Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7328702Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7328715Z 2023-01-11T21:03:37.7329156Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7329520Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7329745Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7330038Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7330418Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7331215Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7331708Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7332245Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7332740Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7333320Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7335382Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7336437Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7336931Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7338355Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7338683Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7338867Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7339557Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7339741Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7339947Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7340759Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7341015Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7341866Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7342110Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7342289Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7342543Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7342660Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7342780Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7342901Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7343063Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7343376Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7343493Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7343585Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7343592Z 2023-01-11T21:03:37.7343820Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.7343986Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7344203Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7344518Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7344689Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7344985Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7345137Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7345330Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7345738Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7345958Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7346142Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7346338Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7346900Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7347094Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7347316Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7348007Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7348220Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7348991Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7349167Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7349311Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7349918Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7350063Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7350212Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7350479Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7350590Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7350707Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7350824Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7350968Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7351308Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7351424Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7351516Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7351522Z 2023-01-11T21:03:37.7353203Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7353278Z ================== 2023-01-11T21:03:37.7353393Z ================== 2023-01-11T21:03:37.7353561Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7353734Z  Write of size 4 at 0x7b940000db68 by thread T2: 2023-01-11T21:03:37.7356309Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.7356717Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7357028Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7357469Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7357943Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7358457Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7358696Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7359080Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7359295Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7359305Z 2023-01-11T21:03:37.7359616Z  Previous write of size 4 at 0x7b940000db68 by main thread: 2023-01-11T21:03:37.7363314Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.7363693Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7364050Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7364460Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7364836Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7365145Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7365467Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7365829Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7366177Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7367466Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7367906Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7368245Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7369594Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7369976Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7370360Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7371824Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7372258Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7373827Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7374250Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7374655Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7375124Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7375330Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7375542Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7375719Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7375995Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7376566Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7376863Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7377034Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7377044Z 2023-01-11T21:03:37.7377477Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7377784Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7378010Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7378298Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7378650Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7379134Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7379402Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7379661Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7379925Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7380246Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7381316Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7382023Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7382325Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7383351Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7383637Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7383801Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7384496Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7384672Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7384910Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7385719Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7385959Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7386840Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7387067Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7387234Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7387485Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7387603Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7387720Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7387840Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7387985Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7388296Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7388415Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7388506Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7388512Z 2023-01-11T21:03:37.7388730Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.7388884Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7389102Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7389412Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7389616Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7389912Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7390064Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7390252Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7390657Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7390876Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7391098Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7391293Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7391853Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7392019Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7392243Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7392906Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7393117Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7393889Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7394104Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7394245Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7394930Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7395077Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7395228Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7395484Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7395598Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7395735Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7395854Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7395998Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7396310Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7396427Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7396518Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7396526Z 2023-01-11T21:03:37.7398184Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7398258Z ================== 2023-01-11T21:03:37.7398379Z ================== 2023-01-11T21:03:37.7398545Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7398721Z  Write of size 4 at 0x7b940000db6c by thread T3: 2023-01-11T21:03:37.7400862Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.7401176Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7401400Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7401706Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7401993Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7402257Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7402386Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7402609Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7402745Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7402751Z 2023-01-11T21:03:37.7402939Z  Previous write of size 4 at 0x7b940000db6c by main thread: 2023-01-11T21:03:37.7405089Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.7405358Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7405626Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7405906Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7406194Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7406383Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7406582Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7406810Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7407048Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7407831Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7408044Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7408243Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7409023Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7409227Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7409430Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7410249Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7410521Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7411397Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7411607Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7411789Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7412040Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7412156Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7412274Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7412392Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7412540Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7412848Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7412953Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7413047Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7413052Z 2023-01-11T21:03:37.7413275Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7413439Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7413564Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7413726Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7413931Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7414508Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7414826Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7415091Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7415356Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7415684Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7416792Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7417432Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7417738Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7418787Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7419089Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7419267Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7419980Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7420160Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7420367Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7421181Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7421423Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7422291Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7422501Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7422679Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7422964Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7423081Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7423186Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7423308Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7423456Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7423766Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7423884Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7423979Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7423986Z 2023-01-11T21:03:37.7424199Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.7424365Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7424611Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7424926Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7425104Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7425396Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7425554Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7425734Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7426138Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7426361Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7426545Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7426742Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7427305Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7427470Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7427696Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7428410Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7428618Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7429411Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7429590Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7429730Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7430342Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7430487Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7430637Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7430889Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7431000Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7431117Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7431239Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7431373Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7431685Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7431802Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7431891Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7431897Z 2023-01-11T21:03:37.7433550Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7433654Z ================== 2023-01-11T21:03:37.7441836Z ================== 2023-01-11T21:03:37.7442659Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7442957Z  Write of size 4 at 0x7b940000db6c by thread T1: 2023-01-11T21:03:37.7446812Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.7447296Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7447662Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7448157Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7448637Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7449133Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7449389Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7449768Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7449984Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7449994Z 2023-01-11T21:03:37.7450437Z  Previous write of size 4 at 0x7b940000db6c by main thread: 2023-01-11T21:03:37.7454276Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.7454858Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7455218Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7455729Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7456271Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7456626Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7456941Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7457313Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7457649Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7474217Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7474524Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7474934Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7475726Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7475936Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7476189Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7477006Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7477249Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7478122Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7478334Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7478563Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7478824Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7478939Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7479092Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7479212Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7479348Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7479661Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7479782Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7479876Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7479883Z 2023-01-11T21:03:37.7480147Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7480314Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7480440Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7480605Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7480906Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7481693Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7482153Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7482599Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7483037Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7483570Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7485332Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7486358Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7486962Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7488650Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7489187Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7489511Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7490744Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7491053Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7491402Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7492767Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7493196Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7494887Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7495241Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7495504Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7495784Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7495944Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7496139Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7496270Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7496440Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7496913Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7497101Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7497250Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7497262Z 2023-01-11T21:03:37.7497601Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.7497777Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7498102Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7498581Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7498861Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7499325Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7499551Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7499795Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7500464Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7500809Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7501085Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7501349Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7502252Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7502568Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7502901Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7503827Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7504077Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7504987Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7505171Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7505315Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7505931Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7506128Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7506279Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7506533Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7506648Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7506771Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7506877Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7507024Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7507333Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7507454Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7507546Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7507553Z 2023-01-11T21:03:37.7509265Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7509342Z ================== 2023-01-11T21:03:37.7509724Z ================== 2023-01-11T21:03:37.7510916Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7511107Z  Write of size 4 at 0x7b940000db6c by thread T2: 2023-01-11T21:03:37.7513265Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.7513589Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7513816Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7514096Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7514386Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7514729Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7514861Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7562212Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7562458Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7562467Z 2023-01-11T21:03:37.7562764Z  Previous write of size 4 at 0x7b940000db6c by main thread: 2023-01-11T21:03:37.7569183Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.7569465Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7569728Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7570014Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7570301Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7570583Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7570790Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7571017Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7571230Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7572045Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.7572262Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.7572465Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7573267Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7573474Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7573680Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7574703Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7574961Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7575868Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7576083Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7576304Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7576562Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7576678Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7576801Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7576924Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7577075Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7577387Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7577508Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7577606Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7577614Z 2023-01-11T21:03:37.7577859Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:37.7578015Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7578140Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7578301Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7578507Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7578957Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7579229Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7579499Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7579763Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7580124Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7581229Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7581858Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7582163Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7583196Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7583471Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7583678Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.7584360Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.7584539Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.7584745Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.7585603Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.7585848Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.7586705Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7586918Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7587103Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.7587357Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7587474Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7587594Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7587715Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7587862Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7588179Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7588332Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7588427Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7588435Z 2023-01-11T21:03:37.7588655Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.7588822Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7589045Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7589368Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7589547Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7589886Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7590046Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7590240Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7590658Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7590888Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7591081Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7591285Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7591847Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7592011Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7592244Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7592913Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7593123Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7593929Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7594115Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7594282Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7595035Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7595202Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7595368Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7595627Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7595746Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7595868Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7595992Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7596141Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7596454Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7596572Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7596665Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7596671Z 2023-01-11T21:03:37.7598341Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7598416Z ================== 2023-01-11T21:03:37.7669045Z ================== 2023-01-11T21:03:37.7669885Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7670187Z  Write of size 4 at 0x7b9400030b58 by thread T2: 2023-01-11T21:03:37.7697499Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7697832Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7698061Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7698349Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7698638Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7698909Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7699052Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7699278Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7699421Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7699428Z 2023-01-11T21:03:37.7699649Z  Previous write of size 4 at 0x7b9400030b58 by main thread: 2023-01-11T21:03:37.7701812Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7702129Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7702355Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7702663Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7702955Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7703226Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7703426Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7703656Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7703870Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7704581Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.7704819Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.7705038Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7705422Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7705807Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7706051Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7706251Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7707065Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7707274Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7707479Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7708236Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7708460Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.7708885Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.7709271Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.7709507Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.7710358Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7710595Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7710865Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.7711042Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.7711223Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.7711502Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7711620Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7711739Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7711859Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7712007Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7712316Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7712436Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7712516Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7712536Z 2023-01-11T21:03:37.7712751Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.7712918Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7713044Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7713203Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7713408Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7713848Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7714119Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7714382Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7714726Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7715052Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7716201Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7716829Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7717132Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7718167Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7718437Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7718624Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.7718922Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.7720085Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.7720410Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.7721473Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.7721750Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.7722023Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.7723194Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.7723544Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.7724689Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.7724982Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.7725173Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.7725468Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.7726798Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.7727305Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.7728705Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.7729074Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.7729450Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.7730948Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.7731391Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.7732811Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.7733159Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.7733472Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.7733668Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.7734628Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.7734836Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.7735146Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.7735452Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.7735818Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.7736083Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7736623Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7737159Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7737391Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7737704Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7738831Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7739246Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7739508Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7740503Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7740734Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.7741291Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.7741770Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.7742131Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.7743312Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7743575Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7744033Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.7744293Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.7744573Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.7744903Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7745073Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7745271Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7745408Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7745586Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7745969Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7746146Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7746260Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7746270Z 2023-01-11T21:03:37.7746610Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.7746854Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7747194Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7747665Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7747938Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7748399Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7748657Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7748974Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7749552Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7749897Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7750125Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7750401Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7751101Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7751422Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7751803Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7752803Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7753106Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7754054Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7754240Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7754383Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7755091Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7755240Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7755393Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7755647Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7755764Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7755882Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7756003Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7756151Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7756464Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7756583Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7756713Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7756720Z 2023-01-11T21:03:37.7758407Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7758481Z ================== 2023-01-11T21:03:37.7758780Z ================== 2023-01-11T21:03:37.7759406Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7759805Z  Write of size 4 at 0x7b9400030b58 by thread T3: 2023-01-11T21:03:37.7763446Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7763956Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7764378Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7764908Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7765243Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7765513Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7765707Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7765931Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7766071Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7766078Z 2023-01-11T21:03:37.7766333Z  Previous write of size 4 at 0x7b9400030b58 by main thread: 2023-01-11T21:03:37.7768500Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7768760Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7768989Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7769270Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7769561Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7769753Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7769956Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7770186Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7770399Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7771127Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.7771408Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.7771627Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7772012Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7772425Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7772638Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7772840Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7773623Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7773830Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7774034Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7774923Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7775149Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.7775578Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.7776041Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.7776278Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.7777159Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7777372Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7777643Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.7777822Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.7778006Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.7778262Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7778377Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7778499Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7778606Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7778756Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7779070Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7779189Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7779284Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7779291Z 2023-01-11T21:03:37.7779524Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.7779692Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7779819Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7779980Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7780187Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7780673Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7780942Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7781205Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7781468Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7781823Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7782894Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7783533Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7783833Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7784857Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7785171Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7785345Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.7785643Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.7786788Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.7787102Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.7788733Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.7789231Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.7789648Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.7791451Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.7792047Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.7793945Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.7794503Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.7794902Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.7795454Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.7797351Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.7797796Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.7799422Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.7799830Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.7800230Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.7801663Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.7802194Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.7803694Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.7804081Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.7804345Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.7804568Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.7805708Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.7805979Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.7806328Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.7806641Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.7807050Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.7807449Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7808168Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7808675Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7808991Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7809287Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7810510Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7810831Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7811168Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7812408Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7812798Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.7813524Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.7814207Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.7814765Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.7816528Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7816760Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7817163Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.7817407Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.7817693Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.7818169Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7818384Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7818527Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7818678Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7818903Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7819341Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7819498Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7819637Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7819647Z 2023-01-11T21:03:37.7820054Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.7820355Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7820627Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7821070Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7821310Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7821737Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7821947Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7822219Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7822890Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7823194Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7823452Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7823750Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7824602Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7824864Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7825185Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7826152Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7826483Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7827613Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7827885Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7828097Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7828993Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7829266Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7829479Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7829871Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7830020Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7830195Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7830370Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7830576Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7831040Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7831192Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7831320Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7831330Z 2023-01-11T21:03:37.7833892Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7834035Z ================== 2023-01-11T21:03:37.7834239Z ================== 2023-01-11T21:03:37.7834516Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7834858Z  Write of size 4 at 0x7b9400030b58 by thread T1: 2023-01-11T21:03:37.7838121Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7838576Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7838901Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7839308Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7839735Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7840142Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7840358Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7840718Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7840924Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7840933Z 2023-01-11T21:03:37.7841234Z  Previous write of size 4 at 0x7b9400030b58 by main thread: 2023-01-11T21:03:37.7844394Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:37.7844795Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7845109Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7845523Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7845957Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7846302Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7846601Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7846935Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7847234Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7848320Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.7848685Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.7849016Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7849702Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7850420Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7850776Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7851099Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7852462Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7852811Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7853219Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7854586Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7854976Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.7855800Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.7856464Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.7856880Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.7858386Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7858740Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7859207Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.7859505Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.7859803Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.7860224Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7860415Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7860597Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7860871Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7861115Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7861648Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7861868Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7862032Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7862043Z 2023-01-11T21:03:37.7862442Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.7862741Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7862948Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7863223Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7863591Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7864401Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7864878Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7865343Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7865798Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7866372Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7868247Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7869347Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7869900Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7871724Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7872226Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7872518Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.7872975Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.7875003Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.7875532Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.7877447Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.7877973Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.7878438Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.7880452Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.7881056Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.7883057Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.7883508Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.7883693Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.7883994Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.7885152Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.7885465Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.7886540Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.7886818Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.7887114Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.7888303Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.7888645Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.7889737Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.7890035Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.7890236Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.7890387Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.7891083Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.7891274Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.7891458Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.7891662Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.7891897Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.7892119Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7892542Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7892942Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7893174Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7893363Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7894165Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7894483Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7894699Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7895442Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7895729Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.7896164Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.7896553Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.7896836Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.7897708Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7897927Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7898205Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.7898383Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.7898563Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.7898822Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7898927Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7899047Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7899169Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7899317Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7899628Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7899750Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7899846Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7899853Z 2023-01-11T21:03:37.7900107Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.7900314Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7900536Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7900859Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7901034Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7901328Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7901474Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7901668Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7902113Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7902337Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7902524Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7902719Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7903285Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7903456Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7903680Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7904366Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7904581Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7905348Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7905561Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7905707Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7906316Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7906495Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7906647Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7906900Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7907016Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7907136Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7907256Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7907393Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7907707Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7907826Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7907920Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7907926Z 2023-01-11T21:03:37.7909586Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7909661Z ================== 2023-01-11T21:03:37.7909819Z ================== 2023-01-11T21:03:37.7909987Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7910164Z  Write of size 4 at 0x7b9400030b60 by thread T2: 2023-01-11T21:03:37.7912567Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:37.7913039Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7913400Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7913712Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7914003Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7914296Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7914519Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7914853Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7915059Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7915067Z 2023-01-11T21:03:37.7915377Z  Previous write of size 4 at 0x7b9400030b60 by main thread: 2023-01-11T21:03:37.7918443Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:37.7918803Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7919027Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7919365Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7919832Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7920153Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7920453Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7920773Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7921055Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7922274Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.7922706Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.7922965Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7923484Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7924003Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7924323Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7924656Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7925765Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7926136Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7926551Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7927484Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7927714Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.7928208Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.7928615Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.7928963Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.7930232Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7930589Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7930975Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.7931221Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.7931494Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.7931897Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7932075Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7932256Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7932447Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7932696Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7933106Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7933227Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7933321Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7933328Z 2023-01-11T21:03:37.7933582Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.7933840Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.7934026Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.7934228Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.7934650Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.7935383Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.7935851Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.7936279Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.7936730Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.7937279Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.7939206Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.7940530Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.7941104Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.7943012Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.7943559Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.7943759Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.7944031Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.7945187Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.7945566Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.7946645Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.7946919Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.7947190Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.7948355Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.7948716Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.7949835Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.7950125Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.7950324Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.7950624Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.7951735Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.7952045Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.7953115Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.7953444Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.7953714Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.7954947Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.7955282Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.7956372Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.7956694Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.7956887Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.7957035Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.7957751Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.7957911Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.7958093Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.7958295Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.7958532Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.7958755Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7959136Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7959522Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7959736Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7959938Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7960734Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7960972Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7961178Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7961942Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7962168Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.7962594Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.7962981Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.7963224Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.7964096Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.7964307Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.7964585Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.7964758Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.7964997Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.7965253Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7965355Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7965472Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7965592Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7965737Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7966051Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7966170Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7966267Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7966274Z 2023-01-11T21:03:37.7966513Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.7966711Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.7966932Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.7967247Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.7967420Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.7967714Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.7967860Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.7968054Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.7968462Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.7968682Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.7968867Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.7969065Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.7969628Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.7969794Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.7970020Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.7970714Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.7970938Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.7971731Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.7971912Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.7972056Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.7972819Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.7973000Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.7973214Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.7973598Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.7973779Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.7973967Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.7974144Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.7974487Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.7975001Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.7975201Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.7975344Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.7975354Z 2023-01-11T21:03:37.7978018Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.7978248Z ================== 2023-01-11T21:03:37.7978473Z ================== 2023-01-11T21:03:37.7978747Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.7978952Z  Write of size 4 at 0x7b9400030b60 by thread T3: 2023-01-11T21:03:37.7982658Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:37.7983075Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7983380Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7983812Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7984196Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7984599Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.7984816Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.7985172Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.7985387Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.7985457Z 2023-01-11T21:03:37.7985785Z  Previous write of size 4 at 0x7b9400030b60 by main thread: 2023-01-11T21:03:37.7989353Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:37.7989769Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.7990118Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.7990561Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.7990889Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.7991148Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.7991370Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.7991666Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.7992008Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.7993146Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.7993513Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.7993958Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.7994632Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.7995256Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.7995601Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.7995945Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.7997229Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.7997554Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.7997873Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.7999099Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.7999478Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8000203Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8000838Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8001303Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8002763Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8003081Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8003544Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8003856Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8004184Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8004629Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8004798Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8004950Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8005123Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8005337Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8005831Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8006006Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8006139Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8006152Z 2023-01-11T21:03:37.8006517Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8006765Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8006937Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8007151Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8007461Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8008091Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8008547Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8008934Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8009323Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8009775Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8011378Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8012295Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8012766Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8014319Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8014965Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8015234Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8015626Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8017342Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8017808Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8019377Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8019810Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8020292Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8022137Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8022647Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8024248Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8024674Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8024957Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8025401Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8027019Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8027520Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8029056Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8029450Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8029841Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8031551Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8032088Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8033661Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8034076Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8034365Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8034685Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8035816Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8036090Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8036432Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8036771Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8037177Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8037553Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8038194Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8038859Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8039280Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8039611Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8041018Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8041372Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8041718Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8043012Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8043400Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8044126Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8044779Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8045182Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8046649Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8047047Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8047502Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8047815Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8048171Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8048626Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8048822Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8049006Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8049209Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8049467Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8050010Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8050215Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8050367Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8050382Z 2023-01-11T21:03:37.8050786Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.8051080Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8051452Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8052002Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8052295Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8052798Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8053054Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8053389Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8054124Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8054600Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8054996Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8055332Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8056305Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8056583Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8056970Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8058163Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8058516Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8059818Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8060114Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8060360Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8061401Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8061647Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8061895Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8062325Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8062577Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8062777Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8062988Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8063239Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8063779Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8063990Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8064129Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8064153Z 2023-01-11T21:03:37.8067144Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8067270Z ================== 2023-01-11T21:03:37.8067386Z ================== 2023-01-11T21:03:37.8067688Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8067981Z  Write of size 4 at 0x7b9400030b60 by thread T1: 2023-01-11T21:03:37.8070999Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:37.8071271Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8071496Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8071834Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8072127Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8072393Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8072534Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8072758Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8072895Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8072902Z 2023-01-11T21:03:37.8073146Z  Previous write of size 4 at 0x7b9400030b60 by main thread: 2023-01-11T21:03:37.8075385Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:37.8075645Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8075868Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8076149Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8076432Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8076623Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8076823Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8077084Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8077298Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8078014Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8078252Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8078495Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8079016Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8079402Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8079619Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8079818Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8080618Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8080825Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8081029Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8081775Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8082029Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8082454Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8082866Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8083106Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8083959Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8084183Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8084453Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8084629Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8084794Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8085051Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8085165Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8085284Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8085401Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8085548Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8085859Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8086006Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8086098Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8086104Z 2023-01-11T21:03:37.8086331Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8086495Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8086606Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8086765Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8086970Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8087410Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8087710Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8087976Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8088243Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8088567Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8089645Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8090266Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8090597Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8091653Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8091925Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8092109Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8092378Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8093524Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8093831Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8094992Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8095337Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8095639Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8096853Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8097287Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8099189Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8099771Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8099974Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8100277Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8102001Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8102497Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8104025Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8104448Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8104829Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8106743Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8107341Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8109236Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8109681Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8109997Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8110231Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8111386Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8111704Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8112004Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8112212Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8112534Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8112806Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8113310Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8113902Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8114168Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8114371Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8115298Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8115540Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8115761Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8116770Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8117161Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8117938Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8118329Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8118571Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8119758Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8120146Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8120601Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8120912Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8121240Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8121674Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8121871Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8122097Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8122300Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8122532Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8123090Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8123275Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8123441Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8123453Z 2023-01-11T21:03:37.8123885Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.8124193Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8124587Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8125144Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8125522Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8126053Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8126327Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8126661Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8127450Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8127858Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8128231Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8128537Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8129111Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8129274Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8129484Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8130157Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8130366Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8131131Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8131341Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8131481Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8132091Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8132238Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8132388Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8132637Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8132777Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8132896Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8133013Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8133160Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8133467Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8133572Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8133665Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8133672Z 2023-01-11T21:03:37.8135445Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8135529Z ================== 2023-01-11T21:03:37.8135582Z ================== 2023-01-11T21:03:37.8135751Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8135925Z  Write of size 4 at 0x7b9400030b64 by thread T2: 2023-01-11T21:03:37.8138064Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.8138394Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8138617Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8138930Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8139217Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8139484Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8139628Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8139836Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8139973Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8139979Z 2023-01-11T21:03:37.8140168Z  Previous write of size 4 at 0x7b9400030b64 by main thread: 2023-01-11T21:03:37.8142319Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.8142575Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8142836Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8143114Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8143403Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8143591Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8143792Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8144051Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8144263Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8144978Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8145217Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8145434Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8145815Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8146200Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8146413Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8146611Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8147390Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8147623Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8147827Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8148609Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8148835Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8149259Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8149649Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8149885Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8150734Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8150942Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8151211Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8151410Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8151589Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8151841Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8151954Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8152071Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8152188Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8152333Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8152643Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8152792Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8152873Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8152878Z 2023-01-11T21:03:37.8153099Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8153263Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8153385Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8153542Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8153743Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8154185Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8154454Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8154794Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8155058Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8155380Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8156883Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8158098Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8158627Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8160529Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8160990Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8161347Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8161825Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8163892Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8164522Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8166414Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8166927Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8167429Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8169179Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8169619Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8171275Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8171695Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8172006Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8172392Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8174063Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8174687Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8176266Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8176733Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8177037Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8178930Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8179432Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8181254Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8181847Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8182167Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8182427Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8183597Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8183842Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8184165Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8184473Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8184861Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8185295Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8185992Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8186704Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8187091Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8187344Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8188387Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8188665Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8188995Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8190018Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8190336Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8190989Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8191550Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8191906Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8193138Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8193474Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8193893Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8194151Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8194416Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8194890Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8195065Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8195302Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8195472Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8195688Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8196129Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8196298Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8196436Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8196458Z 2023-01-11T21:03:37.8196811Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.8197066Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8197380Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8197890Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8198145Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8198580Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8198807Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8199081Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8199681Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8200022Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8200313Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8200624Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8201505Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8201748Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8202084Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8203096Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8203479Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8204604Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8204918Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8205127Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8206039Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8206255Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8206469Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8206836Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8206999Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8207174Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8207355Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8207571Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8208020Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8208198Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8208321Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8208333Z 2023-01-11T21:03:37.8210833Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8210985Z ================== 2023-01-11T21:03:37.8211287Z ================== 2023-01-11T21:03:37.8211532Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8211797Z  Write of size 4 at 0x7b9400030b64 by thread T3: 2023-01-11T21:03:37.8215126Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.8215529Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8215923Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8216419Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8216924Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8217375Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8217620Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8217992Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8218216Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8218224Z 2023-01-11T21:03:37.8218548Z  Previous write of size 4 at 0x7b9400030b64 by main thread: 2023-01-11T21:03:37.8222312Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.8222865Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8223253Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8223718Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8224212Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8224536Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8224873Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8225251Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8225608Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8226827Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8227221Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8227587Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8228236Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8228951Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8229309Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8229647Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8231060Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8231403Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8231764Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8233071Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8233450Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8234196Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8234924Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8235336Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8236870Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8237222Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8237728Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8238022Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8238329Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8238771Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8238962Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8239146Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8239350Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8239599Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8240123Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8240321Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8240477Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8240486Z 2023-01-11T21:03:37.8240876Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8241165Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8241367Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8241634Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8241969Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8242740Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8243195Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8243654Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8244160Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8244720Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8246624Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8247768Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8248311Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8250015Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8250338Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8250531Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8250802Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8251978Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8252286Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8253362Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8253638Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8253903Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8255164Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8255599Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8256689Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8256982Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8257174Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8257471Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8258583Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8258923Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8260034Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8260310Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8260582Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8261731Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8262061Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8263173Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8263485Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8263677Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8263823Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8264498Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8264663Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8264845Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8265041Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8265275Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8265493Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8265880Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8266270Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8266479Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8266703Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8267499Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8267701Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8267929Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8268671Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8268897Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8269323Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8269706Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8269946Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8270809Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8271056Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8271332Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8271504Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8271680Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8271933Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8272035Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8272152Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8272296Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8272442Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8272754Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8272871Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8272962Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8272969Z 2023-01-11T21:03:37.8273208Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.8273375Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8273592Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8273907Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8274080Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8274358Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8274512Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8274770Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8275196Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8275414Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8275597Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8275797Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8276394Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8276555Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8276777Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8277466Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8277680Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8278770Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8279024Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8279180Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8280064Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8280309Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8280502Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8280831Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8281024Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8281218Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8281343Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8281625Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8282114Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8282320Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8282477Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8282489Z 2023-01-11T21:03:37.8285452Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8285569Z ================== 2023-01-11T21:03:37.8285669Z ================== 2023-01-11T21:03:37.8285968Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8286262Z  Write of size 4 at 0x7b9400030b64 by thread T1: 2023-01-11T21:03:37.8290137Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.8290648Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8291027Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8291486Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8291951Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8292458Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8292674Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8293005Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8293146Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8293155Z 2023-01-11T21:03:37.8293472Z  Previous write of size 4 at 0x7b9400030b64 by main thread: 2023-01-11T21:03:37.8296941Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:37.8297331Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8297698Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8298124Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8298563Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8298832Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8299153Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8299554Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8299902Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8301247Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8301622Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8301902Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8302538Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8303090Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8303311Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8303545Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8304667Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8304884Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8305203Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8306184Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8306545Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8307197Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8307895Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8308257Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8309606Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8309941Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8310346Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8310578Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8310850Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8311222Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8311394Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8311532Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8311717Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8311950Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8312407Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8312581Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8312707Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8312717Z 2023-01-11T21:03:37.8313091Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8313412Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8313591Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8313817Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8314133Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8314902Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8315273Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8315762Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8316185Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8316688Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8318230Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8319172Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8319608Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8321183Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8321618Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8321892Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8322300Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8324067Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8324546Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8326138Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8326597Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8326983Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8328756Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8329246Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8330815Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8331251Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8331571Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8332002Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8333656Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8334107Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8335772Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8336176Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8336575Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8338352Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8339012Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8340985Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8341492Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8341829Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8342077Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8343248Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8343529Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8343848Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8344184Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8344629Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8345000Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8345666Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8346329Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8346738Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8347064Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8348409Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8348759Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8349108Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8350389Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8350776Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8351524Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8352244Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8352659Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8354212Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8354697Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8355174Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8355468Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8355775Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8356220Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8356418Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8356601Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8356801Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8357058Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8357586Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8357787Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8357939Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8357951Z 2023-01-11T21:03:37.8358345Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.8358632Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8359009Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8359538Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8359834Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8360327Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8360663Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8360988Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8361690Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8362046Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8362355Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8362675Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8363675Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8363968Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8364335Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8365502Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8365858Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8367180Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8367479Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8367714Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8368777Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8369095Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8369362Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8369818Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8370018Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8370228Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8370437Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8370699Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8371301Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8371487Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8371634Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8371644Z 2023-01-11T21:03:37.8373407Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8373493Z ================== 2023-01-11T21:03:37.8373768Z ================== 2023-01-11T21:03:37.8373936Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8374111Z  Write of size 4 at 0x7b9400030b68 by thread T2: 2023-01-11T21:03:37.8376385Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.8376731Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8376955Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8377236Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8377579Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8377846Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8377985Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8378204Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8378325Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8378335Z 2023-01-11T21:03:37.8378522Z  Previous write of size 4 at 0x7b9400030b68 by main thread: 2023-01-11T21:03:37.8380680Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.8380933Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8381153Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8381459Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8381747Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8381936Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8382134Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8382355Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8382569Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8383307Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8383543Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8383760Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8384143Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8384528Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8384737Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8384938Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8385714Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8385953Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8386157Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8386910Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8387160Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8387588Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8387970Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8388212Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8389070Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8389281Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8389551Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8389722Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8389898Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8390184Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8390301Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8390418Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8390536Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8390680Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8390989Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8391104Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8391183Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8391191Z 2023-01-11T21:03:37.8391412Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8391575Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8391723Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8391883Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8392084Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8392521Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8392789Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8393053Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8393313Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8393633Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8394778Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8395449Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8395751Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8396816Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8397091Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8397275Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8397545Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8398674Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8399028Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8400114Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8400388Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8400654Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8402342Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8402852Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8404456Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8404869Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8405233Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8405723Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8407354Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8407842Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8409628Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8410086Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8410452Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8412438Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8412982Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8414878Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8415311Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8415528Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8415857Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8416876Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8417138Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8417478Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8417784Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8418263Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8418517Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8418902Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8419388Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8419665Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8419899Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8420739Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8421010Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8421265Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8422251Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8422662Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8423313Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8423981Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8424309Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8425553Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8425906Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8426361Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8426634Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8426964Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8427422Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8427565Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8427730Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8427925Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8428154Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8428622Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8428874Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8428990Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8429016Z 2023-01-11T21:03:37.8429377Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.8429642Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8429917Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8430434Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8430722Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8431308Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8431593Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8431796Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8432213Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8432431Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8432621Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8432821Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8433382Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8433546Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8433772Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8434439Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8434711Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8435517Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8435710Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8435841Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8436494Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8436642Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8436778Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8437029Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8437143Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8437263Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8437386Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8437534Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8437843Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8437962Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8438056Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8438063Z 2023-01-11T21:03:37.8439716Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8439790Z ================== 2023-01-11T21:03:37.8439883Z ================== 2023-01-11T21:03:37.8440054Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8440225Z  Write of size 4 at 0x7b9400030b68 by thread T3: 2023-01-11T21:03:37.8442408Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.8442668Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8442892Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8443173Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8443459Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8443724Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8443866Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8444089Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8444226Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8444232Z 2023-01-11T21:03:37.8444423Z  Previous write of size 4 at 0x7b9400030b68 by main thread: 2023-01-11T21:03:37.8446576Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.8446875Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8447100Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8447420Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8447709Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8447899Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8448097Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8448325Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8448538Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8449251Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8449492Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8449708Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8450090Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8450474Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8450715Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8450915Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8451731Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8451937Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8452141Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8452884Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8453108Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8453532Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8453916Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8454152Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8455127Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8455391Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8455664Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8455839Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8456017Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8456291Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8456408Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8456528Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8456649Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8456798Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8457111Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8457232Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8457327Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8457333Z 2023-01-11T21:03:37.8457560Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8457725Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8457838Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8457998Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8458200Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8458639Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8458910Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8459174Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8459434Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8459786Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8460919Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8461762Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8462250Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8463939Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8464402Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8464703Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8465238Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8467246Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8467756Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8469552Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8470004Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8470510Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8472336Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8472920Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8474883Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8475374Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8475722Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8476269Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8477937Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8478545Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8480296Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8480706Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8481128Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8483024Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8483544Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8485318Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8485901Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8486216Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8486418Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8487097Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8487251Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8487511Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8487830Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8488181Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8488458Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8488960Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8489479Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8489694Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8489893Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8490933Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8491295Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8491510Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8492492Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8492761Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8493404Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8493880Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8494151Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8495189Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8495521Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8496081Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8496333Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8496596Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8496972Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8497128Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8497326Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8497483Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8497666Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8498178Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8498358Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8498498Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8498510Z 2023-01-11T21:03:37.8498871Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.8499142Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8499462Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8499947Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8500229Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8500683Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8500918Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8501213Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8501869Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8502232Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8502519Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8502821Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8503675Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8503993Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8504352Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8505394Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8505648Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8506616Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8506899Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8507122Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8508070Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8508290Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8508516Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8508917Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8509085Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8509246Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8509442Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8509660Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8510125Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8510313Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8510514Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8510522Z 2023-01-11T21:03:37.8512851Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8512928Z ================== 2023-01-11T21:03:37.8512992Z ================== 2023-01-11T21:03:37.8513238Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8513507Z  Write of size 4 at 0x7b9400030b68 by thread T1: 2023-01-11T21:03:37.8516968Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.8517368Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8517710Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8518158Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8518609Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8519030Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8519300Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8519659Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8519869Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8519876Z 2023-01-11T21:03:37.8520164Z  Previous write of size 4 at 0x7b9400030b68 by main thread: 2023-01-11T21:03:37.8523631Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:37.8524043Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8524392Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8524824Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8525267Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8525576Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8525871Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8526234Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8526562Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8527685Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8528098Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8528369Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8528752Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8529174Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8529390Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8529591Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8530754Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8531066Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8531381Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8532413Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8532700Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8533198Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8533689Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8533942Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8535077Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8535425Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8535839Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8536064Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8536314Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8536747Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8536937Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8537135Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8537320Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8537583Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8538115Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8538322Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8538475Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8538485Z 2023-01-11T21:03:37.8538928Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8539228Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8539442Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8539730Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8540093Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8540978Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8541472Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8541901Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8542382Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8543038Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8544944Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8546112Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8546637Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8548477Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8549046Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8549352Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8549865Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8551957Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8552494Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8571388Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8572119Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8572432Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8573690Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8574179Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8576036Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8576596Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8576819Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8577348Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8579009Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8579361Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8580427Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8580719Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8580990Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8582146Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8582496Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8583613Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8583906Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8584100Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8584248Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8584920Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8585075Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8585274Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8585474Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8585709Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8585927Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8586341Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8586728Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8586942Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8587144Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8587954Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8588172Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8588365Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8589121Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8589347Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8589774Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8590157Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8590440Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8591299Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8591509Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8591807Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8591984Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8592164Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8592417Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8592530Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8592653Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8592773Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8592919Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8593229Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8593348Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8593441Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8593449Z 2023-01-11T21:03:37.8593690Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.8593860Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8594078Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8594398Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8594693Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8594990Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8595143Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8595334Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8595780Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8596002Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8596189Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8596385Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8596970Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8597137Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8597362Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8598027Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8598240Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8599017Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8599196Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8599342Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8600229Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8600499Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8600737Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8601143Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8601312Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8601519Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8601733Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8601967Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8602458Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8602583Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8602677Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8602725Z 2023-01-11T21:03:37.8604407Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8604480Z ================== 2023-01-11T21:03:37.8604826Z ================== 2023-01-11T21:03:37.8604999Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8605175Z  Write of size 4 at 0x7b9400030b6c by thread T2: 2023-01-11T21:03:37.8607420Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.8607720Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8607947Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8608229Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8608516Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8608785Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8608954Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8609180Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8609316Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8609322Z 2023-01-11T21:03:37.8609510Z  Previous write of size 4 at 0x7b9400030b6c by main thread: 2023-01-11T21:03:37.8611626Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.8611888Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8612111Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8612390Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8612678Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8612895Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8613100Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8613327Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8613538Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8614277Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8614624Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8614847Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8615231Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8615631Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8615844Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8616043Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8616828Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8617034Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8617288Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8618029Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8618254Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8618725Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8619113Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8619352Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8620220Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8620432Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8620707Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8620883Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8621061Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8621315Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8621430Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8621536Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8621687Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8621834Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8622147Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8622267Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8622360Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8622366Z 2023-01-11T21:03:37.8622592Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8622759Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8622883Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8623043Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8623235Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8623717Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8623986Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8624251Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8624517Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8624842Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8625905Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8626541Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8626882Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8627929Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8628207Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8628395Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8628664Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8629809Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8630112Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8631241Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8631518Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8631785Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8632939Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8633274Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8634359Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8634762Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8634957Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8635255Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8636405Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8636714Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8637787Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8638064Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8638364Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8639559Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8639894Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8640978Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8641270Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8641465Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8641612Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8642285Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8642464Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8642659Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8642858Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8643093Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8643313Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8643720Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8644107Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8644319Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8644523Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8645321Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8645528Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8645736Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8646476Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8646728Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8647156Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8647542Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8647808Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8648660Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8648885Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8649157Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8649333Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8649498Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8649754Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8649873Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8649995Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8650116Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8650263Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8650571Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8650692Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8650785Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8650791Z 2023-01-11T21:03:37.8651013Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.8651208Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8651416Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8651730Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8651903Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8652194Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8652349Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8652538Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8652964Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8653183Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8653370Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8653563Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8654125Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8654288Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8654693Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8655361Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8655573Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8656348Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8656585Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8656728Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8657337Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8657514Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8657667Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8657920Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8658035Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8658140Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8658261Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8658410Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8658726Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8658847Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8658940Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8658946Z 2023-01-11T21:03:37.8660613Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8660687Z ================== 2023-01-11T21:03:37.8660751Z ================== 2023-01-11T21:03:37.8660919Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8661095Z  Write of size 4 at 0x7b9400030b6c by thread T3: 2023-01-11T21:03:37.8663237Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.8663553Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8663778Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8664059Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8664347Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8664614Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8664756Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8664980Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8665116Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8665122Z 2023-01-11T21:03:37.8665310Z  Previous write of size 4 at 0x7b9400030b6c by main thread: 2023-01-11T21:03:37.8667424Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.8667710Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8667935Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8668213Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8668501Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8668717Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8668922Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8669149Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8669359Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8670088Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8670326Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8670544Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8670931Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8671318Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8671530Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8671758Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8672542Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8672749Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8672978Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8673718Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8673942Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8674373Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8674841Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8675083Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8675939Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8676184Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8676459Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8676633Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8676812Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8677065Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8677182Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8677303Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8677409Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8677586Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8677900Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8678019Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8678114Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8678120Z 2023-01-11T21:03:37.8678347Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8678514Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8678638Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8678798Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8679006Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8679448Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8679715Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8679982Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8680249Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8680574Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8681641Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8682336Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8682641Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8683667Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8683955Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8684127Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8684396Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8685542Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8685901Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8686972Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8687246Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8687515Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8688674Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8689044Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8690154Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8690458Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8690640Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8690938Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8692048Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8692354Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8693454Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8693757Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8694028Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8695290Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8695624Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8696710Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8697058Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8697336Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8697537Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8698333Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8699269Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8699643Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8700052Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8700488Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8700949Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8701558Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8702331Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8702927Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8703352Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8704349Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8705339Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8705751Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8706739Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8707698Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8708341Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8709799Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8710554Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8711656Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8712682Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8713173Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8713624Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8714030Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8714480Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8714938Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8715198Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8715446Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8715735Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8716211Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8716652Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8716871Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8717000Z 2023-01-11T21:03:37.8717241Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.8717928Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8718651Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8719202Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8719690Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8720173Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8720626Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8720993Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8721592Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8722075Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8722485Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8722880Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8723649Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8724355Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8724758Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8725713Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8726683Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8728212Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8729167Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8729517Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8730376Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8731114Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8731419Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8731851Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8732227Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8732487Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8732735Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8733024Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8733509Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8733946Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8734164Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8734296Z 2023-01-11T21:03:37.8736569Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8737701Z ================== 2023-01-11T21:03:37.8737868Z ================== 2023-01-11T21:03:37.8738127Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8738514Z  Write of size 4 at 0x7b9400030b6c by thread T1: 2023-01-11T21:03:37.8740873Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.8742529Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8743021Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8743535Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8744185Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8744918Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8745470Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8745865Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8746234Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8746448Z 2023-01-11T21:03:37.8746632Z  Previous write of size 4 at 0x7b9400030b6c by main thread: 2023-01-11T21:03:37.8748988Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:37.8750616Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8751099Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8751613Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8752187Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8752670Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8753063Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8753507Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:37.8753958Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8754987Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.8755916Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.8756412Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8757034Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8757809Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8758406Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8758857Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8759870Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8760823Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8761242Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8762209Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8763153Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8763812Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8764626Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8765286Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8766433Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8767443Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8767935Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8768422Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8768950Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8769640Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8770220Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8770629Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8771015Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8771442Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8772191Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8772866Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8773244Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8773419Z 2023-01-11T21:03:37.8773802Z  Location is heap block of size 10080 at 0x7b940002f800 allocated by main thread: 2023-01-11T21:03:37.8774425Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8774841Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8775297Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8775857Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8776826Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8777664Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8778368Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8779135Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8780018Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8782156Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8784384Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8785518Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8787461Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8789562Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8790255Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.8790950Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.8792687Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.8794965Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8797197Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8799578Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8800465Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8802765Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8805253Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8807238Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8809245Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8809833Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8810667Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.8813018Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.8815396Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.8817615Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.8819777Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.8820588Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.8822487Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.8824974Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.8827208Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.8828901Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.8829620Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.8830165Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.8831493Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.8832733Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.8833306Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.8833940Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.8834707Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.8835382Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.8836014Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.8836844Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.8837747Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.8838411Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8840181Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8841529Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8842154Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8843678Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.8845018Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.8845980Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.8847360Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.8848367Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.8850162Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8851847Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8852722Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.8853489Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.8854184Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.8855073Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8855703Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8856109Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8856521Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8857023Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8857899Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8858692Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8858951Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8859083Z 2023-01-11T21:03:37.8859340Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.8859680Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8860034Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8860589Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8861097Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8861587Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8862042Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8862393Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8863012Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8863505Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8864003Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8864405Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8865182Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8865877Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8866275Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8867224Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8868083Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8869097Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8870010Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8870335Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8871125Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8871870Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8872187Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8872620Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8873032Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8873282Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8873546Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8873836Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8874320Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8874826Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8875064Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8875195Z 2023-01-11T21:03:37.8877203Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:37.8878802Z ================== 2023-01-11T21:03:37.8879199Z ================== 2023-01-11T21:03:37.8879682Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8880263Z  Write of size 1 at 0x7b7400036876 by thread T1: 2023-01-11T21:03:37.8884046Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.8885893Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8886734Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8887759Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8888819Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8889448Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8890023Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8890657Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8891296Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8891566Z 2023-01-11T21:03:37.8891945Z  Previous write of size 1 at 0x7b7400036876 by main thread: 2023-01-11T21:03:37.8896195Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.8899205Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8900088Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8901035Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8901667Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8902136Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8902539Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8903060Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.8903515Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8904529Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.8905547Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.8905974Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8906981Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8907933Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8908350Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.8909386Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.8910403Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.8911522Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8912603Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8912989Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.8913440Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8913845Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8914108Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8914354Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8914703Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8915191Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8915634Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8915857Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8915989Z 2023-01-11T21:03:37.8916227Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.8916562Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.8916829Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.8917121Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.8917507Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.8918226Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.8919371Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.8920324Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.8921258Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.8922351Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.8924945Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.8928136Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.8929749Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.8932186Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.8934815Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.8935648Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.8937185Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.8938781Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.8939509Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.8941488Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.8942545Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.8943671Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.8944697Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.8945100Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.8945556Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8945935Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8946191Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8946437Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8946725Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8947202Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8947640Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8947858Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8948023Z 2023-01-11T21:03:37.8948264Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.8948602Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.8948948Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.8949497Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.8949992Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.8950475Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.8950929Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.8951322Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.8951924Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.8952417Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.8952827Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.8953220Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.8953996Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.8954789Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.8955196Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.8956112Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.8956959Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.8957956Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.8959022Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.8959541Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.8961019Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.8962323Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.8962841Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.8963598Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.8964287Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.8964731Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.8965161Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.8965670Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.8966575Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.8967328Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.8967737Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.8967964Z 2023-01-11T21:03:37.8971016Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.8972872Z ================== 2023-01-11T21:03:37.8973152Z ================== 2023-01-11T21:03:37.8973615Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.8974181Z  Write of size 1 at 0x7b7400036876 by thread T3: 2023-01-11T21:03:37.8978538Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.8981695Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8982532Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8983061Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8983643Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8984211Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.8984625Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.8985016Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.8985369Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.8985531Z 2023-01-11T21:03:37.8985724Z  Previous write of size 1 at 0x7b7400036876 by main thread: 2023-01-11T21:03:37.8988054Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.8989736Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.8990219Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.8990729Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.8991337Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.8991810Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.8992217Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.8992659Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.8993110Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.8994129Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.8995146Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.8995575Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.8996582Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.8997618Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.8998205Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9000010Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9001913Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9003957Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9005752Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9006435Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9007251Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9007914Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9008373Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9008830Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9009339Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9010184Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9010989Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9011355Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9011566Z 2023-01-11T21:03:37.9011967Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9012557Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9013015Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9013586Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9014274Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9015545Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9016821Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9017767Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9018790Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9019888Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9022199Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9023976Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9024873Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9026218Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9027638Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9028117Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9028995Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9029841Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9030241Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9031279Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9032300Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9033409Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9034464Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9034931Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9035385Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9035766Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9036010Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9036277Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9036568Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9037083Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9037511Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9037743Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9037872Z 2023-01-11T21:03:37.9038104Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.9038437Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9038782Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9039330Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9039935Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9040638Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9041354Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9041934Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9043066Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9043945Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9044706Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9045411Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9046780Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9048044Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9048755Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9050385Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9051912Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9053662Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9055377Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9055981Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9057332Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9058635Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9059138Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9059917Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9060602Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9061058Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9061508Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9062028Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9062903Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9063492Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9063714Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9063839Z 2023-01-11T21:03:37.9065532Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9066559Z ================== 2023-01-11T21:03:37.9066766Z ================== 2023-01-11T21:03:37.9067036Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9067351Z  Write of size 1 at 0x7b7400036876 by thread T2: 2023-01-11T21:03:37.9069676Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.9071313Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9071792Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9072303Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9072876Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9073434Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9073879Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9074251Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9074959Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9075123Z 2023-01-11T21:03:37.9075315Z  Previous write of size 1 at 0x7b7400036876 by main thread: 2023-01-11T21:03:37.9077690Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.9079337Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9079819Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9080318Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9080892Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9081371Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9081779Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9082219Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9082666Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9083679Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9084678Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9085097Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9086128Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9087082Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9087499Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9088534Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9089550Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9090662Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9091731Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9092133Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9092585Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9092960Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9093201Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9093457Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9093744Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9094223Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9094760Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9094990Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9095160Z 2023-01-11T21:03:37.9095387Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9095717Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9095964Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9096268Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9096655Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9097318Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9098017Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9098553Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9099075Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9099674Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9101092Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9102891Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9103831Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9105177Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9106544Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9106994Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9107882Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9108718Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9109099Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9110162Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9111181Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9112322Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9113337Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9113735Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9114185Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9114634Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9114901Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9115157Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9115434Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9115911Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9116351Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9116581Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9116588Z 2023-01-11T21:03:37.9116809Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.9116975Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9117197Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9117605Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9117866Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9118394Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9118659Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9118987Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9119738Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9120115Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9120450Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9120877Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9121897Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9122179Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9122598Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9123832Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9124208Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9125622Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9125941Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9126246Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9127363Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9127615Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9127884Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9128345Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9128564Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9128786Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9129013Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9129257Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9129839Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9130032Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9130201Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9130209Z 2023-01-11T21:03:37.9133289Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9133399Z ================== 2023-01-11T21:03:37.9133517Z ================== 2023-01-11T21:03:37.9133826Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9134162Z  Write of size 1 at 0x7b7400036877 by thread T2: 2023-01-11T21:03:37.9138336Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:37.9138869Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9139249Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9139768Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9140363Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9140867Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9141124Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9141541Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9141786Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9141795Z 2023-01-11T21:03:37.9142148Z  Previous write of size 1 at 0x7b7400036877 by main thread: 2023-01-11T21:03:37.9145061Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:37.9145324Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9145598Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9145886Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9146175Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9146368Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9146569Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9146797Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9147045Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9147840Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9148075Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9148265Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9149080Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9149287Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9149493Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9150313Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9150601Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9151510Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9151722Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9151903Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9152166Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9152269Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9152387Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9152506Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9152653Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9152968Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9153088Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9153181Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9153187Z 2023-01-11T21:03:37.9153416Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9153582Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9153706Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9153857Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9154068Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9154519Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9154917Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9155186Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9155454Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9155783Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9156908Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9157545Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9157867Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9158914Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9159222Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9159401Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9160123Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9160319Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9160515Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9161360Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9161606Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9163037Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9163363Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9163636Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9164039Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9164296Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9164495Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9164698Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9164942Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9165485Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9165681Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9165843Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9165852Z 2023-01-11T21:03:37.9166228Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.9166497Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9166926Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9167460Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9167754Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9168213Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9168463Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9168782Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9169471Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9169826Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9170124Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9170459Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9171384Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9171653Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9171988Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9172927Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9173334Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9174766Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9175074Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9175282Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9176275Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9176524Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9176751Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9177157Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9177325Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9177509Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9177693Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9177935Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9178443Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9178632Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9178789Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9178799Z 2023-01-11T21:03:37.9181432Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9181641Z ================== 2023-01-11T21:03:37.9181745Z ================== 2023-01-11T21:03:37.9181969Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9182242Z  Write of size 1 at 0x7b7400036877 by thread T3: 2023-01-11T21:03:37.9185861Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:37.9186356Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9186758Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9187168Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9187461Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9187736Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9187876Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9188102Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9188239Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9188246Z 2023-01-11T21:03:37.9188445Z  Previous write of size 1 at 0x7b7400036877 by main thread: 2023-01-11T21:03:37.9190736Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:37.9191002Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9191225Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9191509Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9191807Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9192001Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9192202Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9192432Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9192646Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9193447Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9193677Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9193896Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9194770Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9194980Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9195216Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9196039Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9196283Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9197173Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9197383Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9197567Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9197825Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9197928Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9198047Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9198199Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9198346Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9198662Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9198782Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9198873Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9198880Z 2023-01-11T21:03:37.9199104Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9199269Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9199393Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9199541Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9199746Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9200244Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9200518Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9200788Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9201069Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9201398Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9202480Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9203111Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9203452Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9204515Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9204795Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9204972Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9205662Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9205853Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9206049Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9206880Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9207148Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9208017Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9208261Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9208442Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9208700Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9208816Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9208933Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9209056Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9209201Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9209514Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9209633Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9209724Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9209730Z 2023-01-11T21:03:37.9209930Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.9210095Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9210313Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9210634Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9210809Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9211105Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9211258Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9211451Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9211859Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9212107Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9212293Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9212490Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9213059Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9213248Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9213475Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9214149Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9214480Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9215259Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9215456Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9215587Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9216220Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9216367Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9216566Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9216812Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9216927Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9217047Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9217168Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9217314Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9217627Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9217747Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9217839Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9217846Z 2023-01-11T21:03:37.9219551Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9219624Z ================== 2023-01-11T21:03:37.9219690Z ================== 2023-01-11T21:03:37.9219859Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9220034Z  Write of size 1 at 0x7b7400036877 by thread T1: 2023-01-11T21:03:37.9222224Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:37.9222486Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9222748Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9223031Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9223319Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9223585Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9223730Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9223979Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9224114Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9224120Z 2023-01-11T21:03:37.9224305Z  Previous write of size 1 at 0x7b7400036877 by main thread: 2023-01-11T21:03:37.9226474Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:37.9226737Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9226957Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9227236Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9227525Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9227749Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9227951Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9228181Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9228392Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9229209Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9229427Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9229628Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9230439Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9230646Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9230852Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9231677Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9231921Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9232816Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9233040Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9233221Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9233492Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9233607Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9233725Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9233844Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9233992Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9234303Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9234422Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9234514Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9234519Z 2023-01-11T21:03:37.9234830Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9234996Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9235110Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9235272Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9235483Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9235929Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9236205Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9236472Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9236739Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9237101Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9238222Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9238852Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9239171Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9240211Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9240487Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9240662Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9241386Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9241565Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9241771Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9242631Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9242874Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9243746Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9243955Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9244136Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9244393Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9244507Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9244626Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9244746Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9244891Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9245204Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9245349Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9245430Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9245450Z 2023-01-11T21:03:37.9245653Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.9245819Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9246042Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9246364Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9246541Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9246840Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9247021Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9247216Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9247627Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9247851Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9248040Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9248241Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9248811Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9248976Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9249205Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9249886Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9250094Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9250900Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9251096Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9251227Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9251905Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9252054Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9252191Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9252448Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9252565Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9252686Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9252809Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9252960Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9253276Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9253396Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9253491Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9253496Z 2023-01-11T21:03:37.9255273Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9255347Z ================== 2023-01-11T21:03:37.9255415Z ================== 2023-01-11T21:03:37.9255584Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9255819Z  Write of size 1 at 0x7b740003687c by thread T2: 2023-01-11T21:03:37.9258042Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:37.9258308Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9258534Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9258823Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9259119Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9259389Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9259532Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9259759Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9259898Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9259904Z 2023-01-11T21:03:37.9260094Z  Previous write of size 1 at 0x7b740003687c by main thread: 2023-01-11T21:03:37.9262283Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:37.9262573Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9262795Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9263105Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9263402Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9263595Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9263794Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9264020Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9264234Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9265026Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9265247Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9265447Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9266257Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9266491Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9266696Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9267544Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9267789Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9268664Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9268887Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9269055Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9269311Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9269426Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9269545Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9269669Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9269820Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9270140Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9270257Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9270349Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9270354Z 2023-01-11T21:03:37.9270573Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9270769Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9270881Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9271041Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9271245Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9271692Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9271960Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9272254Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9272523Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9272890Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9273991Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9274691Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9275012Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9276106Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9276408Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9276589Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9277278Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9277459Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9277663Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9278497Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9278743Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9279606Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9279842Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9280021Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9280277Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9280392Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9280510Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9280656Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9280805Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9281120Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9281238Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9281318Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9281324Z 2023-01-11T21:03:37.9281536Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.9281702Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9281921Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9282243Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9282414Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9282709Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9282858Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9283050Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9283459Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9283678Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9283860Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9284057Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9284625Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9284815Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9285041Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9285745Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9285957Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9286733Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9286911Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9287051Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9287683Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9287830Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9287968Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9288224Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9288339Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9288457Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9288577Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9288723Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9289072Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9289192Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9289284Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9289289Z 2023-01-11T21:03:37.9290975Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9291047Z ================== 2023-01-11T21:03:37.9291228Z ================== 2023-01-11T21:03:37.9291397Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9291572Z  Write of size 1 at 0x7b740003687c by thread T3: 2023-01-11T21:03:37.9293759Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:37.9294040Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9294261Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9294645Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9294935Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9295257Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9295383Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9295608Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9295744Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9295750Z 2023-01-11T21:03:37.9295936Z  Previous write of size 1 at 0x7b740003687c by main thread: 2023-01-11T21:03:37.9298162Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:37.9298438Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9298661Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9298947Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9299241Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9299435Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9299635Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9299860Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9300073Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9300898Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9301113Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9301315Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9302136Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9302345Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9302549Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9303373Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9303632Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9304504Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9304744Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9304924Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9305179Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9305294Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9305413Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9305532Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9305680Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9306007Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9306127Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9306218Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9306223Z 2023-01-11T21:03:37.9306443Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9306607Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9306731Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9306890Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9307097Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9307546Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9307814Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9308081Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9308348Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9308677Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9309769Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9310471Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9310778Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9311822Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9312108Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9312286Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9312979Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9313183Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9313391Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9314215Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9314486Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9315441Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9315656Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9315837Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9316094Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9316210Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9316317Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9316436Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9316589Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9316903Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9317023Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9317115Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9317121Z 2023-01-11T21:03:37.9317336Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.9317502Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9317725Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9318045Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9318252Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9318547Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9318697Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9318875Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9319290Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9319512Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9319728Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9319924Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9320490Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9320657Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9320885Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9321569Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9321782Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9322559Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9322785Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9322928Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9323553Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9323698Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9323850Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9324129Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9324244Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9324362Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9324483Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9324619Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9324932Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9325050Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9325146Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9325151Z 2023-01-11T21:03:37.9326830Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9326906Z ================== 2023-01-11T21:03:37.9326970Z ================== 2023-01-11T21:03:37.9327139Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9327315Z  Write of size 1 at 0x7b7400036882 by thread T1: 2023-01-11T21:03:37.9329486Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:37.9329790Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9330005Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9330313Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9330607Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9330878Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9331024Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9331250Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9331389Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9331394Z 2023-01-11T21:03:37.9331582Z  Previous write of size 1 at 0x7b7400036882 by main thread: 2023-01-11T21:03:37.9333739Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:37.9334043Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9334270Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9334648Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9334942Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9335137Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9335342Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9335618Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9335819Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9336627Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9336846Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9337049Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9337850Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9338057Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9338265Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9339121Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9339378Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9340273Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9340487Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9340673Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9340930Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9341048Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9341169Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9341294Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9341430Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9341744Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9341867Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9341960Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9341966Z 2023-01-11T21:03:37.9342192Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9342359Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9342484Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9342644Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9342851Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9343302Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9343604Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9343873Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9344140Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9344471Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9345579Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9346225Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9346531Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9347571Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9347897Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9348072Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9348798Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9348975Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9349183Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9350063Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9350426Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9351737Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9352051Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9352414Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9352868Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9353034Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9353215Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9353402Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9353641Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9354164Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9354353Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9354505Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9354515Z 2023-01-11T21:03:37.9354982Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.9355329Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9355700Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9356235Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9356494Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9356965Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9357203Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9357505Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9358190Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9358545Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9358850Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9359137Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9360069Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9360382Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9360733Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9361954Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9362291Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9363528Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9363822Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9364049Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9365038Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9365273Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9365507Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9365912Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9366106Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9366291Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9366477Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9366724Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9367238Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9367423Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9367576Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9367585Z 2023-01-11T21:03:37.9370177Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9370339Z ================== 2023-01-11T21:03:37.9370458Z ================== 2023-01-11T21:03:37.9370644Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9370813Z  Write of size 1 at 0x7b7400036aeb by thread T1: 2023-01-11T21:03:37.9373064Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:37.9373337Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9373565Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9373850Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9374148Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9374523Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9374669Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9374896Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9375093Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9375099Z 2023-01-11T21:03:37.9375292Z  Previous write of size 1 at 0x7b7400036aeb by main thread: 2023-01-11T21:03:37.9377507Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:37.9377774Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9377998Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9378286Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9378578Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9378768Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9378970Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9379201Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9379415Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9380208Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9380456Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9380664Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9381461Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9381711Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9381920Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9382742Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9382985Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9383856Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9384069Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9384250Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9384509Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9384651Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9384771Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9384894Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9385042Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9385357Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9385477Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9385571Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9385577Z 2023-01-11T21:03:37.9385798Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9385954Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9386082Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9386244Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9386474Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9386923Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9401649Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9402193Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9402627Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9403154Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9404769Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9405873Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9406347Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9407798Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9408207Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9408485Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9409613Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9409937Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9410291Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9411738Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9412255Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9413800Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9414203Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9414663Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9415052Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9415244Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9415434Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9415626Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9415875Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9416370Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9416558Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9416704Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9416715Z 2023-01-11T21:03:37.9417078Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:37.9417351Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9417684Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9418182Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9418460Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9418923Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9419167Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9419577Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9420234Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9420579Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9420860Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9421175Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9422102Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9422272Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9422498Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9423537Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9423874Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9425110Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9425402Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9425613Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9426612Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9426892Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9427136Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9427510Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9427694Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9427884Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9428079Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9428296Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9428613Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9428767Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9428861Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9428867Z 2023-01-11T21:03:37.9431580Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9431694Z ================== 2023-01-11T21:03:37.9431865Z ================== 2023-01-11T21:03:37.9432136Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9432416Z  Write of size 1 at 0x7b7400036aeb by thread T3: 2023-01-11T21:03:37.9435702Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:37.9436140Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9436488Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9436954Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9437405Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9437860Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9438101Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9438453Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9438675Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9438684Z 2023-01-11T21:03:37.9439050Z  Previous write of size 1 at 0x7b7400036aeb by main thread: 2023-01-11T21:03:37.9442917Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:37.9443393Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9443752Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9444200Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9444664Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9445041Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9445294Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9445591Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9445935Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9447315Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9447665Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9447988Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9449255Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9449601Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9449951Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9451228Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9451716Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9453104Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9453483Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9453758Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9454175Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9454463Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9454654Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9454848Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9455042Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9455563Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9455765Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9455910Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9455919Z 2023-01-11T21:03:37.9456311Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9456542Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9456738Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9456970Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9457308Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9458069Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9458539Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9458997Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9459520Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9460066Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9461765Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9462434Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9462738Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9463763Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9464050Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9464283Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9464965Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9465142Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9465347Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9466182Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9466425Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9467294Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9467504Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9467684Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9467936Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9468039Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9468159Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9468279Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9468425Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9468765Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9468886Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9468979Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9468986Z 2023-01-11T21:03:37.9469213Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:37.9469381Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9469599Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9469914Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9470088Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9470413Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9470556Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9470747Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9471152Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9471371Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9471554Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9471750Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9472308Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9472472Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9472696Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9473373Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9473610Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9474373Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9474616Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9474764Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9475406Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9475553Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9475702Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9475957Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9476073Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9476189Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9476295Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9476442Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9476752Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9476868Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9476962Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9476968Z 2023-01-11T21:03:37.9478641Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9478742Z ================== 2023-01-11T21:03:37.9478879Z ================== 2023-01-11T21:03:37.9479036Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9479212Z  Write of size 1 at 0x7b7400036aeb by thread T2: 2023-01-11T21:03:37.9481389Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:37.9481666Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9481892Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9482177Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9482462Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9482727Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9482869Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9483092Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9483215Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9483234Z 2023-01-11T21:03:37.9483409Z  Previous write of size 1 at 0x7b7400036aeb by main thread: 2023-01-11T21:03:37.9485558Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:37.9485841Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9486098Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9486380Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9486662Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9486852Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9487054Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9487282Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9487495Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9488278Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:37.9488495Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:37.9488692Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9489475Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9489710Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9489912Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9490754Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9490998Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9491855Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9492062Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9492246Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9492500Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9492616Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9492735Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9492855Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9493002Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9493311Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9493457Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9493538Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9493555Z 2023-01-11T21:03:37.9493763Z  Location is heap block of size 2520 at 0x7b7400036600 allocated by main thread: 2023-01-11T21:03:37.9493929Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9494051Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9494210Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9494571Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9495034Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9495367Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9495633Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9495899Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9496221Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9497308Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9497929Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9498281Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9499346Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9499621Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9499796Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:37.9500479Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:37.9500657Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:37.9500863Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:37.9501677Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:37.9501922Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:37.9502785Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9503026Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9503207Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:37.9503486Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9503603Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9503722Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9503829Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9503975Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9504283Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9504402Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9504495Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9504501Z 2023-01-11T21:03:37.9504715Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.9504882Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9505103Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9505417Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9505588Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9505880Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9506035Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9506229Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9506631Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9506849Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9507033Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9507245Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9507818Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9507981Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9508203Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9508892Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9509102Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9509865Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9510044Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9510187Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9510794Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9510942Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9511089Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9511338Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9511451Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9511597Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9511716Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9511861Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9512172Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9512292Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9512372Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9512378Z 2023-01-11T21:03:37.9514131Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9514205Z ================== 2023-01-11T21:03:37.9884891Z ================== 2023-01-11T21:03:37.9885254Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9885582Z  Write of size 1 at 0x7b7400037c76 by thread T2: 2023-01-11T21:03:37.9889421Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.9889885Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9890246Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9890748Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9891521Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9891909Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9892133Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9892535Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9892785Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9892800Z 2023-01-11T21:03:37.9893106Z  Previous write of size 1 at 0x7b7400037c76 by main thread: 2023-01-11T21:03:37.9896565Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.9896968Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9897336Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9897803Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9898260Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9898561Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9898892Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9899167Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9899591Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9900683Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.9900970Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.9901298Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.9901909Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.9902509Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.9902740Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.9902942Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9904040Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9904357Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9904664Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9905701Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.9906136Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.9906837Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.9907385Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.9907732Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.9908947Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9909315Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9909788Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.9910116Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.9910401Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.9910765Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9910952Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9911172Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9911392Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9911639Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9912045Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9912195Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9912391Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9912400Z 2023-01-11T21:03:37.9912779Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:37.9912952Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9913125Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9913334Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9913629Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9914240Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9914692Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9915118Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:37.9915510Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:37.9915975Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:37.9917488Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:37.9918381Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:37.9918845Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:37.9920346Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:37.9920743Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:37.9921013Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:37.9921397Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:37.9922944Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:37.9923395Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.9924984Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.9925473Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.9925869Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.9927565Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.9928025Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.9929595Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.9930067Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.9930338Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.9930767Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:37.9932412Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:37.9932889Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:37.9934585Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:37.9934976Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:37.9935354Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:37.9937051Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:37.9937637Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:37.9939147Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:37.9939575Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:37.9939831Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:37.9940022Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:37.9941010Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:37.9941221Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:37.9941478Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:37.9941803Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:37.9942132Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:37.9942451Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.9942988Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.9943610Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.9943916Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.9944197Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9945299Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9945588Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9945887Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9946953Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.9947264Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.9947965Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.9948702Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.9949099Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.9950613Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9950970Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9951431Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.9951740Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.9952037Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.9952474Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9952665Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9952846Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9953045Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9953295Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9953830Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9954028Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9954179Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9954191Z 2023-01-11T21:03:37.9954651Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:37.9954946Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:37.9955314Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:37.9955847Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:37.9956196Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:37.9956701Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:37.9956956Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:37.9957258Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:37.9957962Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:37.9958330Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:37.9958683Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:37.9959054Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:37.9960026Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:37.9960309Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:37.9960684Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:37.9961768Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:37.9962122Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:37.9963226Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:37.9963523Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:37.9963810Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:37.9964841Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:37.9965098Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:37.9965361Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:37.9965774Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9965973Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9966181Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9966448Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9966719Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9967313Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9967495Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9967641Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9967650Z 2023-01-11T21:03:37.9970268Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:37.9970405Z ================== 2023-01-11T21:03:37.9970577Z ================== 2023-01-11T21:03:37.9970774Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:37.9970978Z  Write of size 1 at 0x7b7400037c76 by thread T1: 2023-01-11T21:03:37.9974567Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.9975096Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9975449Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9975982Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9976446Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9976851Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:37.9977042Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:37.9977396Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:37.9977599Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:37.9977608Z 2023-01-11T21:03:37.9977918Z  Previous write of size 1 at 0x7b7400037c76 by main thread: 2023-01-11T21:03:37.9981195Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:37.9981591Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:37.9981990Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:37.9982422Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:37.9982840Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:37.9983133Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:37.9983435Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:37.9983755Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:37.9984089Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:37.9985107Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:37.9985448Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:37.9985765Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:37.9986322Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:37.9986884Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:37.9987185Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:37.9987483Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:37.9988661Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:37.9988987Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:37.9989309Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:37.9990482Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:37.9990828Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:37.9991487Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:37.9992044Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:37.9992400Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:37.9993642Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:37.9993966Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:37.9994358Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:37.9994717Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:37.9994963Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:37.9995345Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:37.9995521Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:37.9995701Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:37.9995876Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:37.9996090Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:37.9996533Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:37.9996722Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:37.9996853Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:37.9996862Z 2023-01-11T21:03:37.9997292Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:37.9997565Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:37.9997740Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:37.9997993Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:37.9998293Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:37.9998983Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:37.9999390Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:37.9999780Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0000165Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0000650Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0002252Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0003255Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0003731Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0005228Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0005618Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0005894Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0006285Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0007941Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0008437Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0009985Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0010412Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0010811Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0012711Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0013273Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0015388Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0015956Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0016291Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0016801Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0018721Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0019262Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0021126Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0021651Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0022104Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0024141Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0024723Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0026649Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0027145Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0027532Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0027779Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0028944Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0029202Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0029534Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0029899Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0030301Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0030689Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0031340Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0032131Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0032490Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0032821Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0034195Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0034537Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0034965Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0036281Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0036684Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0037450Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0038101Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0038490Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0039978Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0040336Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0040803Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0041092Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0041393Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0041828Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0042017Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0042214Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0042425Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0042726Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0043281Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0043477Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0043642Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0043652Z 2023-01-11T21:03:38.0044059Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.0044364Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0044763Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0045330Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0045661Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0045966Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0046123Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0046316Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0046733Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0046956Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0047143Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0047344Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0047900Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0048063Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0048289Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0048951Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0049191Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0049957Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0050135Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0050301Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0050912Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0051056Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0051209Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0051463Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0051578Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0051695Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0051817Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0051965Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0052275Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0052394Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0052489Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0052495Z 2023-01-11T21:03:38.0054158Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0054259Z ================== 2023-01-11T21:03:38.0054323Z ================== 2023-01-11T21:03:38.0054601Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0054763Z  Write of size 1 at 0x7b7400037c76 by thread T3: 2023-01-11T21:03:38.0057016Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:38.0057278Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0057501Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0057785Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0058073Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0058339Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0058481Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0058708Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0058845Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0058851Z 2023-01-11T21:03:38.0059036Z  Previous write of size 1 at 0x7b7400037c76 by main thread: 2023-01-11T21:03:38.0061179Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:38.0061479Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0061725Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0062005Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0062289Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0062483Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0062683Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0062909Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0063119Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0063839Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0064076Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0064293Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0064674Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0065087Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0065295Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0065493Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0066323Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0066530Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0066735Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0067478Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0067701Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0068130Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0068513Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0068750Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0069600Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0069847Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0070119Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0070320Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0070498Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0070750Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0070862Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0070982Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0071102Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0071250Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0071561Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0071679Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0071772Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0071778Z 2023-01-11T21:03:38.0072001Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0072154Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0072275Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0072433Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0072638Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0073082Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0073347Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0073619Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0074066Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0074669Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0076664Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0077625Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0078151Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0080020Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0080507Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0080886Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0081267Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0083051Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0083531Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0085152Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0085609Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0086053Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0087748Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0088348Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0090149Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0090551Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0090824Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0091126Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0092769Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0093272Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0095068Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0095367Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0095757Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0097464Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0097811Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0099382Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0099940Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0100296Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0100579Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0101577Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0101743Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0102053Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0102375Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0102752Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0103125Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0103744Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0104263Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0104482Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0104759Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0105582Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0105790Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0106042Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0106784Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0107027Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0107457Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0107839Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0108083Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0108937Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0109177Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0109450Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0109625Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0109803Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0110058Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0110175Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0110293Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0110413Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0110588Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0110903Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0111008Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0111101Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0111109Z 2023-01-11T21:03:38.0111352Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.0111523Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0111744Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0112060Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0112234Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0112527Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0112682Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0112876Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0113283Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0113504Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0113688Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0113882Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0114447Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0114727Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0114954Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0115651Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0115866Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0116630Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0116811Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0116955Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0117571Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0117723Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0117875Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0118127Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0118245Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0118366Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0118486Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0118635Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0118974Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0119092Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0119188Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0119194Z 2023-01-11T21:03:38.0120880Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0120954Z ================== 2023-01-11T21:03:38.0121018Z ================== 2023-01-11T21:03:38.0121191Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0121354Z  Write of size 1 at 0x7b7400037c77 by thread T2: 2023-01-11T21:03:38.0123526Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.0123791Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0124014Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0124294Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0124586Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0124884Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0125028Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0125252Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0125393Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0125399Z 2023-01-11T21:03:38.0125586Z  Previous write of size 1 at 0x7b7400037c77 by main thread: 2023-01-11T21:03:38.0127765Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.0128034Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0128255Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0128537Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0128824Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0129021Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0129223Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0129449Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0129664Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0130382Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0130647Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0130865Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0131278Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0131666Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0131877Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0132075Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0132865Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0133080Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0133284Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0134026Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0134278Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0134811Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0135194Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0135434Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0136473Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0136790Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0137181Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0137444Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0137703Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0138067Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0139708Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0139880Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0140019Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0140253Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0140758Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0140940Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0141083Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0141091Z 2023-01-11T21:03:38.0141502Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0141781Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0142030Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0142269Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0142588Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0143249Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0143680Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0144132Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0144716Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0145250Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0146859Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0147708Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0148173Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0149662Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0150144Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0150420Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0150754Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0152487Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0152965Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0154352Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0154845Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0155187Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0156853Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0157297Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0158968Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0159504Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0159816Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0160277Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0161926Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0162364Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0163914Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0164448Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0164854Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0166619Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0167093Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0168255Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0168548Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0168738Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0168890Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0169567Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0169756Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0169952Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0170154Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0170388Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0170608Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0170995Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0171381Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0171594Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0171823Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0172612Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0172825Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0173031Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0173781Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0174038Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0174607Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0174996Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0175242Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0176150Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0176365Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0176637Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0176812Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0176990Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0177250Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0177364Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0177485Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0177607Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0177754Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0178066Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0178185Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0178410Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0178416Z 2023-01-11T21:03:38.0178661Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.0178830Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0179051Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0179368Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0179542Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0179838Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0179998Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0180192Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0180585Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0180803Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0180987Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0181184Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0181784Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0181949Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0182173Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0182853Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0183061Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0183832Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0184044Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0184187Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0184800Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0184952Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0185103Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0185355Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0185469Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0185589Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0185712Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0185860Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0186185Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0186305Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0186397Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0186403Z 2023-01-11T21:03:38.0188055Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0188139Z ================== 2023-01-11T21:03:38.0188191Z ================== 2023-01-11T21:03:38.0188359Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0188535Z  Write of size 1 at 0x7b7400037c77 by thread T1: 2023-01-11T21:03:38.0190698Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.0191004Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0191224Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0191506Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0191795Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0192086Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0192214Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0192455Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0192591Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0192597Z 2023-01-11T21:03:38.0192788Z  Previous write of size 1 at 0x7b7400037c77 by main thread: 2023-01-11T21:03:38.0195009Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.0195319Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0195541Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0195819Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0196109Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0196299Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0196501Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0196727Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0196939Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0197689Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0197931Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0198152Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0198536Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0198966Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0199236Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0199526Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0200514Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0200846Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0201179Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0202463Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0202895Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0203559Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0204160Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0204577Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0205870Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0206292Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0206739Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0207011Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0207232Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0207604Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0207785Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0207970Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0208151Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0208350Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0208781Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0208959Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0209101Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0209111Z 2023-01-11T21:03:38.0209487Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0209765Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0209947Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0210253Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0210582Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0211318Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0211769Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0212199Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0212662Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0213196Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0214939Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0215936Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0216424Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0218229Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0218714Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0219020Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0219453Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0221179Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0221701Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0223422Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0223863Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0224299Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0226085Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0226648Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0228223Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0228601Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0228904Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0229370Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0230566Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0230876Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0231982Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0232271Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0232542Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0233728Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0234055Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0235223Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0235566Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0235759Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0235938Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0236615Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0236769Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0236965Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0237168Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0237431Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0237652Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0238035Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0238423Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0238641Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0238846Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0239628Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0239859Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0240064Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0240822Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0241049Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0241472Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0241893Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0242134Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0242987Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0243197Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0243468Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0243670Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0243850Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0244104Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0244222Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0244342Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0244463Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0244611Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0244921Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0245044Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0245124Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0245144Z 2023-01-11T21:03:38.0245377Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.0245543Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0245766Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0246084Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0246256Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0246554Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0246744Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0246936Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0247347Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0247565Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0247753Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0247948Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0248508Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0248670Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0248925Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0249591Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0249799Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0250564Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0250757Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0250887Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0251544Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0251692Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0251829Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0252081Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0252197Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0252315Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0252436Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0252587Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0252899Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0253017Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0253110Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0253115Z 2023-01-11T21:03:38.0254882Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0255008Z ================== 2023-01-11T21:03:38.0255149Z ================== 2023-01-11T21:03:38.0255325Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0255501Z  Write of size 1 at 0x7b7400037c77 by thread T3: 2023-01-11T21:03:38.0257707Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.0258058Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0258319Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0258676Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0259105Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0259542Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0259756Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0260104Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0260394Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0260405Z 2023-01-11T21:03:38.0260749Z  Previous write of size 1 at 0x7b7400037c77 by main thread: 2023-01-11T21:03:38.0264505Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.0264797Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0265021Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0265449Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0265794Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0266100Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0266312Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0266543Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0266779Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0268052Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0268480Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0268834Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0269255Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0269738Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0270064Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0270269Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0271445Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0271756Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0272048Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0273190Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0273450Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0274149Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0274973Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0275416Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0276655Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0277096Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0277578Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0277794Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0278107Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0278630Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0278804Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0278977Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0279134Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0279311Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0279826Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0280029Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0280169Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0280180Z 2023-01-11T21:03:38.0280561Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0280802Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0280985Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0281214Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0281516Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0282249Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0282757Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0283183Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0283608Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0284025Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0285427Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0286285Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0286608Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0289643Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0290170Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0290438Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0290806Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0292095Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0292408Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0293470Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0293762Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0294086Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0295584Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0295911Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0297015Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0297300Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0297496Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0297791Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0298940Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0299291Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0300347Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0300621Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0300900Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0302056Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0302434Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0303535Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0303824Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0304016Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0304161Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0304842Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0304996Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0305190Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0305393Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0305624Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0305839Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0306222Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0306631Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0306870Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0307071Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0307854Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0308060Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0308264Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0309021Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0309241Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0309669Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0310052Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0310288Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0311168Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0311406Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0311677Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0311852Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0312031Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0312285Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0312399Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0312514Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0312632Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0312778Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0313085Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0313199Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0313280Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0313299Z 2023-01-11T21:03:38.0313533Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.0313701Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0313922Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0314238Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0314411Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0314781Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0314936Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0315125Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0315530Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0315781Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0315965Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0316188Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0316747Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0316911Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0317135Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0317799Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0318006Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0318775Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0318955Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0319095Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0319718Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0319863Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0320030Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0320280Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0320395Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0320529Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0320708Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0320903Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0321332Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0321517Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0321665Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0321675Z 2023-01-11T21:03:38.0324187Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0324302Z ================== 2023-01-11T21:03:38.0324492Z ================== 2023-01-11T21:03:38.0324758Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0324995Z  Write of size 1 at 0x7b7400037c7a by thread T2: 2023-01-11T21:03:38.0328363Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:38.0328821Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0329327Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0329810Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0330316Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0330773Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0331027Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0331394Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0331615Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0331625Z 2023-01-11T21:03:38.0331978Z  Previous write of size 1 at 0x7b7400037c7a by main thread: 2023-01-11T21:03:38.0335819Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:38.0336253Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0336613Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0337034Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0337536Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0337854Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0338280Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0338681Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0339149Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0340476Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0340923Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0341315Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0342029Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0342619Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0342934Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0343212Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0344404Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0344713Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0345033Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0346409Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0346798Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0347499Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0348095Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0348387Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0349583Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0349925Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0350231Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0350489Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0350760Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0351074Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0351256Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0351425Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0351598Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0351826Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0352388Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0352562Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0352712Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0352722Z 2023-01-11T21:03:38.0353176Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0353449Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0353617Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0353826Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0354126Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0354893Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0355348Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0355782Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0356205Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0356734Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0357824Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0358446Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0358830Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0359874Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0360148Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0360335Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0360607Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0361745Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0362064Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0363149Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0363472Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0363741Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0364901Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0365220Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0366326Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0366671Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0366866Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0367162Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0368260Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0368583Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0369642Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0369918Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0370213Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0371404Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0371726Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0372825Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0373114Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0373304Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0373450Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0374125Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0374303Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0374616Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0374879Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0375115Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0375331Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0375715Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0376101Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0376311Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0376510Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0377294Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0377499Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0377707Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0378454Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0378740Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0379208Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0379592Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0379829Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0380690Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0380902Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0381175Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0381349Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0381528Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0381780Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0381892Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0382013Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0382130Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0382275Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0382592Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0382695Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0382786Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0382792Z 2023-01-11T21:03:38.0383029Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.0383202Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0383418Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0383762Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0383939Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0384262Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0384419Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0384607Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0385017Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0385237Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0385420Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0385614Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0386169Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0386331Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0386555Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0387218Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0387425Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0388190Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0388397Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0388537Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0389171Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0389319Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0389498Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0389853Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0390012Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0390193Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0390376Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0390596Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0391061Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0391248Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0391392Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0391401Z 2023-01-11T21:03:38.0394394Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0394518Z ================== 2023-01-11T21:03:38.0394677Z ================== 2023-01-11T21:03:38.0394982Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0395294Z  Write of size 1 at 0x7b7400037c7a by thread T1: 2023-01-11T21:03:38.0399469Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:38.0399996Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0400403Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0400927Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0401462Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0402131Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0402381Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0402764Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0402998Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0403027Z 2023-01-11T21:03:38.0403351Z  Previous write of size 1 at 0x7b7400037c7a by main thread: 2023-01-11T21:03:38.0407173Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:38.0407683Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0408104Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0408576Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0409038Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0409359Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0409701Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0410126Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0410507Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0411785Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0412200Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0412587Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0413250Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0413936Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0414320Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0414766Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0416297Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0416667Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0416999Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0418339Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0418755Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0419454Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0420127Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0420500Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0421994Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0422453Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0422912Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0423214Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0423619Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0424085Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0424279Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0424499Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0424718Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0424971Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0425536Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0425731Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0425887Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0425899Z 2023-01-11T21:03:38.0426320Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0426617Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0426839Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0427108Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0427475Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0428267Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0428761Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0429249Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0429735Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0430127Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0431256Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0431905Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0432204Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0433243Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0433517Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0433707Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0433981Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0435242Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0435595Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0436665Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0436946Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0437214Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0438383Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0438737Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0439866Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0440159Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0440353Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0440650Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0441748Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0442074Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0443150Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0443450Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0443719Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0444883Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0445204Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0446308Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0446624Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0446841Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0446990Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0447660Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0447816Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0448013Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0448214Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0448446Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0448668Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0449055Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0449439Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0449652Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0449853Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0450637Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0450872Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0451078Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0451843Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0452085Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0452516Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0452901Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0453144Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0453998Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0454210Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0454588Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0454762Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0454940Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0455258Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0455374Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0455494Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0455618Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0455764Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0456118Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0456227Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0456323Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0456329Z 2023-01-11T21:03:38.0456562Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.0456735Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0456953Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0457268Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0457440Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0457730Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0457884Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0458073Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0458479Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0458700Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0458885Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0459081Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0459642Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0459806Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0460029Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0460695Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0460966Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0461734Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0461914Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0462057Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0462665Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0462812Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0462962Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0463215Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0463327Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0463445Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0463563Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0463712Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0464020Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0464137Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0464229Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0464235Z 2023-01-11T21:03:38.0465952Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0466047Z ================== 2023-01-11T21:03:38.0466110Z ================== 2023-01-11T21:03:38.0466278Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0466441Z  Write of size 1 at 0x7b7400037c7a by thread T3: 2023-01-11T21:03:38.0468615Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:38.0468878Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0469098Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0469377Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0469664Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0469932Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0470072Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0470296Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0470431Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0470437Z 2023-01-11T21:03:38.0470623Z  Previous write of size 1 at 0x7b7400037c7a by main thread: 2023-01-11T21:03:38.0472831Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:38.0473091Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0473309Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0473585Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0473873Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0474064Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0474266Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0474491Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0474761Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0475481Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0475715Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0475965Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0476348Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0476763Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0476980Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0477180Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0477984Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0478187Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0478389Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0479135Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0479362Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0479791Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0480173Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0480438Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0481310Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0481533Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0481804Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0481966Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0482144Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0482394Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0482511Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0482628Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0482747Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0482892Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0483205Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0483322Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0483412Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0483486Z 2023-01-11T21:03:38.0483708Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0483876Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0483999Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0484160Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0484351Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0484805Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0485072Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0485362Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0485662Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0485986Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0487051Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0487689Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0487990Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0489011Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0489310Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0489528Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0489799Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0490940Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0491249Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0492328Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0492599Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0492867Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0494074Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0494505Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0495596Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0495887Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0496082Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0496375Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0497542Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0497894Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0498965Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0499238Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0499509Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0500668Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0501003Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0502148Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0502440Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0502631Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0502776Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0503450Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0503599Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0503791Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0503993Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0504227Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0504442Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0504823Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0505207Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0505445Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0505641Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0506463Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0506674Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0506879Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0507615Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0507839Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0508262Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0508646Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0508883Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0509751Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0510013Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0510285Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0510458Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0510626Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0510879Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0510993Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0511111Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0511231Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0511377Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0511685Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0511803Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0511894Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0511901Z 2023-01-11T21:03:38.0512120Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.0512286Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0512494Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0512806Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0512978Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0513272Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0513426Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0513614Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0514016Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0514231Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0514413Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0514727Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0515320Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0515483Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0515707Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0516376Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0516587Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0517372Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0517551Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0517695Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0518304Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0518452Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0518601Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0518855Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0518999Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0519117Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0519224Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0519368Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0519712Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0519831Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0519923Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0519929Z 2023-01-11T21:03:38.0521584Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0521658Z ================== 2023-01-11T21:03:38.0542170Z ================== 2023-01-11T21:03:38.0542573Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0542906Z  Write of size 1 at 0x7b7400037eeb by thread T2: 2023-01-11T21:03:38.0546932Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.0547441Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0547829Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0548344Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0549026Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0549582Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0549812Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0550195Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0550443Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0550454Z 2023-01-11T21:03:38.0550831Z  Previous write of size 1 at 0x7b7400037eeb by main thread: 2023-01-11T21:03:38.0554871Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.0555333Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0555714Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0556212Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0556729Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0557079Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0557429Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0557825Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0558240Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0559545Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0559955Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0560337Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0561017Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0561721Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0562100Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0562454Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0563838Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0564199Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0564581Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0565905Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0566393Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0567138Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0567829Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0568246Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0569831Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0570223Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0570686Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0570863Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0571043Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0571298Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0571412Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0571516Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0571639Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0571784Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0572092Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0572209Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0572341Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0572347Z 2023-01-11T21:03:38.0572582Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0572747Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0572870Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0573029Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0573302Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0573744Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0574016Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0574282Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0574821Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0575152Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0576224Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0576862Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0577225Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0578300Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0578591Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0578778Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0579047Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0580180Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0580493Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0581597Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0581898Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0582169Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0583336Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0583655Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0584743Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0585072Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0585281Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0585739Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0586845Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0587151Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0588222Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0588496Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0588761Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0589957Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0590300Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0591386Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0591688Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0591877Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0592025Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0592700Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0592853Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0593076Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0593275Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0593504Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0593760Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0594146Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0594538Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0594824Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0595028Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0595813Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0596022Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0596228Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0596973Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0597200Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0597626Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0598071Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0598315Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0599176Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0599384Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0599655Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0599832Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0600011Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0600264Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0600378Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0600496Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0600602Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0600751Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0601063Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0601181Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0601274Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0601280Z 2023-01-11T21:03:38.0601515Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.0601688Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0601910Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0602229Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0602432Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0602724Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0602902Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0603095Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0603752Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0604109Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0604388Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0604698Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0605650Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0605923Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0606342Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0607465Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0607817Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0609220Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0609557Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0609891Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0611092Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0611367Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0611633Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0612121Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0612310Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0612509Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0612729Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0612966Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0613532Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0613753Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0613902Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0613916Z 2023-01-11T21:03:38.0617153Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0617266Z ================== 2023-01-11T21:03:38.0617413Z ================== 2023-01-11T21:03:38.0617610Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0617867Z  Write of size 1 at 0x7b7400037eeb by thread T3: 2023-01-11T21:03:38.0621357Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.0621800Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0622122Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0622572Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0623021Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0623461Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0623690Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0624101Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0624321Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0624333Z 2023-01-11T21:03:38.0624702Z  Previous write of size 1 at 0x7b7400037eeb by main thread: 2023-01-11T21:03:38.0628245Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.0628644Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0629040Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0629462Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0629939Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0630216Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0630527Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0630796Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0631100Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0632135Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0632525Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0632881Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0633457Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0633978Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0634223Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0634768Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0635794Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0636099Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0636381Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0637130Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0637355Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0637783Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0638171Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0638411Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0639277Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0639494Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0639769Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0639981Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0640153Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0640411Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0640554Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0640675Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0640797Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0640944Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0641255Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0641383Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0641475Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0641482Z 2023-01-11T21:03:38.0641738Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0641911Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0642029Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0642191Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0642399Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0642851Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0643128Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0643391Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0643730Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0644057Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0645181Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0645864Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0646175Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0647215Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0647510Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0647682Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0647956Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0649134Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0649478Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0650605Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0650882Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0651151Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0652312Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0652644Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0653809Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0654099Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0654291Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0654823Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0656417Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0656853Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0658571Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0659024Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0659402Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0661106Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0661604Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0663213Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0663663Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0663979Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0664212Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0665311Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0665583Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0665867Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0666176Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0666527Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0666858Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0667422Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0667988Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0668310Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0668599Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0669799Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0670097Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0670453Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0671604Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0671946Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0672632Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0673224Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0673597Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0674986Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0675309Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0675728Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0675981Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0676261Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0676653Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0676814Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0676997Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0677246Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0677479Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0677949Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0678127Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0678304Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0678315Z 2023-01-11T21:03:38.0678646Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.0678907Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0679224Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0679697Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0679953Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0680377Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0680599Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0680888Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0681497Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0681844Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0682110Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0682391Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0683219Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0683475Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0683810Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0684793Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0685172Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0686529Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0686845Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0687079Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0688104Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0688347Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0688608Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0689031Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0689218Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0689417Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0689598Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0689836Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0690370Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0690566Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0690713Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0690724Z 2023-01-11T21:03:38.0693620Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0693821Z ================== 2023-01-11T21:03:38.0693953Z ================== 2023-01-11T21:03:38.0694294Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.0694691Z  Write of size 1 at 0x7b7400037eeb by thread T1: 2023-01-11T21:03:38.0698477Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.0698921Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0699286Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0699737Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0700237Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0700681Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.0700894Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.0701260Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.0701483Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.0701493Z 2023-01-11T21:03:38.0701810Z  Previous write of size 1 at 0x7b7400037eeb by main thread: 2023-01-11T21:03:38.0705603Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.0706107Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.0706472Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.0706950Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.0707430Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.0707796Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.0708130Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.0708524Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.0708879Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.0710089Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.0710481Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.0710840Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0711465Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0712146Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0712548Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0712885Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0714211Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0714681Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0715010Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0730124Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0730651Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0731477Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0732219Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0732629Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0734568Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0734944Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0735462Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0735761Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0736061Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0736548Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0736752Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0736952Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0737150Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0737436Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0738039Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0738239Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0738420Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0738436Z 2023-01-11T21:03:38.0738884Z  Location is heap block of size 2520 at 0x7b7400037a00 allocated by main thread: 2023-01-11T21:03:38.0739152Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.0739357Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.0739664Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.0740049Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.0740839Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.0741320Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.0741785Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.0742379Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.0742985Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.0744956Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.0746112Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.0746682Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.0748578Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.0749070Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.0749436Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.0749970Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.0752086Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.0752601Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0754688Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0755196Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0755693Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0757901Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0758512Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0760609Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0761145Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0761466Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0762030Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.0764060Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.0764679Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.0766659Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.0767124Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.0767648Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.0769763Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.0770327Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.0772398Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.0772948Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.0773300Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.0773554Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.0774913Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.0775202Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.0775563Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.0775912Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.0776330Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.0776733Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.0777412Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.0778121Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.0778498Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.0778933Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.0780419Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.0780790Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.0781169Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.0782519Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.0782887Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.0783672Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.0784380Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.0784785Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.0786362Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.0786768Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.0787320Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.0787611Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.0787968Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.0788468Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0788674Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0788867Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0789068Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0789349Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0789942Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0790138Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0790292Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0790302Z 2023-01-11T21:03:38.0790723Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.0791010Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.0791364Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.0791931Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.0792221Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.0792765Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.0793022Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.0793361Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.0794092Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.0794522Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.0794962Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.0795292Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.0796336Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.0796709Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.0797148Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.0798378Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.0798764Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.0800235Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.0800556Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.0800827Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.0801977Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.0802253Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.0802524Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.0802949Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.0803196Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.0803409Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.0803629Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.0803899Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.0804511Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.0804762Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.0804931Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.0804940Z 2023-01-11T21:03:38.0808261Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.0808377Z ================== 2023-01-11T21:03:38.1591318Z ================== 2023-01-11T21:03:38.1592014Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.1592373Z  Write of size 1 at 0x7b7400039a76 by main thread: 2023-01-11T21:03:38.1597239Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:38.1597710Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.1598134Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.1598625Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.1599160Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.1599789Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.1600175Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.1600654Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:38.1601028Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.1602376Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.1602789Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.1603089Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.1603557Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.1604077Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.1604320Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.1604569Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.1605655Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.1605972Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.1606319Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.1607231Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.1607556Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.1608123Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.1608763Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.1609163Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.1610331Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.1610550Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.1610823Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.1611017Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.1611199Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.1611452Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.1611566Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.1611683Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.1611846Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.1611994Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.1612305Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.1612435Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.1612530Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.1612537Z 2023-01-11T21:03:38.1612759Z  Previous write of size 1 at 0x7b7400039a76 by thread T2: 2023-01-11T21:03:38.1615733Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:38.1616236Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.1616642Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.1617168Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.1617702Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.1618205Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.1618453Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.1618873Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.1619116Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.1619125Z 2023-01-11T21:03:38.1619407Z  Location is heap block of size 2520 at 0x7b7400039800 allocated by main thread: 2023-01-11T21:03:38.1619671Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.1619958Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.1620219Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.1620559Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.1621386Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.1621869Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.1622285Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.1622752Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.1623337Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.1625161Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.1626253Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.1626783Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.1628631Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.1629077Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.1629376Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.1629839Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.1631803Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.1632377Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.1633702Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.1634072Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.1634350Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.1635613Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.1635949Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.1637044Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.1637333Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.1637554Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.1637848Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.1638998Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.1639306Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.1640381Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.1640656Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.1640922Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.1642105Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.1642463Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.1643552Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.1643841Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.1644031Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.1644179Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.1644851Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.1645007Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.1645201Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.1645398Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.1645657Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.1645872Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.1646280Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.1646666Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.1646879Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.1647078Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.1647874Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.1648079Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.1648285Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.1649025Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.1649249Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.1649673Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.1650053Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.1650319Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.1651191Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.1651446Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.1651718Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.1651891Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.1652067Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.1652322Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.1652424Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.1652542Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.1652660Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.1652809Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.1653118Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.1653236Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.1653331Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.1653337Z 2023-01-11T21:03:38.1653583Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.1653751Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.1653970Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.1654300Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.1654581Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.1654873Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.1655066Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.1655254Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.1655700Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.1655921Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.1656106Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.1656302Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.1656862Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.1657025Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.1657249Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.1657932Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.1658141Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.1658905Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.1659084Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.1659227Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.1659829Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.1660046Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.1660197Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.1660449Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.1660563Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.1660685Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.1660807Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.1660940Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.1661250Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.1661367Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.1661459Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.1661465Z 2023-01-11T21:03:38.1663359Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:38.1663436Z ================== 2023-01-11T21:03:38.1948152Z ================== 2023-01-11T21:03:38.1948715Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.1949159Z  Write of size 1 at 0x7b7400039f61 by main thread: 2023-01-11T21:03:38.1953604Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:38.1954325Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.1954758Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.1955230Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.1955709Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.1956029Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.1956342Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.1956716Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:38.1957085Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.1958368Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.1958795Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.1959119Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.1959508Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.1960056Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.1960396Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.1960775Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.1961877Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.1962194Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.1962533Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.1963535Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.1963851Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.1964342Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.1964775Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.1965019Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.1966099Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.1966409Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.1966857Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.1967089Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.1967388Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.1967750Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.1967904Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.1968039Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.1968180Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.1968414Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.1968825Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.1968997Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.1969091Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.1969098Z 2023-01-11T21:03:38.1969304Z  Previous write of size 1 at 0x7b7400039f61 by thread T1: 2023-01-11T21:03:38.1971977Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:38.1972280Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.1972598Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.1972895Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.1973255Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.1973665Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.1973861Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.1974135Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.1974276Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.1974285Z 2023-01-11T21:03:38.1974800Z  Location is heap block of size 2520 at 0x7b7400039800 allocated by main thread: 2023-01-11T21:03:38.1975042Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.1975205Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.1975476Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.1975773Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.1976452Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.1976862Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.1977286Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.1977732Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.1978234Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.1979903Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.1980958Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.1981281Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.1982586Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.1982961Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.1983289Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.1983725Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.1985644Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.1986198Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.1987885Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.1988244Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.1988636Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.1990124Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.1990474Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.1991649Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.1992016Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.1992211Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.1992547Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.1993748Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.1994053Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.1995293Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.1995612Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.1995906Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.1997192Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.1997530Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.1998708Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.1999003Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.1999199Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.1999411Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.2000175Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.2000333Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.2000528Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.2000730Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.2000963Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.2001181Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.2001563Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.2001946Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.2002158Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.2002395Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2003188Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2003397Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2003601Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2004370Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.2004639Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.2005066Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.2005451Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.2005691Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.2006554Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2006764Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2007035Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.2007212Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.2007390Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.2007645Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2007750Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2007872Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2007994Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2008141Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2008457Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2008607Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2008699Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2008705Z 2023-01-11T21:03:38.2008952Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.2009120Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2009370Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2009689Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2009863Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2010156Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2010296Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2010488Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2010891Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2011110Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2011298Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2011493Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2012053Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2012216Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2012445Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2013121Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2013332Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2014252Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2014639Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2014790Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2015459Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2015616Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2015766Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2016020Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2016138Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2016261Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2016384Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2016539Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2016850Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2016972Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2017053Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2017059Z 2023-01-11T21:03:38.2018742Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882ddc1) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:38.2018839Z ================== 2023-01-11T21:03:38.2279719Z ================== 2023-01-11T21:03:38.2280159Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2280508Z  Write of size 2 at 0x7b8400006d6c by thread T3: 2023-01-11T21:03:38.2303718Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:38.2304036Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2304263Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2304611Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2304902Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2305172Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2305302Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2305526Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2305665Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2305672Z 2023-01-11T21:03:38.2305901Z  Previous write of size 2 at 0x7b8400006d6c by main thread: 2023-01-11T21:03:38.2308095Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:38.2308435Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2308656Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2308941Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2309231Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2309424Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2309622Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2309854Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2310068Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2310847Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2311060Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2311261Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2312049Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2312282Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2312511Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2313320Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2313572Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2314430Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2314730Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2314912Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2315169Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2315285Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2315406Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2315528Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2315674Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2315971Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2316088Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2316179Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2316185Z 2023-01-11T21:03:38.2316443Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2316610Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2316736Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2316897Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2317102Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2317568Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2317837Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2318098Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2318360Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2318684Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2319751Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2320391Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2320692Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2321767Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2322052Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2322225Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2322904Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2323079Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2323283Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2324093Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2324333Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2325231Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2325462Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2325643Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2325896Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2326001Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2326118Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2326238Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2326382Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2326785Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2326953Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2327076Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2327084Z 2023-01-11T21:03:38.2327433Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.2327708Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2328058Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2328710Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2329899Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2330355Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2330607Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2330997Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2331709Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2332075Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2332358Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2332668Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2333814Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2334142Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2334619Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2335654Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2336019Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2337091Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2337356Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2337520Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2338308Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2338548Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2338816Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2339238Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2339418Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2339611Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2339803Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2340148Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2340657Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2340831Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2340980Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2340991Z 2023-01-11T21:03:38.2343659Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2343780Z ================== 2023-01-11T21:03:38.2343907Z ================== 2023-01-11T21:03:38.2344198Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2344460Z  Write of size 2 at 0x7b8400006d70 by thread T3: 2023-01-11T21:03:38.2347021Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:38.2347373Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2347661Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2348037Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2348382Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2348810Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2348990Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2349346Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2349546Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2349555Z 2023-01-11T21:03:38.2349844Z  Previous write of size 2 at 0x7b8400006d70 by main thread: 2023-01-11T21:03:38.2352890Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:38.2353259Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2353575Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2353963Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2354365Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2354721Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2354996Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2355363Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2355707Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2356966Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2357289Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2357581Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2358689Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2358990Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2359277Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2360410Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2360761Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2361952Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2362299Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2362611Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2362992Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2363151Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2363335Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2363511Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2363732Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2364207Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2364377Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2364522Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2364531Z 2023-01-11T21:03:38.2364895Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2365152Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2365342Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2365567Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2365862Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2366518Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2366924Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2367313Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2367684Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2368195Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2369780Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2370781Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2371339Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2373126Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2373586Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2373890Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2375169Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2375567Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2375921Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2377402Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2377825Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2379297Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2379653Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2379964Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2380402Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2380597Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2380795Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2380996Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2381249Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2381796Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2382006Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2382158Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2382172Z 2023-01-11T21:03:38.2382543Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.2382820Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2383193Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2383720Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2384061Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2384598Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2384858Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2385181Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2385882Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2386258Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2386566Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2386896Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2387840Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2388109Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2388496Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2389716Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2390100Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2392946Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2393312Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2393563Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2394778Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2395048Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2395324Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2395793Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2395991Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2396198Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2396402Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2396665Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2397208Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2397423Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2397590Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2397600Z 2023-01-11T21:03:38.2400233Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2400310Z ================== 2023-01-11T21:03:38.2400374Z ================== 2023-01-11T21:03:38.2400547Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2400721Z  Write of size 2 at 0x7b8400006d6c by thread T1: 2023-01-11T21:03:38.2403112Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:38.2403615Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2403964Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2404434Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2404991Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2405296Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2405439Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2405666Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2405801Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2405808Z 2023-01-11T21:03:38.2406017Z  Previous write of size 2 at 0x7b8400006d6c by main thread: 2023-01-11T21:03:38.2408150Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:38.2408479Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2408696Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2409002Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2409289Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2409479Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2409668Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2409894Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2410107Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2410899Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2411114Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2411312Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2412098Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2412301Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2412504Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2413366Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2413619Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2414579Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2414790Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2414970Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2415223Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2415338Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2415458Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2415580Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2415716Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2416027Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2416208Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2416337Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2416346Z 2023-01-11T21:03:38.2416689Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2416946Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2417121Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2417369Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2417681Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2418393Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2419001Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2419543Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2419992Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2420612Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2422241Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2422883Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2423185Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2424254Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2424564Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2424738Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2425423Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2425598Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2425802Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2426609Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2426850Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2427704Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2427922Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2428129Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2428372Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2428489Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2428632Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2428752Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2428898Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2429209Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2429360Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2429452Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2429459Z 2023-01-11T21:03:38.2429684Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.2429851Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2430072Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2430445Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2430659Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2431010Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2431255Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2431580Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2432263Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2432644Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2432943Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2433269Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2434280Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2434617Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2435013Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2436339Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2436735Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2437942Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2438294Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2438631Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2439477Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2439628Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2439778Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2440031Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2440167Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2440312Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2440433Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2440579Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2440894Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2441011Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2441091Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2441109Z 2023-01-11T21:03:38.2442836Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2442935Z ================== 2023-01-11T21:03:38.2442999Z ================== 2023-01-11T21:03:38.2443247Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2443579Z  Write of size 2 at 0x7b8400006d6c by thread T2: 2023-01-11T21:03:38.2445954Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:38.2446231Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2446456Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2446740Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2447028Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2447297Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2447437Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2447663Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2447833Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2447840Z 2023-01-11T21:03:38.2448014Z  Previous write of size 2 at 0x7b8400006d6c by main thread: 2023-01-11T21:03:38.2450239Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:38.2450497Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2450715Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2451037Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2451321Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2451515Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2451716Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2451941Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2452154Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2452930Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2453176Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2453375Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2454202Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2454509Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2454716Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2455523Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2455767Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2456616Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2456841Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2457006Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2457265Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2457431Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2457550Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2457672Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2457818Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2458162Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2458283Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2458376Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2458382Z 2023-01-11T21:03:38.2458603Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2458769Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2458879Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2459041Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2459246Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2459830Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2460212Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2460645Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2460993Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2461388Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2462723Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2463825Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2464346Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2465884Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2466295Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2466485Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2467434Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2467712Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2468005Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2469155Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2469552Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2470659Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2470950Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2471214Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2471514Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2471635Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2471758Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2471931Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2472166Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2472597Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2472751Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2472841Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2472848Z 2023-01-11T21:03:38.2473239Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.2473542Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2473928Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2474244Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2474420Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2474784Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2474943Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2475183Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2475794Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2476249Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2476447Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2476744Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2479255Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2480588Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2480997Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2482218Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2482607Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2485911Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2486240Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2486506Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2487537Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2487738Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2487878Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2488166Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2488287Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2488408Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2488531Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2488678Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2488987Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2489111Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2489204Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2489210Z 2023-01-11T21:03:38.2490954Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2491091Z ================== 2023-01-11T21:03:38.2491280Z ================== 2023-01-11T21:03:38.2491612Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2491938Z  Write of size 2 at 0x7b8400006d72 by thread T3: 2023-01-11T21:03:38.2494136Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:38.2494527Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2494749Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2495080Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2495372Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2495646Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2495789Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2496016Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2496153Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2496159Z 2023-01-11T21:03:38.2496346Z  Previous write of size 2 at 0x7b8400006d72 by main thread: 2023-01-11T21:03:38.2498472Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:38.2498732Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2498954Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2499235Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2499522Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2499746Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2499944Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2500193Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2500404Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2501198Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2501413Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2501614Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2502403Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2502607Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2502814Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2503624Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2503889Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2504780Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2504991Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2505170Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2505426Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2505542Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2505663Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2505770Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2505916Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2506227Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2506399Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2506540Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2506548Z 2023-01-11T21:03:38.2506881Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2507140Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2507335Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2507585Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2507928Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2508651Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2509095Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2509585Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2510040Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2510667Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2512500Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2513660Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2514071Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2515637Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2516045Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2516386Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2517528Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2517785Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2518120Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2519424Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2519820Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2521086Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2521362Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2521638Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2522071Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2522254Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2522442Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2522632Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2522851Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2523474Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2523666Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2523818Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2523827Z 2023-01-11T21:03:38.2524199Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.2524541Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2524899Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2525399Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2525714Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2526260Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2526541Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2526883Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2527647Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2528150Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2528476Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2532733Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2535932Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2536112Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2536339Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2537013Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2537308Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2538109Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2538289Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2538435Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2539048Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2539195Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2539345Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2539605Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2539722Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2539841Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2539962Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2540111Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2540423Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2540541Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2540633Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2540642Z 2023-01-11T21:03:38.2542323Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2542443Z ================== 2023-01-11T21:03:38.2542557Z ================== 2023-01-11T21:03:38.2542732Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2542912Z  Write of size 2 at 0x7b8400006d72 by thread T1: 2023-01-11T21:03:38.2545085Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:38.2545346Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2545570Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2545853Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2546143Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2546412Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2546553Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2546780Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2546918Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2546924Z 2023-01-11T21:03:38.2547110Z  Previous write of size 2 at 0x7b8400006d72 by main thread: 2023-01-11T21:03:38.2550165Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:38.2550625Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2551020Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2551518Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2551916Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2552205Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2552513Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2552875Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2553234Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2554668Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2555112Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2555445Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2556659Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2557111Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2557507Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2560035Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2561599Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2562758Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2563070Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2563362Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2563679Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2563800Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2563907Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2564069Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2564267Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2564633Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2564809Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2565014Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2565024Z 2023-01-11T21:03:38.2566411Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2567755Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2567934Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2568170Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2568490Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2569006Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2569347Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2574981Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2575490Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2575834Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2576913Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2577552Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2577941Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2578997Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2579276Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2579454Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2580152Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2580332Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2580540Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2581497Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2581866Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2583044Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2583324Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2583594Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2583977Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2584142Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2584316Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2584496Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2584721Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2585191Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2585370Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2585506Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2585516Z 2023-01-11T21:03:38.2585881Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.2586113Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2586441Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2586916Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2587143Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2587577Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2587809Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2588098Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2588741Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2589065Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2589340Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2589633Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2590341Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2590531Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2590859Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2591848Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2592173Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2593342Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2593608Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2593822Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2594830Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2595062Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2595307Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2595679Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2595869Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2596038Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2596281Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2596510Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2596980Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2597169Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2597345Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2597356Z 2023-01-11T21:03:38.2599260Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2599355Z ================== 2023-01-11T21:03:38.2599512Z ================== 2023-01-11T21:03:38.2599732Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2600003Z  Write of size 2 at 0x7b8400006d72 by thread T2: 2023-01-11T21:03:38.2603549Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:38.2604026Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2604364Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2604817Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2605392Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2605850Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2606124Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2606496Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2606752Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2606763Z 2023-01-11T21:03:38.2607113Z  Previous write of size 2 at 0x7b8400006d72 by main thread: 2023-01-11T21:03:38.2610938Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:38.2611405Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2611755Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2612186Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2612672Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2612910Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2613184Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2613576Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2613931Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2615469Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2615876Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2616228Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2617616Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2617952Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2618287Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2619595Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2620026Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2621359Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2621849Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2622147Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2622551Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2622734Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2622930Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2623114Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2623350Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2623845Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2624028Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2624185Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2624198Z 2023-01-11T21:03:38.2624575Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2624833Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2625039Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2625289Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2625591Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2626278Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2626694Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2627099Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2627366Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2627808Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2629520Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2630498Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2630974Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2632590Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2633014Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2633285Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2634057Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2634357Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2634735Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2636051Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2636446Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2637734Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2638066Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2638346Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2638746Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2638937Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2639108Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2639285Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2639500Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2639988Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2640158Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2640303Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2640310Z 2023-01-11T21:03:38.2640665Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.2640904Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2641130Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2641487Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2641663Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2641997Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2642223Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2642511Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2643104Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2643447Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2643756Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2644064Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2644942Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2645198Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2645587Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2646713Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2647077Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2648324Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2648700Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2648916Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2649961Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2650197Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2650444Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2650840Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2651034Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2651240Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2651448Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2651715Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2652212Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2652394Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2652529Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2652539Z 2023-01-11T21:03:38.2655499Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2655627Z ================== 2023-01-11T21:03:38.2655833Z ================== 2023-01-11T21:03:38.2656114Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2656412Z  Write of size 2 at 0x7b8400006d74 by thread T2: 2023-01-11T21:03:38.2659969Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:38.2660438Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2660765Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2661205Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2661655Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2662093Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2662327Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2662727Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2662958Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2662968Z 2023-01-11T21:03:38.2663338Z  Previous write of size 2 at 0x7b8400006d74 by main thread: 2023-01-11T21:03:38.2666137Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:38.2666474Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2666697Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2667006Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2667295Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2667491Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2667691Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2667917Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2668117Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2668913Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2669129Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2669333Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2670120Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2670322Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2670527Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2671401Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2671656Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2672515Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2672724Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2672905Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2673161Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2673279Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2673398Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2673519Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2673666Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2673963Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2674088Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2674184Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2674190Z 2023-01-11T21:03:38.2674413Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2674646Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2674775Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2674938Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2675144Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2675588Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2675918Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2676186Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2676450Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2676775Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2677841Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2678479Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2678780Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2679826Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2680137Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2680311Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2681002Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2681180Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2681385Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2682199Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2682438Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2683306Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2683541Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2683721Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2683977Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2684108Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2684230Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2684350Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2684497Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2684806Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2684978Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2685115Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2685123Z 2023-01-11T21:03:38.2685453Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.2685653Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2685974Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2686485Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2686749Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2687161Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2687410Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2687711Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2688294Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2688563Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2688863Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2689188Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2689902Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2690173Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2690643Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2691815Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2692163Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2693410Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2693678Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2693870Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2694941Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2695202Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2695452Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2695909Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2696111Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2697295Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2698413Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2698629Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2699120Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2699302Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2699462Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2699472Z 2023-01-11T21:03:38.2702234Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2702416Z ================== 2023-01-11T21:03:38.2702514Z ================== 2023-01-11T21:03:38.2702805Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2703093Z  Write of size 2 at 0x7b8400006d76 by thread T2: 2023-01-11T21:03:38.2706759Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:38.2707218Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2707546Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2707970Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2708457Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2708910Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2709122Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2709455Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2709744Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2709754Z 2023-01-11T21:03:38.2710103Z  Previous write of size 2 at 0x7b8400006d76 by main thread: 2023-01-11T21:03:38.2713902Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:38.2714406Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2714878Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2715416Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2715916Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2716280Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2716660Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2717009Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2717339Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2718721Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2719144Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2719457Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2720927Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2721329Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2721701Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2722860Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2723205Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2724630Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2724969Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2725218Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2725658Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2725805Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2725925Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2726045Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2726222Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2726598Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2726781Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2726887Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2726894Z 2023-01-11T21:03:38.2727251Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2727513Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2727685Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2727866Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2728162Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2728708Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2729111Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2729514Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2729909Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2730403Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2731999Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2732966Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2733428Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2734897Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2735179Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2735360Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2736103Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2736288Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2736498Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2737323Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2737690Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2738739Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2739002Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2739229Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2739537Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2739689Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2739800Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2739949Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2740128Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2740526Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2740665Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2740781Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2740790Z 2023-01-11T21:03:38.2741025Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.2741226Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2741481Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2741842Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2742062Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2742416Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2742611Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2742789Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2743251Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2743540Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2743771Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2744005Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2744684Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2744883Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2745143Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2745973Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2746217Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2747074Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2747304Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2747462Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2748201Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2748377Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2748577Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2748953Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2749124Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2749314Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2749502Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2749712Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2750247Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2750448Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2750599Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2750608Z 2023-01-11T21:03:38.2753339Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2753466Z ================== 2023-01-11T21:03:38.2753565Z ================== 2023-01-11T21:03:38.2753837Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2754098Z  Write of size 2 at 0x7b8400006d74 by thread T3: 2023-01-11T21:03:38.2757657Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:38.2758183Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2758550Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2759008Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2759353Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2759794Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2760025Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2760450Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2760690Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2760700Z 2023-01-11T21:03:38.2761024Z  Previous write of size 2 at 0x7b8400006d74 by main thread: 2023-01-11T21:03:38.2763184Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:38.2763466Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2763689Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2763973Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2764427Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2764791Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2765212Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2765549Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2765908Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2767352Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2767718Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2768094Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2769498Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2769827Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2770175Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2771623Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2772130Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2773769Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2774162Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2774579Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2775044Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2775229Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2775405Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2775611Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2775857Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2776420Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2776619Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2776771Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2776781Z 2023-01-11T21:03:38.2777154Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2777446Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2777663Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2777956Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2778296Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2779072Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2779534Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2780029Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2780641Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2781289Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2783294Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2784164Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2784474Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2785518Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2785791Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2786003Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2786719Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2786901Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2787110Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2787920Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2788176Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2789029Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2789242Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2789422Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2789677Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2789791Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2789908Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2790029Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2790190Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2790500Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2790616Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2790711Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2790755Z 2023-01-11T21:03:38.2791035Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.2791206Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2791427Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2791745Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2791921Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2792212Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2792364Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2792554Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2792958Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2793180Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2793365Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2793548Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2794118Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2794284Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2794507Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2795260Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2795502Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2796301Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2796483Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2796624Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2797240Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2797387Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2797539Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2797791Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2797907Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2798029Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2798151Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2798303Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2798612Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2798730Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2798812Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2798817Z 2023-01-11T21:03:38.2800488Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2800596Z ================== 2023-01-11T21:03:38.2800729Z ================== 2023-01-11T21:03:38.2800899Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.2801074Z  Write of size 2 at 0x7b8400006d74 by thread T1: 2023-01-11T21:03:38.2803241Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:38.2803501Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2803729Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2804006Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2804298Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2804563Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.2804708Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.2804930Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.2805066Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.2805072Z 2023-01-11T21:03:38.2805261Z  Previous write of size 2 at 0x7b8400006d74 by main thread: 2023-01-11T21:03:38.2807451Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:38.2807733Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.2807955Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.2808234Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.2808523Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.2808715Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.2808916Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.2809144Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.2809356Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.2810136Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.2810353Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.2810557Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.2811381Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.2811609Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.2811815Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.2812624Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2812864Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2813725Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2813948Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2814121Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2814481Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2814596Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2814748Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2814934Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2815205Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2815703Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2815982Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2816130Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2816139Z 2023-01-11T21:03:38.2816542Z  Location is heap block of size 5040 at 0x7b8400006400 allocated by main thread: 2023-01-11T21:03:38.2816791Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.2816972Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.2817259Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.2817584Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.2818323Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.2818787Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.2819213Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.2819654Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.2820169Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.2821996Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.2823070Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.2823658Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.2825480Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.2825971Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.2826255Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.2827387Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.2827682Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.2827892Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.2828724Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.2828971Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.2829923Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.2830133Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.2830319Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.2830576Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2830692Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2830816Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2830939Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2831088Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2831401Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2831525Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2831606Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2831613Z 2023-01-11T21:03:38.2831856Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.2832025Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.2832245Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.2832563Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.2832740Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.2833039Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.2833196Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.2833389Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.2833799Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.2834019Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.2834206Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.2834434Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.2835117Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.2835283Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.2835580Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.2836682Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.2837027Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.2838312Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.2838626Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.2838848Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.2840023Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.2840307Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.2840591Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.2840971Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.2841154Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.2841274Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.2841396Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.2841546Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.2841886Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.2842010Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.2842105Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.2842112Z 2023-01-11T21:03:38.2843799Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.2843871Z ================== 2023-01-11T21:03:38.3374228Z ================== 2023-01-11T21:03:38.3376538Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.3376858Z  Write of size 2 at 0x7b840001356c by main thread: 2023-01-11T21:03:38.3380157Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:38.3380559Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.3380916Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.3381381Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.3382113Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.3382568Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.3382902Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.3383182Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:38.3383387Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.3384483Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.3384751Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.3385040Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.3385568Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.3386040Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.3386371Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.3386693Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.3387988Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.3388259Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.3388487Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.3389746Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.3389980Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.3390407Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.3390791Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.3391028Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.3392228Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.3392484Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.3392876Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.3393180Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.3393512Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.3393964Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3394145Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3394340Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3394542Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3394905Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3395512Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3395653Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3395739Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3395749Z 2023-01-11T21:03:38.3396004Z  Previous write of size 2 at 0x7b840001356c by thread T2: 2023-01-11T21:03:38.3399727Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:38.3399995Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.3400216Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.3400496Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.3400786Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.3401052Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.3401194Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.3401415Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.3401592Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.3401599Z 2023-01-11T21:03:38.3401820Z  Location is heap block of size 5040 at 0x7b8400012c00 allocated by main thread: 2023-01-11T21:03:38.3401974Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.3402096Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.3402252Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.3402482Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.3402927Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.3403194Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.3403459Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.3403722Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.3404043Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.3405121Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.3405743Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.3406250Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.3407515Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.3408025Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.3408368Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.3408833Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.3410747Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.3411316Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.3413461Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.3413783Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.3414055Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.3415337Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.3415656Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.3416742Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.3417105Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.3417297Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.3417624Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.3418720Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.3419029Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.3420107Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.3420380Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.3420648Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.3421841Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.3422187Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.3423274Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.3423574Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.3423766Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.3423903Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.3424587Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.3424738Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.3424931Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.3425158Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.3425389Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.3425617Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.3426013Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.3426399Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.3426611Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.3426810Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.3427590Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.3427795Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.3428001Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.3428740Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.3428965Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.3429390Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.3429826Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.3430066Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.3430932Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.3431141Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.3431410Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.3431585Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.3431763Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.3432016Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3432130Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3432237Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3432354Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3432501Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3432807Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3432929Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3433021Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3433027Z 2023-01-11T21:03:38.3433264Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.3433434Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.3433652Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.3433972Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.3434191Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.3434483Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.3434709Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.3434930Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.3435341Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.3435552Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.3435738Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.3435931Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.3436491Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.3436657Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.3436881Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.3437668Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.3437879Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.3438644Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.3438819Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.3438993Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.3439629Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.3439775Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.3439926Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.3440182Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3440298Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3440417Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3440537Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3440684Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3440983Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3441101Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3441193Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3441198Z 2023-01-11T21:03:38.3442847Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:38.3442932Z ================== 2023-01-11T21:03:38.3626749Z ================== 2023-01-11T21:03:38.3627301Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.3627605Z  Write of size 4 at 0x7b9400038358 by main thread: 2023-01-11T21:03:38.3636019Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:38.3636515Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.3636764Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.3637127Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.3637500Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.3637843Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.3638221Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.3638530Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:38.3638761Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.3639755Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.3642828Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.3643246Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.3643923Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.3644534Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.3644985Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.3645368Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.3646824Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.3647212Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.3647604Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.3648934Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.3649320Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.3650099Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.3650749Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.3651196Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.3652178Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.3652464Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.3652740Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.3652917Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.3653145Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.3653400Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3653517Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3653637Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3653760Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3653910Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3654529Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3654739Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3654851Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3654858Z 2023-01-11T21:03:38.3655084Z  Previous write of size 4 at 0x7b9400038358 by thread T1: 2023-01-11T21:03:38.3657262Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:38.3657523Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.3657744Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.3658093Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.3658425Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.3658693Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.3658836Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.3659060Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.3659202Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.3659208Z 2023-01-11T21:03:38.3659428Z  Location is heap block of size 10080 at 0x7b9400037000 allocated by main thread: 2023-01-11T21:03:38.3659596Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.3659709Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.3659871Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.3660076Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.3660517Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.3660786Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.3661055Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.3661320Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.3661649Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.3662726Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.3663411Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.3663727Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.3664753Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.3665026Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.3665212Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.3665482Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.3666631Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.3666989Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.3668051Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.3668338Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.3668605Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.3669766Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.3670086Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.3671242Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.3671530Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.3671722Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.3672015Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.3673120Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.3673429Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.3674517Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.3674896Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.3675161Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.3676318Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.3676639Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.3677746Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.3678034Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.3678256Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.3678405Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.3679108Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.3679263Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.3679456Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.3679656Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.3679891Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.3680108Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.3680491Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.3680881Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.3681092Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.3681289Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.3682072Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.3682289Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.3682492Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.3683287Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.3683508Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.3683936Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.3684323Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.3684561Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.3685421Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.3685632Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.3685903Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.3686078Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.3686255Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.3686508Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3686620Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3686739Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3686859Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3687033Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3687344Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3687462Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3687581Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3687588Z 2023-01-11T21:03:38.3687795Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.3687963Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.3688183Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.3688501Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.3688672Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.3688963Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.3689115Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.3689303Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.3689707Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.3689926Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.3690110Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.3690303Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.3690861Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.3691025Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.3691249Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.3691915Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.3692158Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.3692959Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.3693138Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.3693298Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.3693907Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.3694054Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.3694208Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.3694569Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3694685Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3694790Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3706921Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3707163Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3707489Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3707619Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3707718Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3707725Z 2023-01-11T21:03:38.3709435Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:38.3709644Z ================== 2023-01-11T21:03:38.3755309Z ================== 2023-01-11T21:03:38.3755790Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.3756789Z  Write of size 8 at 0x7ba40002e3b0 by main thread: 2023-01-11T21:03:38.3761478Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:38.3764741Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.3765720Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.3766825Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.3768210Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.3769133Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.3769869Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.3770558Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:38.3771418Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.3773210Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.3775226Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.3776064Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.3777613Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.3779290Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.3780060Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.3781854Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.3783735Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.3785775Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.3787311Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.3787795Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.3788234Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3788611Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3788867Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3789158Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3789435Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3789913Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3790348Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3790580Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3790695Z 2023-01-11T21:03:38.3790925Z  Previous write of size 8 at 0x7ba40002e3b0 by thread T2: 2023-01-11T21:03:38.3793240Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:38.3794976Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.3795450Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.3795959Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.3796532Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.3797086Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.3797546Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.3797924Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.3798330Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.3798492Z 2023-01-11T21:03:38.3798722Z  Location is heap block of size 20160 at 0x7ba40002d000 allocated by main thread: 2023-01-11T21:03:38.3799056Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.3799315Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.3799630Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.3800014Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.3800668Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.3801354Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.3801884Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.3802411Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.3802998Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.3804387Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.3806147Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.3807068Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.3808417Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.3809785Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.3810231Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.3811107Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.3811948Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.3812338Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.3813363Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.3814481Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.3815667Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.3816687Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.3817086Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.3817537Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3817913Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3818156Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3818412Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3818696Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3819172Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3819595Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3819834Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3819963Z 2023-01-11T21:03:38.3820185Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.3820520Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.3820893Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.3821436Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.3821922Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.3822396Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.3822844Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.3823191Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.3823797Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.3824283Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.3824694Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.3825118Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.3825927Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.3826631Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.3827023Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.3827921Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.3828774Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.3829749Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.3830643Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.3830960Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.3831731Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.3832466Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.3832781Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.3833198Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.3833599Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.3833838Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.3834093Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.3834378Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.3834951Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.3835378Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.3835608Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.3835736Z 2023-01-11T21:03:38.3837401Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:38.3838430Z ================== 2023-01-11T21:03:38.4111305Z ================== 2023-01-11T21:03:38.4112989Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.4113811Z  Write of size 8 at 0x7ba40002f758 by main thread: 2023-01-11T21:03:38.4122569Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:38.4125644Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.4126569Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.4127496Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.4128772Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.4129683Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.4130420Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.4131228Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:38.4132010Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.4134020Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.4136007Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.4136798Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.4138727Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.4142505Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.4143304Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.4146824Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.4148894Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.4151099Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.4153035Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.4153893Z #19 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.4154838Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.4155586Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.4156068Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.4156514Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.4157070Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.4158088Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.4158876Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.4159366Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.4159612Z 2023-01-11T21:03:38.4160050Z  Previous write of size 8 at 0x7ba40002f758 by thread T2: 2023-01-11T21:03:38.4164652Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:38.4167940Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.4168938Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.4169876Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.4171083Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.4172107Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.4172998Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.4173727Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.4174478Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.4174777Z 2023-01-11T21:03:38.4175188Z  Location is heap block of size 20160 at 0x7ba40002d000 allocated by main thread: 2023-01-11T21:03:38.4175808Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.4176260Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.4176841Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.4177659Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.4178891Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.4180193Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.4181148Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.4182157Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.4183221Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.4185940Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.4189246Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.4190889Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.4193364Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.4196021Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.4196841Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.4198458Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.4200025Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.4200792Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.4202718Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.4204607Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.4206665Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.4208562Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.4209288Z #22 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc341) 2023-01-11T21:03:38.4210116Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.4210811Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.4211266Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.4211735Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.4212277Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.4213158Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.4213957Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.4214487Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.4214725Z 2023-01-11T21:03:38.4215125Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.4215731Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.4216465Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.4217473Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.4218401Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.4219272Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.4220081Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.4220775Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.4221906Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.4222818Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.4223543Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.4224253Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.4225678Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.4226979Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.4227711Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.4229380Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.4230933Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.4232776Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.4234529Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.4235292Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.4236750Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.4238114Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.4238682Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.4239448Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.4240105Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.4240592Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.4241048Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.4241550Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.4242437Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.4243290Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.4243707Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.4243953Z 2023-01-11T21:03:38.4247217Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:38.4249095Z ================== 2023-01-11T21:03:38.5842774Z ================== 2023-01-11T21:03:38.5843481Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.5844064Z  Write of size 8 at 0x7ba4000383b0 by main thread: 2023-01-11T21:03:38.5848720Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:38.5851749Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.5852604Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.5853530Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.5854737Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.5855620Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.5856355Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.5857147Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:38.5857944Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.5859648Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.5861291Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.5862128Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.5863227Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.5864839Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.5865905Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.5866649Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.5868419Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.5870144Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.5870874Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.5872643Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.5874332Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.5875611Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.5877088Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.5878225Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.5880412Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.5882289Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.5883190Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.5884009Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.5884641Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.5885460Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.5886126Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.5886574Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.5887023Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.5887549Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.5888410Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.5889195Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.5889615Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.5889846Z 2023-01-11T21:03:38.5890222Z  Previous write of size 8 at 0x7ba4000383b0 by thread T2: 2023-01-11T21:03:38.5894706Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:38.5897732Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.5898597Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.5899567Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.5900605Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.5901610Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.5902334Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.5903038Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.5903684Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.5903979Z 2023-01-11T21:03:38.5904395Z  Location is heap block of size 20160 at 0x7ba400037000 allocated by main thread: 2023-01-11T21:03:38.5904989Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.5905457Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.5905989Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.5906671Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.5907891Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.5909144Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.5910114Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.5911062Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.5912129Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.5914858Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.5918104Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.5919749Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.5922199Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.5924673Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.5925494Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.5926331Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.5928995Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.5931771Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.5934306Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.5936974Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.5937951Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.5940589Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.5943491Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.5946183Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.5948826Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.5949684Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.5950582Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.5953180Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.5955915Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.5958480Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.5961062Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.5962042Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.5964709Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.5967490Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.5970112Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.5972774Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.5973694Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.5974311Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.5976115Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.5977572Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.5978222Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.5978951Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.5979749Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.5980586Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.5981699Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.5983095Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.5984154Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.5984910Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.5986748Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.5988611Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.5989355Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.5991249Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.5992962Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.5994162Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.5995735Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.5996876Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.5998911Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.6000767Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.6001663Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.6002464Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.6003093Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.6003968Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.6004646Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.6005098Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.6005548Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.6006106Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.6006998Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.6007782Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.6008185Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.6008412Z 2023-01-11T21:03:38.6008834Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.6009440Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.6010079Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.6011026Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.6011910Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.6012779Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.6013589Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.6014229Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.6015484Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.6016369Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.6017123Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.6017830Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.6019242Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.6020516Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.6021244Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.6022989Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.6024587Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.6026403Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.6028070Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.6028660Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.6030058Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.6031387Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.6031927Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.6032694Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.6033369Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.6033831Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.6034270Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.6034845Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.6035716Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.6036527Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.6036925Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.6037156Z 2023-01-11T21:03:38.6040430Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:38.6042305Z ================== 2023-01-11T21:03:38.6366821Z ================== 2023-01-11T21:03:38.6367504Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.6368103Z  Write of size 8 at 0x7ba400039758 by main thread: 2023-01-11T21:03:38.6372240Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:38.6375244Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.6376119Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.6377019Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.6377830Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.6378310Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.6378715Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.6379385Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:38.6380114Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.6381211Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.6382281Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.6382735Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.6383351Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.6384115Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.6384708Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.6385129Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.6386121Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.6387563Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.6388071Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.6389315Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.6390790Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.6391504Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.6392350Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.6392977Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.6394080Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.6395172Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.6395649Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.6396105Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.6396468Z #28 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.6396913Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.6397293Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.6397533Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.6397791Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.6398076Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.6398873Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.6399652Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.6400087Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.6400305Z 2023-01-11T21:03:38.6400531Z  Previous write of size 8 at 0x7ba400039758 by thread T2: 2023-01-11T21:03:38.6403396Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:38.6405061Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.6405532Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.6406040Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.6406608Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.6407160Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.6407577Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.6407959Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.6408306Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.6408470Z 2023-01-11T21:03:38.6408696Z  Location is heap block of size 20160 at 0x7ba400037000 allocated by main thread: 2023-01-11T21:03:38.6409027Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.6409288Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.6409574Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.6409953Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.6410607Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.6411304Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.6411866Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.6412420Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.6413014Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.6414509Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.6416272Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.6417165Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.6418498Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.6419930Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.6420423Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.6420890Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.6422296Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.6423808Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.6425172Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.6426581Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.6427127Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.6428609Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.6430141Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.6431546Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.6432987Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.6433498Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.6433984Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.6435484Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.6436968Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.6438347Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.6439735Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.6440277Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.6441728Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.6443289Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.6444720Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.6446139Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.6446616Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.6446963Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.6447810Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.6448593Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.6448952Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.6449354Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.6449786Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.6450242Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.6450851Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.6451616Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.6452234Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.6452676Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.6453671Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.6454713Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.6455133Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.6456088Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.6457026Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.6457682Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.6458521Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.6459139Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.6460241Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.6461335Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.6461824Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e4775) 2023-01-11T21:03:38.6462274Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.6462646Z #60 torch::lazy::LazyOpsTest_TestOneIndexPutTransfer_Test::TestBody() (test_lazy+0x2cc4fc) 2023-01-11T21:03:38.6463096Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.6463458Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.6463715Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.6463974Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.6464259Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.6464722Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.6465158Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.6465388Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.6465518Z 2023-01-11T21:03:38.6465753Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.6466075Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.6466433Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.6466972Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.6467462Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.6467945Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.6468377Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.6468737Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.6469348Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.6469832Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.6470287Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.6470667Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.6471454Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.6472146Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.6472542Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.6473439Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.6474286Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.6475136Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.6475314Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.6475456Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.6476067Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.6476211Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.6476362Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.6476615Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.6476749Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.6476866Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.6476990Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.6477139Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.6477472Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.6477591Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.6477684Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.6477690Z 2023-01-11T21:03:38.6479371Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:38.6479445Z ================== 2023-01-11T21:03:38.8680193Z [ OK ] LazyOpsTest.TestOneIndexPutTransfer (1177 ms) 2023-01-11T21:03:38.8680397Z [ RUN ] LazyOpsTest.TestMultiIndexPut 2023-01-11T21:03:38.8711711Z ================== 2023-01-11T21:03:38.8712365Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.8712906Z  Write of size 4 at 0x7b940000d4d8 by thread T2: 2023-01-11T21:03:38.8717410Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:38.8717880Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.8718289Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.8718918Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.8719337Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.8719650Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.8719828Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.8720074Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.8720288Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.8720296Z 2023-01-11T21:03:38.8720533Z  Previous write of size 4 at 0x7b940000d4d8 by main thread: 2023-01-11T21:03:38.8723434Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:38.8723767Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.8724056Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.8724402Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.8724791Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.8725033Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.8725314Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.8725673Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.8725961Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.8726876Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.8727094Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.8727297Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.8728083Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.8728291Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.8728495Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.8729317Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.8729673Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.8730718Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.8731030Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.8731281Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.8731655Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.8731828Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.8732025Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.8732173Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.8732409Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.8732899Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.8733087Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.8733213Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.8733242Z 2023-01-11T21:03:38.8733584Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:38.8733842Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.8734025Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.8734262Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.8734807Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.8735521Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.8735990Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.8736428Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.8736862Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.8737739Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.8739501Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.8740433Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.8740951Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.8742463Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.8742859Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.8743120Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.8744111Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.8744463Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.8744758Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.8745945Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.8746302Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.8747533Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.8747855Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.8748095Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.8748456Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.8748634Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.8748823Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.8749008Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.8749230Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.8749705Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.8749874Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.8750011Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.8750085Z 2023-01-11T21:03:38.8750469Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.8750711Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.8751036Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.8751551Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.8751798Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.8752226Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.8752442Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.8752722Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.8753305Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.8753614Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.8753886Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.8754164Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.8755078Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.8755359Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.8755758Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.8756895Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.8757248Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.8758575Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.8758984Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.8759225Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.8760266Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.8760517Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.8760785Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.8761217Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.8761414Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.8761617Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.8761824Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.8762075Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.8762744Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.8762942Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.8763099Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.8763108Z 2023-01-11T21:03:38.8766130Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.8766255Z ================== 2023-01-11T21:03:38.8780667Z ================== 2023-01-11T21:03:38.8781073Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.8781534Z  Write of size 4 at 0x7b940000d4e0 by thread T2: 2023-01-11T21:03:38.8785066Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:38.8787490Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.8788209Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.8788952Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.8789864Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.8790716Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.8791319Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.8791851Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.8792345Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.8792577Z 2023-01-11T21:03:38.8792865Z  Previous write of size 4 at 0x7b940000d4e0 by main thread: 2023-01-11T21:03:38.8796514Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:38.8799233Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.8799959Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.8800719Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.8801506Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.8802155Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.8802742Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.8803373Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.8804075Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.8805836Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.8807447Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.8808169Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.8809898Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.8811586Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.8812279Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.8814073Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.8815932Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.8817925Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.8819670Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.8820323Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.8821063Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.8821696Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.8822111Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.8822549Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.8823025Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.8823842Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.8824580Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.8824985Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.8825210Z 2023-01-11T21:03:38.8825640Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:38.8826212Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.8826650Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.8827204Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.8827733Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.8828729Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.8829710Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.8830457Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.8831206Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.8832033Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.8833979Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.8836605Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.8837937Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.8839865Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.8841873Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.8842521Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.8843869Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.8845106Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.8845691Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.8847168Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.8848597Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.8850156Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.8852045Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.8852737Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.8853466Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.8854120Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.8854826Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.8855253Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.8877898Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.8878695Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.8879339Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.8879665Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.8879850Z 2023-01-11T21:03:38.8880198Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.8880676Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.8881192Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.8881996Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.8882703Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.8883413Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.8884099Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.8884623Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.8885549Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.8886234Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.8886802Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.8887351Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.8888483Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.8889634Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.8890263Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.8891754Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.8893016Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.8894493Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.8895776Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.8896216Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.8897337Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.8898541Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.8899086Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.8899794Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.8925991Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.8926461Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.8926918Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.8927417Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.8928295Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.8929194Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.8929601Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.8929828Z 2023-01-11T21:03:38.8933064Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.8935040Z ================== 2023-01-11T21:03:38.8935514Z ================== 2023-01-11T21:03:38.8935986Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.8936546Z  Write of size 4 at 0x7b940000d4e4 by thread T2: 2023-01-11T21:03:38.8940786Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:38.8943632Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.8944491Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.8945394Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.8946393Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.8947395Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.8948193Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.8948876Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.8949510Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.8949791Z 2023-01-11T21:03:38.8950177Z  Previous write of size 4 at 0x7b940000d4e4 by main thread: 2023-01-11T21:03:38.8954520Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:38.8957504Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.8958396Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.8959297Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.8960317Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.8961151Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.8961869Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.8962639Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.8963428Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.8965204Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.8967022Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.8967785Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.8969563Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.8971267Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.8972022Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.8973859Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.8975798Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.8977795Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.8979713Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.8980388Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.8981173Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.8981883Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.8982349Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.8982792Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.8983302Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.8984131Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.8984932Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.8985329Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.8985552Z 2023-01-11T21:03:38.8985957Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:38.8986549Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.8987013Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.8987538Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.8988206Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.8989385Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.8990622Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.8991586Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.8992534Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.8993594Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.8996190Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.8999460Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9001098Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9003498Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9005954Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9006761Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.9008338Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.9009837Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.9010545Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.9012489Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9014306Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9016414Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9018256Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9018926Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9019717Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9020391Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9020811Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9021263Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9021768Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9022631Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9023385Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9023791Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9024014Z 2023-01-11T21:03:38.9024410Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.9024990Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9025603Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9026579Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9027426Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9028378Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9029165Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9029857Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9030982Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9031834Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9032570Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9033271Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9034725Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9035974Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9036687Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9038292Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9039807Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9041606Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9043204Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9043773Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9045263Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9046577Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9047125Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9047890Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9048548Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9048985Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9049444Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9049956Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9050789Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9051567Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9051977Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9052198Z 2023-01-11T21:03:38.9055470Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.9057222Z ================== 2023-01-11T21:03:38.9057387Z ================== 2023-01-11T21:03:38.9057666Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9057974Z  Write of size 4 at 0x7b940000d4e8 by thread T2: 2023-01-11T21:03:38.9060261Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:38.9062002Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9062486Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9062994Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9063564Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9064122Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9064519Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9064899Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9065265Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9065428Z 2023-01-11T21:03:38.9065618Z  Previous write of size 4 at 0x7b940000d4e8 by main thread: 2023-01-11T21:03:38.9067909Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:38.9069516Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9069991Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9070530Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9071123Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9071607Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9072007Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9072428Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.9072866Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9073867Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.9074909Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.9075329Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9076319Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9077290Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9077696Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9078713Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9079799Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9080899Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9081918Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9082299Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9082734Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9083098Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9083352Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9083607Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9083879Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9084354Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9084784Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9085016Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9085143Z 2023-01-11T21:03:38.9085364Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:38.9085683Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9085938Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9086236Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9086600Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9087255Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9087943Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9088497Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9089048Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9089637Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9091020Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9092785Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9093675Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9095125Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9096527Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9097006Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.9097878Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.9098703Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.9099096Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.9100121Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9101135Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9102227Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9103265Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9103636Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9104076Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9104486Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9104796Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9105184Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9105623Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9111243Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9112104Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9112451Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9112660Z 2023-01-11T21:03:38.9113033Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.9113610Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9114273Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9115320Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9116173Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9116869Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9117694Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9118374Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9119342Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9119821Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9120460Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9121130Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9122578Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9123772Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9124464Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9126143Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9127165Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9128154Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9129062Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9129397Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9130171Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9130898Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9131201Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9131625Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9132006Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9132260Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9132503Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9132843Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9133427Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9134125Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9134588Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9134791Z 2023-01-11T21:03:38.9137868Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.9139852Z ================== 2023-01-11T21:03:38.9140168Z ================== 2023-01-11T21:03:38.9140661Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9141243Z  Write of size 4 at 0x7b940000d4ec by thread T2: 2023-01-11T21:03:38.9144662Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:38.9146318Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9146786Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9147302Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9147881Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9148441Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9148852Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9149241Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9149597Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9149759Z 2023-01-11T21:03:38.9149949Z  Previous write of size 4 at 0x7b940000d4ec by main thread: 2023-01-11T21:03:38.9152294Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:38.9153953Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9154431Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9155011Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9155583Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9156053Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9156451Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9156895Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.9157344Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9158349Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.9159289Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.9159711Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9160771Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9161717Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9162372Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9163815Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9165054Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9166552Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9167590Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9167963Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9168405Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9168781Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9169039Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9169286Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9169631Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9170112Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9170552Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9170773Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9170903Z 2023-01-11T21:03:38.9171181Z  Location is heap block of size 10080 at 0x7b940000c800 allocated by main thread: 2023-01-11T21:03:38.9171520Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9171783Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9172075Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9172457Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9173114Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9174042Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9175013Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9175931Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9177036Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9179442Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9182580Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9184353Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9186755Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9189218Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9190028Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.9191607Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.9193137Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.9193871Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.9195867Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9197749Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9199902Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9201100Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9201492Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9201925Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9202302Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9220401Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9220766Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9221052Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9221541Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9221984Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9222219Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9222348Z 2023-01-11T21:03:38.9222595Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.9222918Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9223280Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9223821Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9224621Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9225391Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9226159Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9226807Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9227859Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9228877Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9229628Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9230289Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9231724Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9232964Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9233685Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9235363Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9236889Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9238687Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9240320Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9240914Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9242323Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9243623Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9244205Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9245009Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9245658Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9246101Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9246565Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9247103Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9247941Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9248749Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9249173Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9249387Z 2023-01-11T21:03:38.9252600Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.9254518Z ================== 2023-01-11T21:03:38.9255214Z ================== 2023-01-11T21:03:38.9255689Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9256272Z  Write of size 4 at 0x7b940003ccd8 by thread T1: 2023-01-11T21:03:38.9260618Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:38.9262713Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9263270Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9263782Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9264391Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9264936Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9265347Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9265730Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9266097Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9266261Z 2023-01-11T21:03:38.9266441Z  Previous write of size 4 at 0x7b940003ccd8 by main thread: 2023-01-11T21:03:38.9268737Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:38.9270345Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9270825Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9271335Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9271904Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9272380Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9272801Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9273237Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.9273680Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9274723Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.9275640Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.9276101Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9276713Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9277474Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9278067Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9278490Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9279486Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9280434Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9280851Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9281836Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9282795Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9283449Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9284480Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9285466Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9287407Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9289205Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9290071Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9290859Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9291486Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9292251Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9292903Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9293382Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9293848Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9294311Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9295281Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9296168Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9296608Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9296804Z 2023-01-11T21:03:38.9297228Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2023-01-11T21:03:38.9297880Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9298361Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9298873Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9299550Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9300702Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9301951Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9302892Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9303808Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9304877Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9307368Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9310454Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9312087Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9314636Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9317197Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9318052Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.9318918Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.9320603Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.9322122Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9323523Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9324963Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9325501Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9326935Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9328476Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9329878Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9331384Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9331867Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9332165Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.9333272Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.9333581Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9334756Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9335034Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9335304Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9336560Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9336884Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9337975Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9338279Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9338473Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9338622Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.9339296Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.9339484Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.9339678Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.9339885Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.9340159Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.9340380Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9340766Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9341155Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9341370Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9341570Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9342360Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9342564Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9342771Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9343567Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9343907Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9344628Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9345343Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9345781Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9347367Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9347728Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9348210Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9348502Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9348776Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9349236Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9349447Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9349666Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9349882Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9350111Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9350651Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9350872Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9351041Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9351053Z 2023-01-11T21:03:38.9351471Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.9351767Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9352140Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9352778Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9353065Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9353628Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9353875Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9354224Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9355066Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9355446Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9355784Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9356129Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9357096Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9357394Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9357801Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9358980Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9359365Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9360736Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9361086Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9361315Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9362432Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9362695Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9362968Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9363402Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9363609Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9363825Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9364032Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9364284Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9364847Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9365053Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9365197Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9365228Z 2023-01-11T21:03:38.9368265Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.9368386Z ================== 2023-01-11T21:03:38.9368493Z ================== 2023-01-11T21:03:38.9368799Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9369107Z  Write of size 4 at 0x7b940003cce0 by thread T1: 2023-01-11T21:03:38.9373070Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:38.9373585Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9374000Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9374624Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9375165Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9375654Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9375914Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9376323Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9376569Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9376578Z 2023-01-11T21:03:38.9376934Z  Previous write of size 4 at 0x7b940003cce0 by main thread: 2023-01-11T21:03:38.9379884Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:38.9380210Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9380428Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9380744Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9381036Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9381232Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9381436Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9381665Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.9381885Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9382602Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.9382842Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.9383060Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9383444Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9383832Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9384046Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9384246Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9385072Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9385304Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9385509Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9386258Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9386480Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9386910Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9387296Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9387533Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9388391Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9388611Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9388899Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9389062Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9389226Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9389503Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9389620Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9389738Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9389856Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9390007Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9390318Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9390438Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9390531Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9390537Z 2023-01-11T21:03:38.9390768Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2023-01-11T21:03:38.9390921Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9391045Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9391205Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9391410Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9391849Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9392118Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9392382Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9392646Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9392970Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9394091Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9394831Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9395141Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9396184Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9396458Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9396645Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.9396913Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.9398092Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.9398428Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9399486Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9399770Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9400039Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9401194Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9401543Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9402677Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9402969Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9403164Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9403455Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.9404568Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.9404878Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9405962Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9406265Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9406546Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9407712Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9408034Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9409130Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9409450Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9409641Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9409816Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.9410490Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.9410644Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.9410840Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.9411038Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.9411271Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.9411488Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9411872Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9412259Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9412472Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9412672Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9413456Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9413689Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9413893Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9414798Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9415025Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9415453Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9415837Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9416079Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9416935Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9417147Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9417410Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9417584Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9417749Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9418007Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9418162Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9418282Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9418403Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9418545Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9418880Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9419000Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9419080Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9419086Z 2023-01-11T21:03:38.9419307Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.9419475Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9419697Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9420014Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9420191Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9420481Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9420633Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9420825Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9421226Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9421446Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9421634Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9421825Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9422385Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9422552Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9422778Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9423441Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9423708Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9424473Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9424653Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9424796Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9425419Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9425566Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9425704Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9425961Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9426076Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9426195Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9426314Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9426463Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9426774Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9426892Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9426985Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9426990Z 2023-01-11T21:03:38.9428651Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.9428769Z ================== 2023-01-11T21:03:38.9428836Z ================== 2023-01-11T21:03:38.9429051Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9429228Z  Write of size 4 at 0x7b940003cce4 by thread T1: 2023-01-11T21:03:38.9431357Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:38.9431622Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9431846Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9432129Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9432419Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9432688Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9432829Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9433052Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9433189Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9433195Z 2023-01-11T21:03:38.9433382Z  Previous write of size 4 at 0x7b940003cce4 by main thread: 2023-01-11T21:03:38.9435613Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:38.9435911Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9436133Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9436413Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9436699Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9436893Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9437095Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9437322Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.9437534Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9438254Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.9438495Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.9438713Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9439151Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9439562Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9439778Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9439979Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9440780Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9440984Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9441195Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9441945Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9442170Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9442601Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9443180Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9443596Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9445189Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9445504Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9445892Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9446164Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9446394Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9446783Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9446914Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9447099Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9447284Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9447505Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9447988Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9448173Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9448319Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9448327Z 2023-01-11T21:03:38.9448694Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2023-01-11T21:03:38.9448948Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9449107Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9449347Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9449641Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9450297Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9450714Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9451116Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9451574Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9452108Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9453741Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9454818Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9455306Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9456790Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9457284Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9457557Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.9457996Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.9459681Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.9460121Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9461706Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9462143Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9462560Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9464307Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9464824Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9466375Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9466782Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9467072Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9467527Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.9469480Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.9470080Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9471979Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9472474Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9472947Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9475074Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9475616Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9477629Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9478125Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9478461Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9478709Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.9479865Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.9480125Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.9480452Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.9480783Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.9481184Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.9481552Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9482184Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9482843Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9483242Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9483574Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9484962Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9485338Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9485664Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9486950Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9487319Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9488065Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9488760Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9489201Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9490359Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9490635Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9490928Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9491105Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9491271Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9491528Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9491644Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9491766Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9491886Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9492036Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9492348Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9492467Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9492560Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9492570Z 2023-01-11T21:03:38.9492802Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.9492970Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9493189Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9493507Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9493679Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9493971Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9494127Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9494317Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9494834Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9495055Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9495240Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9495434Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9496076Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9496241Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9496468Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9497131Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9497344Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9498122Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9498304Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9498447Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9499057Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9499206Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9499358Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9499612Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9499713Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9499833Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9499953Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9500134Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9500443Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9500560Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9500685Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9500692Z 2023-01-11T21:03:38.9502379Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.9502451Z ================== 2023-01-11T21:03:38.9502719Z ================== 2023-01-11T21:03:38.9502890Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9503069Z  Write of size 4 at 0x7b940003cce8 by thread T1: 2023-01-11T21:03:38.9505212Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:38.9505475Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9505698Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9505979Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9506310Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9506576Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9506744Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9506969Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9507102Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9507108Z 2023-01-11T21:03:38.9507297Z  Previous write of size 4 at 0x7b940003cce8 by main thread: 2023-01-11T21:03:38.9509436Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:38.9509695Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9509915Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9510196Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9510482Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9510672Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9510875Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9511102Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.9511387Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9512675Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.9513051Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.9513394Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9514018Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9514745Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9515126Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9515492Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9516781Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9517068Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9517380Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9518185Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9518611Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9519496Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9520134Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9520543Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9521935Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9522212Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9522627Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9522938Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9523250Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9523703Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9523847Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9524011Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9524204Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9524418Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9524796Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9524933Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9525078Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9525087Z 2023-01-11T21:03:38.9525479Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2023-01-11T21:03:38.9525825Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9526034Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9526300Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9526599Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9527342Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9527791Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9528204Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9528608Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9529028Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9530862Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9532062Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9532597Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9533703Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9533977Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9534166Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.9534562Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.9535708Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.9536019Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9537144Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9537450Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9537718Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9538890Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9539224Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9540316Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9540606Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9540831Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9541129Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.9542272Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.9542579Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9543652Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9543926Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9544195Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9545379Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9545739Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9546823Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9547114Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9547305Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9547454Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.9548131Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.9548286Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.9548481Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.9548681Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.9548946Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.9549164Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9549574Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9549964Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9550181Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9550383Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9551182Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9551385Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9551594Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9552344Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9552574Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9553001Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9553412Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9553687Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9554863Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9555156Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9555564Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9555860Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9556170Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9556622Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9556833Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9557039Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9557260Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9557536Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9558111Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9558310Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9558465Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9558476Z 2023-01-11T21:03:38.9558908Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.9559217Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9559607Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9560179Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9560472Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9561056Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9561327Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9561657Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9562464Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9562854Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9563166Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9563527Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9564519Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9564792Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9565137Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9566286Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9566650Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9568007Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9568328Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9568594Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9569697Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9570029Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9570304Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9570780Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9570994Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9571209Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9571385Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9571641Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9572202Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9572413Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9572586Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9572597Z 2023-01-11T21:03:38.9575858Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.9575995Z ================== 2023-01-11T21:03:38.9576111Z ================== 2023-01-11T21:03:38.9576428Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9576755Z  Write of size 4 at 0x7b940003ccec by thread T1: 2023-01-11T21:03:38.9579318Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:38.9579688Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9579912Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9580196Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9580486Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9580757Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9580899Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9581122Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9581260Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9581266Z 2023-01-11T21:03:38.9581456Z  Previous write of size 4 at 0x7b940003ccec by main thread: 2023-01-11T21:03:38.9583589Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:38.9583868Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9584092Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9584408Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9584696Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9584915Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9585104Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9585332Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:38.9585547Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9586275Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.9586516Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.9586732Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9587118Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9587505Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9587720Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9587920Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9588704Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9588935Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9589172Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9589918Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9590144Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9590576Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9590972Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9591213Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9592070Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9592286Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9592549Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9592723Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9592890Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9593174Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9593289Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9593407Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9593524Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9593686Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9593998Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9594115Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9594211Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9594216Z 2023-01-11T21:03:38.9594439Z  Location is heap block of size 10080 at 0x7b940003c000 allocated by main thread: 2023-01-11T21:03:38.9594683Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9594812Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9594975Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9595186Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9595628Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9595898Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9596163Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9596427Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9596751Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9597822Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9598534Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9598840Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9599865Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9600151Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9600339Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.9600605Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.9601739Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.9602101Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9603183Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9603461Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9603733Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9604906Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9605226Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9606354Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9606684Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9606875Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9607171Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.9608273Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.9608578Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9609643Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9609973Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9610239Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9611408Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9611729Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9612819Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9613122Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9613311Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9613471Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.9614179Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.9614434Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.9614633Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.9614834Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.9615052Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.9615273Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9615657Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9616063Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9616278Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9616476Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9617264Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9617471Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9617677Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9618460Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9618715Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9619138Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9619523Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9619762Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9620636Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9620848Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9621110Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9621287Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9621454Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9621710Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9621827Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9621934Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9622053Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9622202Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9622513Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9622666Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9622760Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9622766Z 2023-01-11T21:03:38.9622989Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:38.9623184Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9623406Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9623725Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9623899Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9624192Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9624343Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9624520Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9624927Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9625147Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9625334Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9625531Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9626091Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9626254Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9626480Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9627158Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9627366Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9628194Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9628376Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9628520Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9629135Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9629282Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9629434Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9629687Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9629803Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9629923Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9630047Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9630181Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9630495Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9630612Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9630708Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9630714Z 2023-01-11T21:03:38.9632366Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:38.9632466Z ================== 2023-01-11T21:03:38.9632532Z ================== 2023-01-11T21:03:38.9632702Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9632879Z  Write of size 1 at 0x7b740003a476 by thread T3: 2023-01-11T21:03:38.9635128Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:38.9635408Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9635630Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9635898Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9636202Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9636468Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9636594Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9636816Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9636953Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9636959Z 2023-01-11T21:03:38.9637147Z  Previous write of size 1 at 0x7b740003a476 by main thread: 2023-01-11T21:03:38.9639325Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:38.9639624Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9639847Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9640128Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9640417Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9640610Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9640812Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9641039Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.9641237Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9642029Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.9642247Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.9642450Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9643231Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9643487Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9643696Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9644503Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9644761Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9645617Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9645829Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9645997Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9646253Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9646371Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9646490Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9646610Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9646747Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9647056Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9647174Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9647267Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9647299Z 2023-01-11T21:03:38.9647520Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:38.9647690Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9647812Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9647971Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9648204Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9648646Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9648914Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9649180Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9649443Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9649769Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9650839Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9651478Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9651777Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9652860Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9653148Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9653323Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.9654004Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.9654182Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.9654545Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.9655352Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9655594Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9656501Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9656739Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9656906Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9657160Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9657262Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9657381Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9657502Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9657652Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9657964Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9658082Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9658176Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9658183Z 2023-01-11T21:03:38.9658397Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.9658566Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9658784Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9659103Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9659279Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9659571Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9659713Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9659900Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9660304Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9660523Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9660710Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9660904Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9661524Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9661689Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9661916Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9662595Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9662807Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9663569Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9663751Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9663893Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9664501Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9664648Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9664801Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9665055Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9665169Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9665287Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9665407Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9665569Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9665884Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9666002Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9666123Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9666129Z 2023-01-11T21:03:38.9667770Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.9667843Z ================== 2023-01-11T21:03:38.9668033Z ================== 2023-01-11T21:03:38.9668203Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9668379Z  Write of size 1 at 0x7b740003a477 by thread T3: 2023-01-11T21:03:38.9670533Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.9670797Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9671021Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9671306Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9671625Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9671896Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9672064Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9672289Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9672425Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9672431Z 2023-01-11T21:03:38.9672618Z  Previous write of size 1 at 0x7b740003a477 by main thread: 2023-01-11T21:03:38.9674814Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.9675078Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9675299Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9675580Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9675874Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9676066Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9676270Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9676497Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.9676710Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9677566Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.9677780Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.9677981Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9678787Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9678992Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9679194Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9680003Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9680245Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9681102Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9681384Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9681540Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9681798Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9681916Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9682036Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9682158Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9682305Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9682614Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9682734Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9682826Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9682831Z 2023-01-11T21:03:38.9683054Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:38.9683222Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9683334Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9683498Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9683700Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9684143Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9684409Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9684675Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9684939Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9685262Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9686370Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9687019Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9687324Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9688354Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9688628Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9688806Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.9689487Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.9689690Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.9689894Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.9690741Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9690986Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9691844Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9692054Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9692264Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9692632Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9692808Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9692989Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9693194Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9693463Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9693962Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9694147Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9694308Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9694316Z 2023-01-11T21:03:38.9694793Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.9695093Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9695482Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9696065Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9696326Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9696878Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9697128Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9697435Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9698203Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9698582Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9698879Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9699239Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9700281Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9700579Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9700986Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9702099Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9702405Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9703436Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9703785Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9704015Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9705087Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9705357Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9705598Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9706004Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9706195Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9706420Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9706643Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9706902Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9707403Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9707588Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9707739Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9707748Z 2023-01-11T21:03:38.9710837Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.9710958Z ================== 2023-01-11T21:03:38.9711068Z ================== 2023-01-11T21:03:38.9711346Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9711627Z  Write of size 1 at 0x7b740003a478 by thread T3: 2023-01-11T21:03:38.9715762Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:38.9716295Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9716708Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9717234Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9717610Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9717879Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9718021Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9718245Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9718382Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9718389Z 2023-01-11T21:03:38.9718587Z  Previous write of size 1 at 0x7b740003a478 by main thread: 2023-01-11T21:03:38.9720744Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:38.9721040Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9721261Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9721567Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9721856Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9722050Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9722253Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9722481Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.9722694Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9723472Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.9723705Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.9723892Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9724688Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9724895Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9725100Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9725960Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9726204Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9727071Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9727280Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9727447Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9727701Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9727807Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9727926Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9728046Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9728192Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9728502Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9728623Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9728716Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9728722Z 2023-01-11T21:03:38.9728942Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:38.9729108Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9729234Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9729380Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9729584Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9730024Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9730354Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9730620Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9730885Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9731224Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9732294Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9732920Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9733235Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9734293Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9734705Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9734884Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.9735576Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.9735768Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.9735960Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.9736782Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9737024Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9737875Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9738140Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9738308Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9738565Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9738728Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9738851Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9738972Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9739122Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9739433Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9739552Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9739645Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9739651Z 2023-01-11T21:03:38.9739854Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.9740023Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9740246Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9740564Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9740739Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9741034Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9741185Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9741381Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9741787Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9742009Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9742198Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9742392Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9742952Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9743116Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9743374Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9744062Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9744273Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9745038Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9745229Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9745358Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9745985Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9746129Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9746278Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9746518Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9746650Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9746756Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9746875Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9747020Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9747331Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9747448Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9747540Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9747546Z 2023-01-11T21:03:38.9749231Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.9749327Z ================== 2023-01-11T21:03:38.9749447Z ================== 2023-01-11T21:03:38.9749621Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9749796Z  Write of size 1 at 0x7b740003a30d by thread T3: 2023-01-11T21:03:38.9751954Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:38.9752231Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9752451Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9752733Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9753023Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9753289Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9753416Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9753639Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9753805Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9753811Z 2023-01-11T21:03:38.9753997Z  Previous write of size 1 at 0x7b740003a30d by main thread: 2023-01-11T21:03:38.9756265Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.9756537Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9756764Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9757045Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9757337Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9757529Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9757730Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9757957Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.9758167Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9758950Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.9759193Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.9759392Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9760200Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9760405Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9760610Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9761429Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9761672Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9762521Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9762728Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9762893Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9763147Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9763307Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9763433Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9763555Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9763703Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9764045Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9764151Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9764245Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9764254Z 2023-01-11T21:03:38.9764478Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:38.9764646Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9764771Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9764931Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9765138Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9765585Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9765853Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9766117Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9766383Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9766706Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9767784Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9768469Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9768773Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9769797Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9770085Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9770263Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.9770947Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.9771126Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.9771335Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.9772140Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9772454Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9773325Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9773537Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9773706Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9773964Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9774080Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9774187Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9774308Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9774551Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9774865Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9774985Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9775079Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9775084Z 2023-01-11T21:03:38.9775299Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.9775469Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9775689Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9776010Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9776186Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9776479Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9776681Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9776858Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9777270Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9777522Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9777710Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9777903Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9778462Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9778631Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9778854Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9779530Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9779744Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9780511Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9780692Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9780833Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9781444Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9781617Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9781768Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9782045Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9782160Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9782278Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9782396Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9782531Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9782841Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9782956Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9783049Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9783055Z 2023-01-11T21:03:38.9784722Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.9784796Z ================== 2023-01-11T21:03:38.9873352Z ================== 2023-01-11T21:03:38.9873679Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9874908Z  Write of size 1 at 0x7b740003a88f by thread T3: 2023-01-11T21:03:38.9878363Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.9878955Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9879329Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9879959Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9880567Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9880981Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9881197Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9881506Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9881723Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9881732Z 2023-01-11T21:03:38.9882070Z  Previous write of size 1 at 0x7b740003a88f by main thread: 2023-01-11T21:03:38.9885704Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:38.9886158Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9886513Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9886975Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9887535Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9887880Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9888281Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9888645Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.9888988Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9890435Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:38.9893656Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:38.9893882Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9894832Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9895042Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9895310Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9896185Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9896502Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9897480Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9897761Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9897934Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9898189Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9898295Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9898466Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9898590Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9898738Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9899046Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9899217Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9899321Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9899328Z 2023-01-11T21:03:38.9899568Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:38.9899734Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9899859Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9900110Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9900318Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9900816Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9901090Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9901351Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9901725Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9902084Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9903256Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9903920Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9904254Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9905348Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9905699Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9905899Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:38.9906697Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:38.9906882Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:38.9907144Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:38.9908018Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:38.9908263Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:38.9909189Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9909440Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9909621Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:38.9909881Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9909994Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9910113Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9910285Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9910475Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9910784Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9910902Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9911023Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9911033Z 2023-01-11T21:03:38.9911336Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:38.9911502Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9911707Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9912080Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9912255Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9912551Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9912702Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9912957Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9913366Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9913586Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9913767Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9913963Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9914657Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9914824Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9915049Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:38.9915708Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:38.9915955Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:38.9916840Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:38.9917024Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:38.9917167Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:38.9917780Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:38.9917923Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:38.9918071Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:38.9918324Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9918436Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9918541Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9918660Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9918804Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9919116Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9919233Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9919327Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9919332Z 2023-01-11T21:03:38.9921240Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:38.9921490Z ================== 2023-01-11T21:03:38.9939358Z ================== 2023-01-11T21:03:38.9939769Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:38.9940093Z  Write of size 1 at 0x7b740003ae76 by thread T2: 2023-01-11T21:03:38.9943917Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:38.9944321Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9944688Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9945150Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9945610Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9946042Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:38.9946282Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:38.9946553Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:38.9946708Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:38.9946731Z 2023-01-11T21:03:38.9947047Z  Previous write of size 1 at 0x7b740003ae76 by main thread: 2023-01-11T21:03:38.9950173Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:38.9950568Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:38.9950887Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:38.9951260Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:38.9951645Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:38.9951903Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:38.9952171Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:38.9952471Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:38.9952750Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:38.9953734Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:38.9954164Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:38.9954625Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9955243Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9955835Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9956223Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9956553Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9957845Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9958133Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9958450Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9959528Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9959928Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9960576Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9961128Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9961447Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9962829Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9963220Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9963653Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9963947Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9964222Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9964553Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9964732Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9964907Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9965101Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9965340Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9965801Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9965981Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9966121Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9966131Z 2023-01-11T21:03:38.9966517Z  Location is heap block of size 2520 at 0x7b740003ac00 allocated by main thread: 2023-01-11T21:03:38.9966781Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:38.9966953Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:38.9967209Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:38.9967507Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:38.9968027Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:38.9968301Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:38.9968566Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:38.9968830Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:38.9969214Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:38.9970311Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:38.9970950Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:38.9971259Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:38.9972285Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:38.9972556Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:38.9972771Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:38.9973042Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:38.9974209Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:38.9974689Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9975769Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9976047Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9976315Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9977533Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9977900Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9978988Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9979277Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9979470Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9979764Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:38.9980874Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:38.9981251Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:38.9982324Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:38.9982602Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:38.9982870Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:38.9984023Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:38.9984354Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:38.9985459Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:38.9985778Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:38.9985966Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:38.9986113Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:38.9986787Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:38.9986958Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:38.9987140Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:38.9987341Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:38.9987575Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:38.9987789Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:38.9988171Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:38.9988558Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:38.9988771Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:38.9988967Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:38.9989815Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:38.9990017Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:38.9990225Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:38.9990992Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:38.9991217Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:38.9991648Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:38.9992030Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:38.9992270Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:38.9993136Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:38.9993379Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:38.9993639Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:38.9993838Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:38.9994005Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:38.9994262Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:38.9994377Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:38.9994486Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:38.9994676Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:38.9994825Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:38.9995139Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:38.9995258Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:38.9995349Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:38.9995356Z 2023-01-11T21:03:38.9995591Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:38.9995756Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:38.9995973Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:38.9996291Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:38.9996464Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:38.9996757Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:38.9996909Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:38.9997085Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:38.9997494Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:38.9997712Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:38.9997896Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:38.9998091Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:38.9998648Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:38.9998912Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:38.9999190Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0000106Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0000435Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0001523Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0001818Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0002042Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0002985Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0003225Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0003469Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0003880Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0004075Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0004257Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0004436Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0004679Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0005185Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0005478Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0005626Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0005636Z 2023-01-11T21:03:39.0008334Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.0008455Z ================== 2023-01-11T21:03:39.0008613Z ================== 2023-01-11T21:03:39.0008868Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0009149Z  Write of size 1 at 0x7b740003ae77 by thread T2: 2023-01-11T21:03:39.0012512Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.0012936Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0013271Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0013700Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0014120Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0014719Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0014949Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0015279Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0015541Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0015556Z 2023-01-11T21:03:39.0015840Z  Previous write of size 1 at 0x7b740003ae77 by main thread: 2023-01-11T21:03:39.0019596Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.0020033Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0020363Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0020823Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0021284Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0021589Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0021925Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0022288Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.0022644Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0023770Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.0024296Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.0024649Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0025214Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0025776Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0026115Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0026439Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0027721Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0028043Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0028375Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0029261Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0029618Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0030098Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0030508Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0030745Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0031613Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0031824Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0032082Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0032256Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0032475Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0032728Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0032845Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0032963Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0033072Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0033218Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0033527Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0033649Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0033742Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0033749Z 2023-01-11T21:03:39.0034001Z  Location is heap block of size 2520 at 0x7b740003ac00 allocated by main thread: 2023-01-11T21:03:39.0034170Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0034293Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0034452Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0034755Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0035230Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0035498Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0035763Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0036030Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0036360Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0037428Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0038064Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0038369Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0039414Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0039726Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0039898Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.0040166Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.0041308Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.0041617Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0042696Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0043026Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0043293Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0044448Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0044783Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0045873Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0046164Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0046353Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0046677Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.0047805Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.0048115Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0049185Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0049456Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0049722Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0050902Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0051253Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0052349Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0052634Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0052824Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0052969Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.0053641Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.0053805Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.0053987Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.0054183Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.0054516Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.0054794Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0055210Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0055595Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0055806Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0056006Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0056797Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0057001Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0057206Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0057948Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0058174Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0058602Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0058984Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0059249Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0060255Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0060561Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0060970Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0061288Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0061538Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0061939Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0062103Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0062305Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0062509Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0062739Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0063226Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0063413Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0063557Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0063565Z 2023-01-11T21:03:39.0063951Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.0064229Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0064556Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0064963Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0065233Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0065640Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0065958Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0066254Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0066930Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0067289Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0067572Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0067902Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0068833Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0069077Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0069423Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0070446Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0070807Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0071918Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0072108Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0072252Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0073009Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0073265Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0073469Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0073802Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0073948Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0074129Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0074295Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0074492Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0074954Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0075122Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0075218Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0075226Z 2023-01-11T21:03:39.0077644Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.0077765Z ================== 2023-01-11T21:03:39.0077959Z ================== 2023-01-11T21:03:39.0078235Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0078516Z  Write of size 1 at 0x7b740003ae7c by thread T2: 2023-01-11T21:03:39.0082231Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.0082737Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0083144Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0083604Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0084054Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0084502Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0084728Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0085077Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0085288Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0085301Z 2023-01-11T21:03:39.0085590Z  Previous write of size 1 at 0x7b740003ae7c by main thread: 2023-01-11T21:03:39.0088300Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.0088611Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0088854Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0089284Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0089870Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0090228Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0090641Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0091061Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.0091437Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0092178Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.0092412Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.0092627Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0093009Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0093392Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0093604Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0093803Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0094685Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0094977Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0095182Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0095967Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0096192Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0096621Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0097003Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0097247Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0098097Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0098309Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0098569Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0098737Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0098899Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0099151Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0099312Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0099430Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0099549Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0099694Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0100036Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0100155Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0100246Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0100253Z 2023-01-11T21:03:39.0100479Z  Location is heap block of size 2520 at 0x7b740003ac00 allocated by main thread: 2023-01-11T21:03:39.0100648Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0100767Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0100924Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0101127Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0101566Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0101833Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0102097Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0102361Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0102683Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0103767Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0104447Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0104749Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0105780Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0106050Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0106235Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.0106505Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.0107638Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.0107983Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0109066Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0109343Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0109612Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0110782Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0111103Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0112227Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0112539Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0112731Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0113026Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.0114117Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.0114435Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0115569Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0115871Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0116172Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0117339Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0117657Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0118762Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0119046Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0119237Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0119382Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.0120077Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.0120290Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.0120484Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.0120681Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.0120918Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.0121135Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0121517Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0121901Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0122114Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0122312Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0123098Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0123316Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0123521Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0124262Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0124539Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0124965Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0125348Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0125585Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0126433Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0126644Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0126905Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0127077Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0127242Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0127491Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0127604Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0127721Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0127841Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0127986Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0128292Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0128449Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0128543Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0128549Z 2023-01-11T21:03:39.0128761Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.0128927Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0129145Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0129487Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0129657Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0129946Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0130097Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0130284Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0130688Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0130949Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0131202Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0131401Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0131960Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0132121Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0132345Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0133008Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0133213Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0134026Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0134240Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0134469Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0135080Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0135229Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0135379Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0135631Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0135734Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0135859Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0135977Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0136124Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0136436Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0136556Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0136648Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0136654Z 2023-01-11T21:03:39.0138315Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.0138385Z ================== 2023-01-11T21:03:39.0189544Z ================== 2023-01-11T21:03:39.0190030Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0190459Z  Write of size 1 at 0x7b740003ad0d by thread T2: 2023-01-11T21:03:39.0194531Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.0195035Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0195384Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0195856Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0196363Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0196842Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0197093Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0197474Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0197688Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0197701Z 2023-01-11T21:03:39.0198021Z  Previous write of size 1 at 0x7b740003ad0d by main thread: 2023-01-11T21:03:39.0201871Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:39.0202346Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0202693Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0203111Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0203570Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0203846Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0204173Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0204546Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.0204889Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0206094Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.0206492Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.0206752Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0207374Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0208002Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0208410Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0208754Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0210168Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0210430Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0210801Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0212028Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0212409Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0213079Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0213767Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0214151Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0215518Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0215960Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0216381Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0216651Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0216930Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0217364Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0217580Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0217802Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0218012Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0218166Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0218480Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0218599Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0218695Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0218702Z 2023-01-11T21:03:39.0218936Z  Location is heap block of size 2520 at 0x7b740003ac00 allocated by main thread: 2023-01-11T21:03:39.0219105Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0219228Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0219391Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0219599Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0220340Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0220765Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0221033Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0221299Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0221672Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0223655Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0224997Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0225582Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0227037Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0227395Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0227611Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.0227906Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.0229132Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.0229505Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0230646Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0230949Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0231258Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0232439Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0232879Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0234027Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0234384Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0234649Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0234978Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.0236177Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.0236511Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0237726Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0238036Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0238355Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0239543Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0239941Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0241080Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0241484Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0241664Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0241840Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.0242588Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.0242768Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.0242987Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.0243176Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.0243435Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.0243681Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0244122Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0244585Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0244824Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0245013Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0245866Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0246149Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0246383Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0247182Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0247434Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0247891Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0248303Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0248571Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0249489Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0249746Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0250053Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0250281Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0250474Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0250755Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0250887Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0251034Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0251187Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0251364Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0251726Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0251896Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0252017Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0252023Z 2023-01-11T21:03:39.0252287Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.0252484Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0252741Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0253091Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0253293Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0253612Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0253809Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0254030Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0254628Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0254885Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0255060Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0255283Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0255911Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0256102Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0256376Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0257174Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0257412Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0258211Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0258434Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0258605Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0270705Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0270937Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0271098Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0271360Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0271481Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0271589Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0271709Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0271852Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0272164Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0272281Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0272374Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0272382Z 2023-01-11T21:03:39.0274172Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.0274279Z ================== 2023-01-11T21:03:39.0334465Z ================== 2023-01-11T21:03:39.0334862Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0335337Z  Write of size 1 at 0x7b740003b5d7 by thread T2: 2023-01-11T21:03:39.0339528Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:39.0339976Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0340361Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0340834Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0341321Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0341752Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0341989Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0342368Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0342753Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0342765Z 2023-01-11T21:03:39.0343087Z  Previous write of size 1 at 0x7b740003b5d7 by main thread: 2023-01-11T21:03:39.0347045Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:39.0347514Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0347897Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0348386Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0348891Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0349221Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0349567Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0349952Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.0350313Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0351541Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.0351992Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.0352361Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0353054Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0353714Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0354081Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0354418Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0355990Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0356359Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0356709Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0357986Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0358381Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0359127Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0359845Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0360287Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0361761Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0362137Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0362612Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0362924Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0363228Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0363705Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0363907Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0364107Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0364308Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0364557Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0365135Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0365334Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0365499Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0365510Z 2023-01-11T21:03:39.0365945Z  Location is heap block of size 2520 at 0x7b740003ac00 allocated by main thread: 2023-01-11T21:03:39.0366254Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0366475Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0366746Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0367170Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0367974Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0368538Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0369053Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0369500Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0370084Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0372051Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0373198Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0373766Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0375865Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0376439Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0376750Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.0377215Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.0379296Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.0379857Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0381803Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0382298Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0382830Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0384995Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0385583Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0387570Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0388094Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0388440Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0388941Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.0391020Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.0391598Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0393568Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0394041Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0394522Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0396754Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0397402Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0399394Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0399915Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0400266Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0400532Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.0401726Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.0401998Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.0402349Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.0402715Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.0403150Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.0403520Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0404209Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0405009Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0405396Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0405735Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0407174Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0407552Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0407917Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0409270Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0409674Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0410462Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0411126Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0411559Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0413216Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0413572Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0414039Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0414453Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0414764Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0415232Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0415439Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0415644Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0415843Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0416097Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0416664Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0416876Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0417025Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0417037Z 2023-01-11T21:03:39.0417450Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.0417754Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0418145Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0418676Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0418987Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0419518Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0419794Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0420147Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0420894Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0421357Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0421691Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0422094Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0423138Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0423408Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0423787Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0425014Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0425401Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0426767Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0427081Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0427332Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0428470Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0428729Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0429027Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0429483Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0429683Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0429894Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0430160Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0430434Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0430996Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0431196Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0431360Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0431369Z 2023-01-11T21:03:39.0434479Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.0434670Z ================== 2023-01-11T21:03:39.0552381Z ================== 2023-01-11T21:03:39.0552951Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0553252Z  Write of size 1 at 0x7b740003a547 by thread T1: 2023-01-11T21:03:39.0556984Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:39.0557381Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0557853Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0558304Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0558784Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0559218Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0559450Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0559817Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0560033Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0560073Z 2023-01-11T21:03:39.0560400Z  Previous write of size 1 at 0x7b740003a547 by main thread: 2023-01-11T21:03:39.0563831Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:39.0564273Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0564612Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0565042Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0565504Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0565797Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0566165Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0566460Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.0566826Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0568043Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.0568375Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.0568659Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0569666Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0569876Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0570095Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0571004Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.0571295Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.0572607Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0572962Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0573228Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.0573644Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0573849Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0574075Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0574281Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0574701Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0575114Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0575242Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0575370Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0575377Z 2023-01-11T21:03:39.0575629Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:39.0575832Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0575981Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0576149Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0576357Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0576864Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0577137Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0577455Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0577725Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0578145Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0579343Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0580051Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0580356Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0581474Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0581754Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0581930Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.0582741Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.0582972Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.0583180Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.0584054Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.0584311Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.0585262Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0585477Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0585649Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.0585949Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0586072Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0586198Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0586321Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0586469Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0586844Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0587001Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0587094Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0587100Z 2023-01-11T21:03:39.0587319Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.0587532Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0587785Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0588103Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0588335Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0588632Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0588783Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0588999Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0589444Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0589662Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0589911Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0590111Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0590725Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0590891Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0591112Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0591844Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0592054Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0592878Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0593113Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0593256Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0593869Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0594017Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0594168Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0594422Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0594541Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0594712Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0594835Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0594983Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0595358Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0595480Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0595575Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0595581Z 2023-01-11T21:03:39.0597257Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882ddc1) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.0597334Z ================== 2023-01-11T21:03:39.0712559Z ================== 2023-01-11T21:03:39.0713192Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0713662Z  Write of size 1 at 0x7b740003c276 by main thread: 2023-01-11T21:03:39.0717687Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:39.0718020Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0718273Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0718554Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0718929Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0719125Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0719327Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0719554Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.0719766Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0720489Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.0720745Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.0721007Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0721417Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0721807Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0722021Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0722222Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0723005Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0723211Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0723415Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0724329Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0724653Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0725347Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0725968Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0726468Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0728121Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0728478Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0728780Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0728958Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0729123Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0729380Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0729496Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0729669Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0729863Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0730118Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0730534Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0730705Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0730837Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0730844Z 2023-01-11T21:03:39.0731106Z  Previous write of size 1 at 0x7b740003c276 by thread T3: 2023-01-11T21:03:39.0734317Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:39.0735015Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0735310Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0735597Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0735888Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0736220Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0736367Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0736595Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0736764Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0736780Z 2023-01-11T21:03:39.0737032Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2023-01-11T21:03:39.0737201Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0737327Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0737484Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0737738Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0738182Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0738528Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0738795Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0739076Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0739431Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0740647Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0741408Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0741964Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0743407Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0743907Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0744250Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.0744754Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.0746372Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.0746691Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0747767Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0748042Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0748313Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0749489Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0749875Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0750964Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0751265Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0751443Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0751739Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.0752843Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.0753151Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0754272Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0754627Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0754902Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0756058Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0756395Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0757511Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0757836Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0758014Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0758165Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.0758855Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.0759007Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.0759202Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.0759390Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.0759624Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.0759843Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0760227Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0760631Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0760845Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0761031Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0761852Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0762119Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0762328Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0763072Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0763298Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0763726Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0764116Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0764356Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0765221Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0765433Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0765694Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0765897Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0766066Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0766345Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0766462Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0766581Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0766688Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0766837Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0767173Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0767293Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0767387Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0767393Z 2023-01-11T21:03:39.0767625Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.0767796Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0768014Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0768328Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0768504Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0768798Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0768951Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0769141Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0769548Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0769770Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0769944Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0770141Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0770719Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0770914Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0771137Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0771832Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0772044Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0772996Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0773266Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0773510Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0774646Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0774834Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0775021Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0775325Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0775475Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0775637Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0775797Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0776005Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0776398Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0776539Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0776649Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0776659Z 2023-01-11T21:03:39.0778961Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.0779087Z ================== 2023-01-11T21:03:39.0779182Z ================== 2023-01-11T21:03:39.0779420Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0779660Z  Write of size 1 at 0x7b740003c5c5 by thread T3: 2023-01-11T21:03:39.0782448Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:39.0782826Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0783146Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0784303Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0785656Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0787474Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0787712Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0788117Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0788324Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0788334Z 2023-01-11T21:03:39.0788637Z  Previous write of size 1 at 0x7b740003c5c5 by main thread: 2023-01-11T21:03:39.0791697Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:39.0792064Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0792414Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0792893Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0793365Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0793670Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0793980Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0794380Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.0794780Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0795838Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.0796300Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.0796741Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0797440Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0798142Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0798507Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0798818Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0800072Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0800307Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0800515Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0801360Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0801611Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0802075Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0802534Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0802806Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0803679Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0803896Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0804163Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0804341Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0804511Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0804764Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0804872Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0804994Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0805113Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0805261Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0805569Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0805691Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0805784Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0805791Z 2023-01-11T21:03:39.0806038Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2023-01-11T21:03:39.0806205Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0806336Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0806545Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0806750Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0807195Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0807493Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0807784Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0808051Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0808381Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0809451Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0810090Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0810394Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0811451Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0811766Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0811957Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.0812230Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.0813364Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.0813674Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0814848Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0815198Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0815467Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0816684Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0817010Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0818100Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0818407Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0818601Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0818896Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.0820024Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.0820357Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0821427Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0821701Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0821965Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0823122Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0823514Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0824601Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0824905Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0825086Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0825235Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.0825928Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.0826083Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.0826276Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.0826465Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.0826700Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.0826916Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0827299Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0827758Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0827970Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0828170Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0828958Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0829162Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0829369Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0830115Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0830345Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0830775Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0831164Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0831409Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0832329Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0832541Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0832807Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0832982Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0833149Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0833402Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0833505Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0833660Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0833829Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0834003Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0834351Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0834494Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0834689Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0834699Z 2023-01-11T21:03:39.0835062Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.0835321Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0835641Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0836089Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0836265Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0836615Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0836819Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0837086Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0837777Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0838250Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0838548Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0838921Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0839932Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0840242Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0840612Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0841297Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0841548Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0842344Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0842527Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0842669Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0843286Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0843432Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0843619Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0843874Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0843989Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0844109Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0844256Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0844396Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0844708Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0844827Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0844920Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0844926Z 2023-01-11T21:03:39.0846595Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.0846668Z ================== 2023-01-11T21:03:39.0846760Z ================== 2023-01-11T21:03:39.0846938Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0847167Z  Write of size 1 at 0x7b740003c277 by main thread: 2023-01-11T21:03:39.0850386Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:39.0850833Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0851256Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0851834Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0852194Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0852388Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0852592Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0852807Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.0853019Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0853975Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.0854513Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.0854908Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0855393Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0855966Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0856189Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0856390Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0857176Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0857482Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0857689Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0858433Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0858659Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0859100Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0859488Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0859730Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0860587Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0860797Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0861061Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0861269Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0861481Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0861806Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0861971Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0862154Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0862317Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0862569Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0863084Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0863270Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0863405Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0863418Z 2023-01-11T21:03:39.0863732Z  Previous write of size 1 at 0x7b740003c277 by thread T3: 2023-01-11T21:03:39.0867222Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:39.0867527Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0867754Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0868041Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0868331Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0868597Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0868795Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0869021Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0869159Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0869166Z 2023-01-11T21:03:39.0869410Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2023-01-11T21:03:39.0869584Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0869709Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0869873Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0870075Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0870519Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0870784Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0871049Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0871317Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0871642Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0872722Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0873347Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0873705Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0874821Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0875099Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0875289Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.0875558Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.0876707Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.0877034Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0878158Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0878438Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0878708Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0879884Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0880205Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0881311Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0881661Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0881856Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0882155Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.0883253Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.0883575Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0884633Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0884911Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0885209Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0886407Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0886728Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0887829Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0888118Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0888309Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0888492Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.0889166Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.0889356Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.0889552Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.0889797Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.0890036Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.0890254Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0890645Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0891156Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0891433Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0891640Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0892772Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0893054Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0893364Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0894640Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0895113Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0895872Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0896468Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0896855Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0898151Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0898480Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0898867Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0899134Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0899348Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0899675Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0899860Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0900039Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0900228Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0900470Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0900953Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0901136Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0901288Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0901298Z 2023-01-11T21:03:39.0901680Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.0901958Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0902398Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0902950Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0903311Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0903816Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0904057Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0904343Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0904952Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0905298Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0905596Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0905925Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0906826Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0907117Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0907518Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.0908686Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.0909040Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.0910422Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.0910810Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.0911104Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.0912198Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.0912479Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.0912727Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.0913128Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0913309Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0913477Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0913663Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0913888Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0914387Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0914647Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0914787Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0914796Z 2023-01-11T21:03:39.0917512Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.0917623Z ================== 2023-01-11T21:03:39.0917885Z ================== 2023-01-11T21:03:39.0918182Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.0918459Z  Write of size 1 at 0x7b740003c5c6 by thread T3: 2023-01-11T21:03:39.0921938Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.0922394Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0922716Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0923110Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0923547Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0923950Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.0924146Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.0924479Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.0924682Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.0924689Z 2023-01-11T21:03:39.0924967Z  Previous write of size 1 at 0x7b740003c5c6 by main thread: 2023-01-11T21:03:39.0928166Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.0928596Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.0928958Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.0929382Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.0929816Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.0930085Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.0930414Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.0930793Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.0931107Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.0932195Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.0932550Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.0932865Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0933437Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0934010Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0934430Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0934672Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0936032Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0936337Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0936665Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0937881Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0938290Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0938962Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0939569Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0939935Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0941222Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0941594Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0941990Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0942288Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0942551Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0942941Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0943104Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0943298Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0943476Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0943701Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0944159Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0944356Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0944492Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0944502Z 2023-01-11T21:03:39.0944850Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2023-01-11T21:03:39.0945109Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.0945278Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.0945510Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.0945806Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.0946467Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.0946887Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.0947287Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.0947686Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.0948169Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.0949828Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.0950851Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.0951355Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.0953178Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.0953648Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.0953962Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.0954421Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.0956531Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.0957108Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0958954Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0959424Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0959874Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0961869Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0962461Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0964457Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0964962Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0965309Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0965829Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.0967755Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.0968301Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.0970203Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.0970702Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.0971163Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.0973180Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.0973724Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.0975720Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.0976281Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.0976654Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.0976911Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.0978064Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.0978326Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.0978669Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.0979003Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.0979403Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.0979782Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.0980431Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.0981095Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.0981458Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.0981796Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.0983214Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.0983605Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.0983967Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.0985374Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.0985763Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.0986552Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.0987213Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.0987666Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.0989210Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.0989575Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.0990055Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.0990344Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.0990623Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.0991145Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.0991338Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.0991537Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.0991735Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.0992043Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.0992601Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.0992795Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.0992948Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.0992976Z 2023-01-11T21:03:39.0993382Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.0993670Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.0994040Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.0994716Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.0995014Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.0995544Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.0995825Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.0996146Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.0996907Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.0997280Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.0997597Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.0997959Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.0998956Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.0999247Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.0999629Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1001024Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1001463Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1002844Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1003153Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1003412Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1004510Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1004768Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1005026Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1005482Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1005689Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1005894Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1006095Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1006347Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1006928Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1007112Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1007267Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1007278Z 2023-01-11T21:03:39.1010471Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.1010638Z ================== 2023-01-11T21:03:39.1010743Z ================== 2023-01-11T21:03:39.1011052Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1011351Z  Write of size 1 at 0x7b740003c27c by main thread: 2023-01-11T21:03:39.1015538Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.1016004Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1016415Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1016895Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1017424Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1017766Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1018099Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1018512Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.1018893Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1020267Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.1020752Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.1021118Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1021823Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1022482Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1022877Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1023235Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1024633Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1025008Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1025364Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1026718Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1027173Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1027964Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1028671Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1029087Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1030648Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1031003Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1031479Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1031795Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1032076Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1032524Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1032734Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1032933Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1033131Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1033366Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1033945Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1034143Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1034293Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1034302Z 2023-01-11T21:03:39.1034719Z  Previous write of size 1 at 0x7b740003c27c by thread T3: 2023-01-11T21:03:39.1038858Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.1039391Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1039766Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1040258Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1040795Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1041241Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1041490Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1041886Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1042122Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1042131Z 2023-01-11T21:03:39.1042510Z  Location is heap block of size 2520 at 0x7b740003c000 allocated by main thread: 2023-01-11T21:03:39.1042817Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1043040Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1043332Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1043679Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1044506Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1044959Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1045497Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1046012Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1046578Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1048545Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1049696Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1050216Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1052113Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1052611Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1052989Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.1053478Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.1055666Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.1056230Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1058192Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1058682Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1059147Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1061416Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1062007Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1064000Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1064533Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1064887Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1065391Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.1067445Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.1068010Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1069975Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1070439Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1070945Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1073092Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1073690Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1075828Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1076385Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1076709Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1076954Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.1078178Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.1078455Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.1078813Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.1079152Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.1079559Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.1079968Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1080629Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1081352Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1081758Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1082132Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1083548Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1083937Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1084290Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1085654Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1086042Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1086786Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1087508Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1087919Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1089469Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1089901Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1090359Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1090672Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1090950Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1091385Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1091593Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1091810Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1092000Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1092249Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1092828Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1093039Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1093194Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1093203Z 2023-01-11T21:03:39.1093606Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.1093912Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1094290Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1094953Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1095272Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1095772Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1096040Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1096397Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1097138Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1097545Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1097859Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1098272Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1099335Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1099637Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1100022Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1101241Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1101611Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1102995Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1103291Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1103528Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1104621Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1104887Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1105157Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1105621Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1105876Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1106094Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1106310Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1106562Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1107153Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1107370Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1107512Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1107521Z 2023-01-11T21:03:39.1110671Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.1110792Z ================== 2023-01-11T21:03:39.1228617Z ================== 2023-01-11T21:03:39.1228967Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1229307Z  Write of size 2 at 0x7b8400015a6c by thread T2: 2023-01-11T21:03:39.1232911Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:39.1233346Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1233703Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1234147Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1234848Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1235365Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1235606Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1235982Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1236197Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1236206Z 2023-01-11T21:03:39.1236567Z  Previous write of size 2 at 0x7b8400015a6c by main thread: 2023-01-11T21:03:39.1240429Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:39.1240871Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1241226Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1241719Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1242168Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1242475Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1242773Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1243132Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1243537Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1244895Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.1245271Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.1245612Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1246886Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1247177Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1247449Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1248297Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1248545Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1249592Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1250039Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1250314Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1250718Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1250883Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1251044Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1251238Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1251441Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1251927Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1252111Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1252252Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1252262Z 2023-01-11T21:03:39.1252628Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2023-01-11T21:03:39.1252912Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1253110Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1253338Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1253660Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1254486Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1254932Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1255345Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1255779Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1256266Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1257932Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1258730Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1259213Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1260783Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1261224Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1261496Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.1262539Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.1262880Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.1263227Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.1264484Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1264806Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1265666Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1265882Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1266129Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1266527Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1266706Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1266891Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1267076Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1267303Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1267790Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1267974Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1268130Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1268140Z 2023-01-11T21:03:39.1268456Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.1268720Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1269106Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1269592Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1269918Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1270344Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1270581Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1270891Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1271520Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1271865Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1272148Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1272448Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1273121Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1273288Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1273549Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1274527Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1274923Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1276217Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1276598Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1276896Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1278035Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1278287Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1278530Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1278991Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1279199Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1279389Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1279610Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1279870Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1280419Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1280617Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1280769Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1280781Z 2023-01-11T21:03:39.1283875Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1284006Z ================== 2023-01-11T21:03:39.1284154Z ================== 2023-01-11T21:03:39.1284463Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1284775Z  Write of size 2 at 0x7b8400015a72 by thread T2: 2023-01-11T21:03:39.1288908Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:39.1289420Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1289836Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1290369Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1290898Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1291395Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1291647Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1292038Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1292284Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1292295Z 2023-01-11T21:03:39.1292638Z  Previous write of size 2 at 0x7b8400015a72 by main thread: 2023-01-11T21:03:39.1296733Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:39.1297316Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1297764Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1298285Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1298818Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1299174Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1299540Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1299801Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1300016Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1300816Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.1301031Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.1301230Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1302015Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1302223Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1302462Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1303306Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1303565Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1304414Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1304626Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1304795Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1305050Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1305167Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1305286Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1305407Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1305542Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1305855Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1305973Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1306068Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1306074Z 2023-01-11T21:03:39.1306308Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2023-01-11T21:03:39.1306473Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1306597Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1306756Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1306962Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1307433Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1307729Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1307994Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1308260Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1308587Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1309654Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1310291Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1310634Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1311691Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1311995Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1312174Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.1312859Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.1313039Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.1313247Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.1314060Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1314315Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1315305Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1315661Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1315871Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1316262Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1316441Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1316628Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1316804Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1317032Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1317539Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1317735Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1317887Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1317896Z 2023-01-11T21:03:39.1318287Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.1318600Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1319002Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1319581Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1319905Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1320380Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1320626Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1320979Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1321756Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1322162Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1322503Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1322827Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1323786Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1324144Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1324565Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1325853Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1326222Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1327550Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1327832Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1328078Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1329176Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1329444Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1329692Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1330175Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1330382Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1330604Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1330811Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1331086Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1331670Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1331884Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1332058Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1332113Z 2023-01-11T21:03:39.1335404Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1335534Z ================== 2023-01-11T21:03:39.1335727Z ================== 2023-01-11T21:03:39.1336049Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1336357Z  Write of size 2 at 0x7b8400015a74 by thread T2: 2023-01-11T21:03:39.1340478Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.1340957Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1341365Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1341844Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1342385Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1342880Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1343135Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1343609Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1343861Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1343872Z 2023-01-11T21:03:39.1344223Z  Previous write of size 2 at 0x7b8400015a74 by main thread: 2023-01-11T21:03:39.1346647Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.1346911Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1347139Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1347418Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1347711Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1347903Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1348104Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1348336Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1348546Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1349341Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.1349596Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.1349836Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1350619Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1350828Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1351034Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1351847Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1352091Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1352957Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1353165Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1353335Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1353619Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1353737Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1353844Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1353963Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1354140Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1354454Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1354654Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1354752Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1354758Z 2023-01-11T21:03:39.1354982Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2023-01-11T21:03:39.1355150Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1355277Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1355437Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1355628Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1356080Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1356353Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1356619Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1356882Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1357204Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1358270Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1359060Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1359543Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1361183Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1361660Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1361950Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.1363099Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.1363430Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.1363761Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.1365154Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1365619Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1367127Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1367520Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1367826Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1368261Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1368463Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1368681Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1368856Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1369132Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1369715Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1369929Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1370100Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1370112Z 2023-01-11T21:03:39.1370514Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.1370825Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1371222Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1371801Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1372084Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1372624Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1372968Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1373324Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1374089Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1374593Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1374915Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1375278Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1376307Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1376569Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1376967Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1378197Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1378540Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1379941Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1380265Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1380525Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1381670Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1382031Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1382338Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1382808Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1383016Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1383218Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1383444Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1383687Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1384001Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1384121Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1384204Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1384223Z 2023-01-11T21:03:39.1385954Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1386027Z ================== 2023-01-11T21:03:39.1386093Z ================== 2023-01-11T21:03:39.1386261Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1386435Z  Write of size 2 at 0x7b8400015a76 by thread T2: 2023-01-11T21:03:39.1388586Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.1388911Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1389135Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1389415Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1389707Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1389974Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1390117Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1390338Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1390474Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1390480Z 2023-01-11T21:03:39.1390667Z  Previous write of size 2 at 0x7b8400015a76 by main thread: 2023-01-11T21:03:39.1392824Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.1393082Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1393305Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1393582Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1393899Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1394092Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1394335Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1394640Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1394853Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1395631Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.1395843Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.1396045Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1396839Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1397047Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1397250Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1398059Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1398333Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1399211Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1399439Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1399593Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1399849Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1399965Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1400086Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1400206Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1400355Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1400663Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1400784Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1400877Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1400883Z 2023-01-11T21:03:39.1401107Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2023-01-11T21:03:39.1401274Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1401385Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1401546Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1401747Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1402297Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1402647Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1403060Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1403525Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1404089Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1405893Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1406903Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1407435Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1409103Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1409655Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1409988Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.1411277Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.1411605Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.1411967Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.1413466Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1413886Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1415513Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1415918Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1416227Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1416682Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1416864Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1417059Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1417377Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1417655Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1418225Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1418487Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1418657Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1418669Z 2023-01-11T21:03:39.1419057Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.1419342Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1419713Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1420282Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1420597Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1421111Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1421366Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1421719Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1422491Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1422895Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1423234Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1423587Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1424621Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1424924Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1425345Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1426581Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1427021Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1427833Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1428029Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1428159Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1428787Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1428937Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1429087Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1429329Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1429444Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1429565Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1429687Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1429833Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1430143Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1430264Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1430359Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1430366Z 2023-01-11T21:03:39.1432042Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1432146Z ================== 2023-01-11T21:03:39.1432262Z ================== 2023-01-11T21:03:39.1432437Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1432612Z  Write of size 2 at 0x7b8400015a78 by thread T2: 2023-01-11T21:03:39.1434893Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.1435158Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1435387Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1435669Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1435959Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1436226Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1436371Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1436594Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1436730Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1436736Z 2023-01-11T21:03:39.1436926Z  Previous write of size 2 at 0x7b8400015a78 by main thread: 2023-01-11T21:03:39.1439110Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.1439418Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1439639Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1439960Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1440250Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1440446Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1440635Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1440861Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1441076Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1441863Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.1442082Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.1442280Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1443096Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1443326Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1443528Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1444347Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1444590Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1445458Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1445674Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1445840Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1446093Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1446211Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1446334Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1446442Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1446589Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1446898Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1447055Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1447147Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1447154Z 2023-01-11T21:03:39.1447377Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2023-01-11T21:03:39.1447542Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1447692Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1447856Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1448059Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1448503Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1448773Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1449033Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1449295Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1449622Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1450689Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1451327Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1451670Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1452716Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1453001Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1453177Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.1453859Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.1454039Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.1454245Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.1455183Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.1455424Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.1456359Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1456582Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1456739Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd3f5) 2023-01-11T21:03:39.1456995Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1457111Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1457231Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1457351Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1457499Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1457810Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1457932Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1458024Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1458030Z 2023-01-11T21:03:39.1458244Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.1458413Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1458619Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1458934Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1459108Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1459403Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1459555Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1459748Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1460151Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1460368Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1460587Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1460783Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1461365Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1461529Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1461755Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1462416Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1462624Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1463404Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1463581Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1463722Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1464335Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1464481Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1464630Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1464884Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1465025Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1465145Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1465254Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1465401Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1465738Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1465859Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1465952Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1465957Z 2023-01-11T21:03:39.1467619Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1467693Z ================== 2023-01-11T21:03:39.1547369Z ================== 2023-01-11T21:03:39.1550336Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1550594Z  Write of size 2 at 0x7b8400016e6c by thread T1: 2023-01-11T21:03:39.1554157Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:39.1554673Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1555067Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1555777Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1556304Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1556844Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1557105Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1557512Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1557760Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1557770Z 2023-01-11T21:03:39.1558127Z  Previous write of size 2 at 0x7b8400016e6c by main thread: 2023-01-11T21:03:39.1562067Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:39.1562374Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1562668Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1563108Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1563557Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1563852Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1564168Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1564566Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1564960Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1566222Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.1566642Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.1566997Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1567661Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1568372Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1568762Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1569125Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1570389Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1570757Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1571151Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1572273Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1572737Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1573437Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1574081Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1574698Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1576303Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1576642Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1577093Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1577412Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1577717Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1578190Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1578396Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1578615Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1578841Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1579046Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1579360Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1579547Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1579642Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1579649Z 2023-01-11T21:03:39.1579907Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2023-01-11T21:03:39.1580079Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1580203Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1580399Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1580607Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1581050Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1581318Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1581580Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1581844Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1582167Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1583240Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1583879Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1584216Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1585266Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1585555Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1585742Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.1586011Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.1587151Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.1587461Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1588562Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1588862Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1589132Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1590303Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1590711Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1591807Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1592142Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1592333Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1592654Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.1593759Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.1594072Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1595219Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1595500Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1595806Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1597026Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1597375Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1598478Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1598765Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1598963Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1599112Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.1599788Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.1599941Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.1600164Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.1600363Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.1600596Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.1600842Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1601228Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1601615Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1601829Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1602030Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1602820Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1603025Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1603228Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1603988Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1604212Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1604641Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1605258Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1605502Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1606353Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1606564Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1606824Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1607002Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1607168Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1607428Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1607542Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1607661Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1607782Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1607928Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1608240Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1608358Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1608440Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1608446Z 2023-01-11T21:03:39.1608675Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.1608845Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1609063Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1609377Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1609643Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1609940Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1610208Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1610527Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1611090Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1611385Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1611651Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1611950Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1612792Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1613055Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1613414Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1614467Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1614795Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1615947Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1616243Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1616583Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1617617Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1618107Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1618333Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1618693Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1618854Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1619034Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1619185Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1619339Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1619811Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1620000Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1620114Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1620129Z 2023-01-11T21:03:39.1622317Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1622437Z ================== 2023-01-11T21:03:39.1622544Z ================== 2023-01-11T21:03:39.1622784Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1623051Z  Write of size 2 at 0x7b8400016e72 by thread T1: 2023-01-11T21:03:39.1626205Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:39.1626596Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1626955Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1627304Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1627741Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1628014Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1628228Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1628606Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1628847Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1628856Z 2023-01-11T21:03:39.1629176Z  Previous write of size 2 at 0x7b8400016e72 by main thread: 2023-01-11T21:03:39.1631916Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:39.1632178Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1632609Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1633087Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1633703Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1633958Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1634258Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1634711Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1635052Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1636248Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.1636652Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.1637020Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1637662Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1638296Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1638876Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1639218Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1640644Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1641113Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1641489Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1642863Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1643180Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1643613Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1644012Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1644253Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1645109Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1645321Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1645582Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1645790Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1645956Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1646212Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1646355Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1646477Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1646586Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1646734Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1647045Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1647167Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1647259Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1647266Z 2023-01-11T21:03:39.1647508Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2023-01-11T21:03:39.1647677Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1647803Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1647963Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1648167Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1648609Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1648880Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1649140Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1649404Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1649728Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1650797Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1651501Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1651801Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1652885Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1653154Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1653340Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.1653611Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.1654871Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.1655283Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1656348Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1656625Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1656892Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1658063Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1658385Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1659546Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1659838Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1660033Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1660328Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.1661423Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.1661743Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1662832Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1663135Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1663402Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1664577Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1664898Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1666003Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1666294Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1666514Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1666659Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.1667361Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.1667518Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.1667711Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.1667912Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.1668151Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.1668370Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1668754Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1669145Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1669360Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1669558Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1670343Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1670547Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1670791Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1671556Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1671779Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1672220Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1672602Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1672840Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1674109Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1674451Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1674930Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1675125Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1675338Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1675592Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1675707Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1675828Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1676049Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1676190Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1676540Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1676665Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1676798Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1676806Z 2023-01-11T21:03:39.1677084Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.1677257Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1677500Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1677821Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1677997Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1678295Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1678448Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1678676Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1679195Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1679475Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1679696Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1679951Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1680625Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1680887Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1681204Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1682120Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1682421Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1683505Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1683841Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1684112Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1684838Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1684993Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1685144Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1685398Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1685515Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1685635Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1685756Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1685902Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1686295Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1686502Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1686664Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1686675Z 2023-01-11T21:03:39.1689480Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1689667Z ================== 2023-01-11T21:03:39.1689857Z ================== 2023-01-11T21:03:39.1690178Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1690448Z  Write of size 2 at 0x7b8400016e74 by thread T1: 2023-01-11T21:03:39.1694643Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.1695103Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1695503Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1696002Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1696520Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1696978Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1697223Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1697624Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1697864Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1697875Z 2023-01-11T21:03:39.1698230Z  Previous write of size 2 at 0x7b8400016e74 by main thread: 2023-01-11T21:03:39.1702279Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.1702812Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1703222Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1703741Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1704269Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1704621Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1704851Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1705079Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1705295Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1706008Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.1706262Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.1706469Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1706864Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1707285Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1707542Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1707742Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1708533Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1708740Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1708946Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1709690Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1709915Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1710343Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1710730Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1710969Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1711862Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1712098Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1712359Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1712533Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1712698Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1712951Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1713066Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1713175Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1713295Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1713445Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1713755Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1713874Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1713968Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1713974Z 2023-01-11T21:03:39.1714205Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2023-01-11T21:03:39.1714372Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1714497Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1714798Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1715005Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1715446Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1715714Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1715976Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1716285Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1716611Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1717711Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1718348Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1718652Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1719676Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1719949Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1720162Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.1720430Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.1721609Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.1721920Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1722999Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1723275Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1723544Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1724732Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1725090Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1726181Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1726471Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1726665Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1726961Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.1728111Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.1728473Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1729540Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1729815Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1730085Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1731259Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1731581Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1733160Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1733747Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1734073Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1734323Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.1735638Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.1735930Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.1736249Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.1736526Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.1736881Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.1737252Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1737920Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1738557Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1738891Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1739333Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1740672Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1740950Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1741266Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1758667Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1759172Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1759881Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1760520Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1760948Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1762577Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1762947Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1763213Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1763429Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1763586Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1763841Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1763959Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1764079Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1764201Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1764348Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1764662Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1764780Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1764872Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1764880Z 2023-01-11T21:03:39.1765130Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.1765300Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1765507Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1765825Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1766001Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1766298Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1766453Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1766643Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1767052Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1767273Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1767462Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1767659Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1768219Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1768430Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1768682Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1769348Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1769559Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1770334Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1770512Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1770655Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1771268Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1771415Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1771567Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1771820Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1771934Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1772039Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1772163Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1772308Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1772618Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1772771Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1772867Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1772873Z 2023-01-11T21:03:39.1774825Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1774903Z ================== 2023-01-11T21:03:39.1775063Z ================== 2023-01-11T21:03:39.1775242Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1775404Z  Write of size 2 at 0x7b8400016e76 by thread T1: 2023-01-11T21:03:39.1777567Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.1777831Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1778055Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1778340Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1778627Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1778938Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1779080Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1779335Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1779473Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1779479Z 2023-01-11T21:03:39.1779670Z  Previous write of size 2 at 0x7b8400016e76 by main thread: 2023-01-11T21:03:39.1781807Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.1782065Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1782288Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1782572Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1782859Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1783050Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1783254Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1783483Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1783694Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1784439Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.1784700Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.1784919Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1785302Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1785691Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1785904Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1786107Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1786891Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1787109Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1787314Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1788055Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1788308Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1788732Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1789146Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1789387Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1790253Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1790520Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1790873Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1791125Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1791380Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1791743Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1791929Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1792129Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1792255Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1792450Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1792871Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1793042Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1793188Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1793196Z 2023-01-11T21:03:39.1793501Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2023-01-11T21:03:39.1793660Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1793836Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1794067Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1794406Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1795052Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1795504Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1795895Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1796243Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1796723Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1798427Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1799317Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1799788Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1801260Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1801655Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1801915Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.1802355Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.1803811Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.1804300Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1805739Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1806254Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1806671Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1808503Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1808956Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1810351Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1810775Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1811031Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1811550Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.1813215Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.1813733Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1815251Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1815710Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1816116Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1817662Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1818024Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1819139Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1819430Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1819629Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1819779Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.1820767Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.1821034Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.1821348Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.1821684Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.1822068Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.1822619Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1823362Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1824031Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1824432Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1824800Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1825935Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1826253Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1826646Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1827752Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1828084Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1828733Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1829424Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1829956Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1831365Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1831583Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1831847Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1832025Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1832193Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1832452Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1832569Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1832689Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1832813Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1832959Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1833273Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1833392Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1833487Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1833494Z 2023-01-11T21:03:39.1833731Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.1833899Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1834118Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1834437Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1834702Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1835000Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1835187Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1835380Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1835792Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1836043Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1836233Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1836428Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1836995Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1837160Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1837390Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1838058Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1838270Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1839049Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1839228Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1839359Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1839985Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1840167Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1840317Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1840600Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1840705Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1840825Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1840945Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1841096Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1841408Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1841525Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1841619Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1841627Z 2023-01-11T21:03:39.1843287Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1843363Z ================== 2023-01-11T21:03:39.1843504Z ================== 2023-01-11T21:03:39.1843672Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.1843848Z  Write of size 2 at 0x7b8400016e78 by thread T1: 2023-01-11T21:03:39.1846002Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.1846320Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1846570Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1846854Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1847145Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1847415Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.1847556Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.1847783Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.1847907Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.1847913Z 2023-01-11T21:03:39.1848102Z  Previous write of size 2 at 0x7b8400016e78 by main thread: 2023-01-11T21:03:39.1850256Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.1850517Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.1850739Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.1851017Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.1851337Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.1851530Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.1851757Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.1851987Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.1852199Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.1852916Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.1853154Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.1853372Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1853760Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1854149Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1854482Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1854686Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1855472Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1855732Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1855937Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1856828Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1857059Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1857488Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1857871Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1858111Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1858969Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1859182Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1859446Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1859620Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1859787Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1860041Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1860185Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1860307Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1860429Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1860579Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1860918Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1861039Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1861121Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1861127Z 2023-01-11T21:03:39.1861356Z  Location is heap block of size 5040 at 0x7b8400016800 allocated by main thread: 2023-01-11T21:03:39.1861525Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.1861650Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.1861815Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.1862020Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.1862460Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.1862729Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.1862995Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.1863263Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.1863586Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.1864657Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.1865336Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.1865636Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.1866675Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.1866946Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.1867134Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.1867401Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.1868534Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.1868883Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1869966Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1870244Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1870514Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1871686Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1872006Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1873200Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1873518Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1873711Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1874006Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.1875189Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.1875515Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.1876574Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.1876892Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.1877188Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.1878360Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.1878677Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.1879783Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.1880073Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.1880265Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.1880413Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.1881111Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.1881311Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.1881506Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.1881708Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.1881945Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.1882165Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.1882550Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.1882936Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.1883149Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.1883352Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.1884135Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.1884341Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.1884548Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.1885290Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.1885570Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.1886016Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.1886410Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.1886652Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.1887509Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.1887726Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.1887988Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.1888162Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.1888330Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.1888584Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1888701Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1888821Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1888944Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1889077Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1889388Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1889536Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1889631Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1889637Z 2023-01-11T21:03:39.1889857Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.1890024Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.1890244Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.1890589Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.1890765Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.1891058Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.1891214Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.1891407Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.1891817Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.1892035Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.1892222Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.1892420Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.1892981Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.1893144Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.1893372Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.1894033Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.1894243Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.1895148Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.1895372Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.1895517Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.1896125Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.1896277Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.1896427Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.1896683Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.1896800Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.1896922Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.1897046Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.1897195Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.1897507Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.1897628Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.1897707Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.1897727Z 2023-01-11T21:03:39.1899389Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.1899464Z ================== 2023-01-11T21:03:39.2008312Z ================== 2023-01-11T21:03:39.2008673Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.2008912Z  Write of size 4 at 0x7b9400041cd8 by thread T2: 2023-01-11T21:03:39.2012647Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:39.2013097Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2013443Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2013900Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2014323Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2014938Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.2015144Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.2015444Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.2015675Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.2015687Z 2023-01-11T21:03:39.2016000Z  Previous write of size 4 at 0x7b9400041cd8 by main thread: 2023-01-11T21:03:39.2019460Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:39.2019994Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2020266Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2020578Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2020934Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2021234Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.2021522Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.2021786Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.2022077Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.2023177Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.2023503Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.2023861Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2024497Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2025144Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2025558Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2025892Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2027258Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2027615Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2027965Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2029183Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2029533Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2030222Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2030764Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2031127Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2032243Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2032580Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2033036Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2033354Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2033639Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2034030Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2034197Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2034329Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2034438Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2034695Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2035254Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2035443Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2035605Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2035619Z 2023-01-11T21:03:39.2036075Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2023-01-11T21:03:39.2036387Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.2036616Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.2036888Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.2037265Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.2037915Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.2038192Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.2038459Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.2038725Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.2039051Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.2040186Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.2040827Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.2041128Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.2042154Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.2042441Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.2042616Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.2042884Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.2044095Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.2044408Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2045486Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2045762Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2046030Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2047189Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2047587Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2048679Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2048971Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2049163Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2049461Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.2050570Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.2050881Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2052013Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2052297Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2052566Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2053725Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2054059Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2055292Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2055615Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2055807Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2055956Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.2056644Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.2056796Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.2056978Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.2057181Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.2057417Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.2057641Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2058022Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2058406Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2058622Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2058825Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2059621Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2059884Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2060093Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2060835Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2061064Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2061492Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2061877Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2062118Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2062983Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2063196Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2063456Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2063665Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2063832Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2064086Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2064219Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2064341Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2064461Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2064609Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2064922Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2065043Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2065137Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2065143Z 2023-01-11T21:03:39.2065374Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.2065542Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.2065764Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.2066082Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.2066258Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.2066538Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.2066689Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.2066881Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.2067291Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.2067510Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.2067698Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.2067896Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.2068455Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.2068622Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.2068880Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.2069574Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.2069799Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.2070586Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.2070762Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.2070907Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.2071520Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.2071667Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.2071818Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.2072069Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2072187Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2072310Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2072430Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2072564Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2072875Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2072993Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2073086Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2073091Z 2023-01-11T21:03:39.2075895Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.2076062Z ================== 2023-01-11T21:03:39.2076198Z ================== 2023-01-11T21:03:39.2076511Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.2076789Z  Write of size 4 at 0x7b9400041ce0 by thread T2: 2023-01-11T21:03:39.2080577Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:39.2081054Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2081429Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2081967Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2082500Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2082975Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.2083229Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.2083626Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.2083900Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.2083927Z 2023-01-11T21:03:39.2084235Z  Previous write of size 4 at 0x7b9400041ce0 by main thread: 2023-01-11T21:03:39.2088250Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:39.2088723Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2089113Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2089629Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2090113Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2090468Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.2090836Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.2091229Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.2091594Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.2092898Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.2093377Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.2093772Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2094536Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2095217Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2095586Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2095951Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2097390Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2097702Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2097986Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2099126Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2099456Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2099997Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2100462Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2100733Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2101608Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2101823Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2102088Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2102263Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2102433Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2102687Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2102789Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2102912Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2103036Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2103229Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2103540Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2103663Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2103759Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2103765Z 2023-01-11T21:03:39.2104011Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2023-01-11T21:03:39.2104181Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.2104306Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.2104471Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.2104675Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.2105116Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.2105423Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.2105715Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.2105982Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.2106308Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.2107382Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.2108020Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.2108327Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.2109399Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.2109738Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.2109928Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.2110200Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.2111333Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.2111643Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2112722Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2112999Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2113293Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2114497Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2114908Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2116090Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2116396Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2116590Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2116884Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.2118009Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.2118347Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2119418Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2119695Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2119966Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2121122Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2121477Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2122596Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2122899Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2123082Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2123231Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.2123920Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.2124073Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.2124269Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.2124457Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.2124692Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.2124912Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2125295Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2125720Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2125959Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2126160Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2126943Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2127147Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2127351Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2128095Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2128319Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2128749Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2129136Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2129378Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2130280Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2130518Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2130870Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2131046Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2131216Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2131569Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2131734Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2131867Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2132071Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2132286Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2132718Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2132897Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2133001Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2133008Z 2023-01-11T21:03:39.2133306Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.2133519Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.2133865Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.2134450Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.2134726Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.2135179Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.2135425Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.2135674Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.2136247Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.2136558Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.2136835Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.2137132Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.2138121Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.2138452Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.2138859Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.2139925Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.2140316Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.2141432Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.2141708Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.2141933Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.2142912Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.2143137Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.2143430Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.2143824Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2143996Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2144180Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2144366Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2144649Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2145165Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2145347Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2145506Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2145516Z 2023-01-11T21:03:39.2148180Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.2148307Z ================== 2023-01-11T21:03:39.2148473Z ================== 2023-01-11T21:03:39.2148749Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.2148978Z  Write of size 4 at 0x7b9400041ce4 by thread T2: 2023-01-11T21:03:39.2152514Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:39.2152946Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2153421Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2153891Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2154449Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2154947Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.2155176Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.2155555Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.2155773Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.2155783Z 2023-01-11T21:03:39.2156069Z  Previous write of size 4 at 0x7b9400041ce4 by main thread: 2023-01-11T21:03:39.2159390Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:39.2159663Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2159889Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2160172Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2160462Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2160654Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.2160917Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.2161144Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.2161359Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.2162103Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.2162346Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.2162569Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2162956Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2163355Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2163568Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2163756Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2164554Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2164763Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2164969Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2165740Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2166004Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2166430Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2166819Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2167056Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2167920Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2168132Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2168394Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2168569Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2168736Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2168993Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2169097Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2169219Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2169342Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2169492Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2169805Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2169956Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2170052Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2170059Z 2023-01-11T21:03:39.2170291Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2023-01-11T21:03:39.2170494Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.2170621Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.2170767Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.2170971Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.2171412Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.2171698Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.2171960Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.2172224Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.2172548Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.2173616Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.2174256Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.2174747Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.2175774Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.2176047Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.2176235Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.2176506Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.2177655Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.2177964Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2179072Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2179385Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2179655Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2180814Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2181151Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2182244Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2182594Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2182789Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2183083Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.2184200Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.2184508Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2185563Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2185850Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2186118Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2187334Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2187675Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2188768Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2189055Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2189248Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2189396Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.2190074Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.2190256Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.2190451Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.2190677Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.2190915Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.2191165Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2191547Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2191938Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2192152Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2192352Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2193210Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2193422Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2193700Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2194915Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2195242Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2195912Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2196645Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2197036Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2198466Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2198779Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2199188Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2199467Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2199734Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2200152Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2200330Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2200508Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2200713Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2200967Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2201409Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2201617Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2201771Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2201780Z 2023-01-11T21:03:39.2202185Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.2202451Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.2202790Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.2203301Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.2203559Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.2204012Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.2204261Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.2204568Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.2205234Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.2205598Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.2205879Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.2206203Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.2207080Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.2207363Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.2207674Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.2208632Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.2208972Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.2210207Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.2210546Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.2210777Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.2211735Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.2211975Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.2212215Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.2212638Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2212822Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2213008Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2213205Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2213448Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2213848Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2214018Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2214166Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2214177Z 2023-01-11T21:03:39.2216893Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.2217028Z ================== 2023-01-11T21:03:39.2217191Z ================== 2023-01-11T21:03:39.2217460Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.2217683Z  Write of size 4 at 0x7b9400041ce8 by thread T2: 2023-01-11T21:03:39.2220887Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:39.2221270Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2221594Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2222014Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2222455Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2222815Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.2223048Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.2223313Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.2223502Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.2223515Z 2023-01-11T21:03:39.2223750Z  Previous write of size 4 at 0x7b9400041ce8 by main thread: 2023-01-11T21:03:39.2226134Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:39.2226446Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2226664Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2226974Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2227268Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2227460Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.2227664Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.2227892Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.2228105Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.2228822Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.2229062Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.2229283Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2229669Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2230055Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2230273Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2230476Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2231302Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2231535Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2231742Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2232485Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2232710Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2233140Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2233523Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2233762Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2234690Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2234917Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2235209Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2235370Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2235535Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2235814Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2235932Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2236053Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2236174Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2236323Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2236636Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2236756Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2236850Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2236857Z 2023-01-11T21:03:39.2237089Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2023-01-11T21:03:39.2237245Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.2237369Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.2237528Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.2237734Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.2238177Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.2238449Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.2238712Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.2238979Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.2239306Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.2240413Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.2241076Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.2241378Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.2242413Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.2242684Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.2242874Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.2243145Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.2244311Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.2244643Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2245762Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2246050Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2246317Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2247474Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2247825Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2248952Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2249246Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2249439Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2249731Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.2250852Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.2251158Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2252241Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2252559Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2252827Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2253979Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2254298Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2255492Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2255831Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2256020Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2256201Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.2256942Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.2257101Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.2257349Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.2257589Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.2257926Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.2258256Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2258888Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2259498Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2259803Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2260045Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2261195Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2261571Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2261871Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2262779Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2263097Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2263662Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2264163Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2264462Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2265756Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2266086Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2266506Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2266777Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2267028Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2267429Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2267678Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2267875Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2268087Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2268315Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2268881Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2269100Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2269277Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2269288Z 2023-01-11T21:03:39.2269712Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.2269991Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.2270371Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.2270963Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.2271235Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.2271648Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.2271893Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.2272212Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.2272967Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.2273355Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.2273683Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.2274041Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.2275134Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.2275474Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.2275837Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.2277068Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.2277571Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.2278947Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.2279277Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.2279542Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.2280625Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.2280892Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.2281143Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.2281594Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2281785Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2282004Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2282226Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2282484Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2283051Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2283245Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2283415Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2283425Z 2023-01-11T21:03:39.2286508Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.2286677Z ================== 2023-01-11T21:03:39.2286771Z ================== 2023-01-11T21:03:39.2287108Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.2287433Z  Write of size 4 at 0x7b9400041cec by thread T2: 2023-01-11T21:03:39.2290363Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:39.2290647Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2290870Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2291155Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2291444Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2291716Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.2291861Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.2292091Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.2292216Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.2292222Z 2023-01-11T21:03:39.2292414Z  Previous write of size 4 at 0x7b9400041cec by main thread: 2023-01-11T21:03:39.2294708Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:39.2295003Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2295234Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2295516Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2295804Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2295998Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.2296202Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.2296430Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.2296644Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.2297361Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.2297602Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.2297822Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2298240Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2298725Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2298942Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2299142Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2299928Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2300131Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2300340Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2301082Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2301309Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2301738Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2302125Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2302369Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2303286Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2303501Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2303762Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2303938Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2304103Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2304358Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2304475Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2304584Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2304705Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2304854Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2305164Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2305283Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2305377Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2305384Z 2023-01-11T21:03:39.2305610Z  Location is heap block of size 10080 at 0x7b9400041000 allocated by main thread: 2023-01-11T21:03:39.2305778Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.2305904Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.2306067Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.2306259Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.2306718Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.2306985Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.2307248Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.2307541Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.2307889Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.2308962Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.2309598Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.2309903Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.2310926Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.2311229Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.2311415Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.2311708Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.2312866Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.2313175Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2314252Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2314534Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2314927Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2316114Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2316487Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2317581Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2317870Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2318064Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2318361Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.2319475Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.2319835Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2320902Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2321179Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2321444Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2322598Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2322931Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2324066Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2324357Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2324552Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2324699Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.2325368Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.2325529Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.2325724Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.2325923Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.2326154Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.2326373Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2326758Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2327145Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2327385Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2327583Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2328406Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2328616Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2328819Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2329562Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2329788Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2330213Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2330594Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2330833Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2331687Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2331934Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2332220Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2332397Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2332550Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2332805Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2332919Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2333040Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2333161Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2333310Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2333624Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2333745Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2333841Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2333849Z 2023-01-11T21:03:39.2334068Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.2334237Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.2334534Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.2334851Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.2335025Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.2335318Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.2335474Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.2335664Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.2336072Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.2336292Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.2336479Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.2336674Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.2337320Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.2337487Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.2337715Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.2338384Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.2338597Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.2339374Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.2339557Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.2339701Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.2340313Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.2340460Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.2340612Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.2340866Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2340983Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2341090Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2341210Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2341390Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2341699Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2341817Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2341937Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2341944Z 2023-01-11T21:03:39.2343614Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.2343686Z ================== 2023-01-11T21:03:39.2911894Z ================== 2023-01-11T21:03:39.2912272Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.2912584Z  Write of size 8 at 0x7ba4000473b0 by thread T3: 2023-01-11T21:03:39.2916549Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:39.2916991Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2917408Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2917850Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2918440Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2918893Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.2919239Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.2919606Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.2919831Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.2919843Z 2023-01-11T21:03:39.2920180Z  Previous write of size 8 at 0x7ba4000473b0 by main thread: 2023-01-11T21:03:39.2923578Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:39.2924000Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2924326Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2924762Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2925207Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2925506Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.2925835Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.2926127Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.2926395Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.2927581Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.2927966Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.2928331Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2928942Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2929559Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2929918Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2930247Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2931597Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2931916Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2932246Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2933477Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2933899Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2934818Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2935468Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2935842Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2937252Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2937557Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2937857Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2938136Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2938375Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2938697Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2938869Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2938994Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2939112Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2939248Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2939611Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2939731Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2939831Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2939837Z 2023-01-11T21:03:39.2940084Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2023-01-11T21:03:39.2940370Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.2940497Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.2940657Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.2940862Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.2941395Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.2941668Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.2941994Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.2942264Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.2942631Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.2943758Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.2944454Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.2944757Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.2945950Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.2946230Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.2946469Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.2946741Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.2947966Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.2948280Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2949462Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2949772Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2950037Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2951269Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2951607Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2952756Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2953044Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2953311Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2953611Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.2954822Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.2955135Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.2956267Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.2956542Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.2956809Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.2958002Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.2958371Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.2959517Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.2959809Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.2960003Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.2960153Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.2960833Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.2960989Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.2961186Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.2961386Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.2961655Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.2961874Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2962286Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2962727Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.2962944Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.2963144Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.2963992Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.2964201Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.2964406Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.2965149Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.2965377Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.2965804Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.2966282Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.2966560Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.2967427Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.2967641Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.2967909Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.2968084Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.2968254Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.2968514Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2968631Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2968738Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2968861Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2969013Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2969325Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2969446Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2969541Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2969547Z 2023-01-11T21:03:39.2969776Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.2969948Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.2970170Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.2970487Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.2970673Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.2970995Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.2971149Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.2971328Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.2971762Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.2971986Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.2972170Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.2972367Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.2972928Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.2973093Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.2973322Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.2974110Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.2974505Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.2975601Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.2975850Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.2976085Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.2977096Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.2977479Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.2977708Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.2978094Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.2978264Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.2978459Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.2978641Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.2978779Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.2979194Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.2979378Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.2979523Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.2979532Z 2023-01-11T21:03:39.2982439Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.2982555Z ================== 2023-01-11T21:03:39.2982692Z ================== 2023-01-11T21:03:39.2982972Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.2983258Z  Write of size 8 at 0x7ba4000473b8 by thread T3: 2023-01-11T21:03:39.2986742Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.2987252Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2987491Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2987821Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2988239Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2988537Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.2988707Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.2988984Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.2989141Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.2989154Z 2023-01-11T21:03:39.2989445Z  Previous write of size 8 at 0x7ba4000473b8 by main thread: 2023-01-11T21:03:39.2993079Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.2993512Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.2993890Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.2994410Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.2994958Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.2995319Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.2995648Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.2996023Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.2996369Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.2997526Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.2997892Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.2998285Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.2998956Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.2999625Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.3000023Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.3000371Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.3001720Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.3002117Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.3002524Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.3003881Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.3004295Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.3005056Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.3005446Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.3005690Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.3006643Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.3006863Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.3007125Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.3007297Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.3007462Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.3007751Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3007864Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3007983Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3008091Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3008263Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3008575Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3008694Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3008790Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3008797Z 2023-01-11T21:03:39.3009037Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2023-01-11T21:03:39.3009203Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.3009326Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.3009486Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.3009694Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.3010134Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.3010404Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.3010669Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.3010936Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.3011261Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.3012324Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.3013033Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.3013336Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.3014446Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.3014722Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.3014966Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.3015249Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.3016391Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.3016783Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.3017865Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.3018145Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.3018415Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.3019577Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.3019912Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.3021030Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.3021349Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.3021543Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.3021840Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.3022944Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.3023250Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.3024461Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.3024797Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.3025065Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.3026221Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.3026555Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.3027642Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.3027928Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.3028121Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.3028295Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.3028992Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.3029155Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.3029335Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.3029536Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.3029771Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.3029990Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.3030370Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.3030756Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.3030968Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.3031168Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.3031959Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.3032169Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.3032374Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.3033138Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.3033401Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.3033826Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.3034215Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.3034454Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.3035391Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.3035605Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.3035865Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.3036040Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.3036207Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.3036446Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3036564Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3036683Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3036804Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3036995Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3037489Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3037696Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3037838Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3037848Z 2023-01-11T21:03:39.3038203Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.3038471Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.3038900Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.3039468Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.3039739Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.3040264Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.3040527Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.3040827Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.3041602Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.3042003Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.3042330Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.3042663Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.3043700Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.3043985Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.3044387Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.3045632Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.3046009Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.3047433Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.3047765Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.3048028Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.3049136Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.3049357Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.3049637Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.3050116Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3050311Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3050537Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3050763Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3051033Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3051560Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3051773Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3051945Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3051955Z 2023-01-11T21:03:39.3055097Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.3055319Z ================== 2023-01-11T21:03:39.3055487Z ================== 2023-01-11T21:03:39.3055780Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.3056083Z  Write of size 8 at 0x7ba4000473c0 by thread T3: 2023-01-11T21:03:39.3060083Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.3060551Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.3060928Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.3061436Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.3061945Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.3062429Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.3062660Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.3063025Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.3063259Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.3063267Z 2023-01-11T21:03:39.3063608Z  Previous write of size 8 at 0x7ba4000473c0 by main thread: 2023-01-11T21:03:39.3067617Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.3068102Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.3068503Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.3069017Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.3069539Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.3069887Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.3070249Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.3070495Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.3070706Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.3071418Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.3071690Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.3071913Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.3072303Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.3072702Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.3072947Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.3073160Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.3073959Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.3074165Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.3074369Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.3075181Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.3075409Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.3075835Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.3076226Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.3076466Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.3077369Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.3077607Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.3077871Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.3078044Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.3078207Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.3078462Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3078565Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3078685Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3078805Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3078953Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3079268Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3079387Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3079481Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3079487Z 2023-01-11T21:03:39.3079718Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2023-01-11T21:03:39.3079884Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.3080007Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.3080154Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.3080356Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.3080797Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.3081084Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.3081348Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.3081610Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.3081966Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.3083067Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.3083707Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.3084011Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.3085040Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.3085311Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.3085498Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.3085793Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.3086962Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.3087272Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.3088342Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.3088620Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.3088890Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.3090068Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.3090426Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.3091515Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.3091801Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.3091995Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.3092292Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.3093399Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.3093729Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.3094976Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.3095270Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.3095541Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.3096705Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.3097043Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.3098156Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.3098475Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.3098671Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.3098823Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.3099502Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.3099707Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.3099902Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.3100102Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.3100339Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.3100544Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.3100943Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.3101333Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.3101548Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.3101750Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.3102561Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.3102799Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.3103000Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.3103751Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.3103975Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.3104402Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.3104785Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.3105026Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.3105894Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.3106103Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.3106396Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.3106568Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.3106734Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.3107012Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3107126Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3107233Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3107353Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3107502Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3107809Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3107927Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3108021Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3108028Z 2023-01-11T21:03:39.3108251Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.3108418Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.3108638Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.3108951Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.3109124Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.3109415Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.3109565Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.3109739Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.3110144Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.3110367Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.3110550Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.3110747Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.3111303Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.3111497Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.3111722Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.3112429Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.3112644Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.3113410Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.3113591Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.3113734Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.3114345Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.3114489Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.3114709Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.3114971Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3115085Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3115206Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3115330Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3115480Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3115892Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3116016Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3116144Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3116151Z 2023-01-11T21:03:39.3117822Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.3117899Z ================== 2023-01-11T21:03:39.3447827Z ================== 2023-01-11T21:03:39.3448273Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.3448755Z  Write of size 8 at 0x7ba400047a38 by thread T3: 2023-01-11T21:03:39.3452963Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.3453486Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.3453864Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.3454293Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.3454911Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.3455334Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.3455723Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.3455994Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.3456206Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.3456215Z 2023-01-11T21:03:39.3456491Z  Previous write of size 8 at 0x7ba400047a38 by main thread: 2023-01-11T21:03:39.3460402Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.3460849Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.3461228Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.3461871Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.3462350Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.3462657Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.3462961Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.3463285Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.3463622Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.3464696Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.3465218Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.3465631Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.3466163Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.3466693Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.3466963Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.3467214Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.3472978Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.3473348Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.3473721Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.3474619Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.3474892Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.3475325Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.3475846Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.3476091Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.3476969Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.3477232Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.3477497Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.3477676Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.3477843Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.3478100Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3478216Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3478337Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3478444Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3478595Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3478909Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3479028Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3479122Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3479129Z 2023-01-11T21:03:39.3479377Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2023-01-11T21:03:39.3479546Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.3479668Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.3479831Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.3480036Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.3480513Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.3480813Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.3481080Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.3481343Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.3481667Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.3482740Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.3483374Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.3483679Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.3484731Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.3485042Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.3485229Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.3485500Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.3486639Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.3486952Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.3488026Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.3488330Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.3488622Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.3489795Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.3490117Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.3491210Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.3491515Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.3491707Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.3492003Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.3493168Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.3493478Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.3494673Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.3494948Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.3495218Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.3496380Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.3496801Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.3497890Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.3498195Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.3498378Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.3498526Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.3499215Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.3499372Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.3499568Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.3499757Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.3499992Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.3500209Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.3500635Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.3501059Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.3501272Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.3501471Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.3502254Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.3502459Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.3502665Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.3503409Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.3503636Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.3504065Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.3504449Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.3504688Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.3505608Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.3505820Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.3506088Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.3506264Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.3506431Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.3506681Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3506796Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3506904Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3507024Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3507172Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3507482Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3507605Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3507699Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3507706Z 2023-01-11T21:03:39.3507935Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.3508101Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.3508320Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.3508639Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.3508814Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.3509105Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.3509257Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.3509436Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.3509871Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.3510093Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.3510306Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.3510502Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.3511058Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.3511223Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.3511451Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.3512136Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.3512345Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.3513110Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.3513290Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.3513433Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.3514047Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.3514224Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.3514374Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.3514699Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3514849Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3514972Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3515094Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3515228Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3515539Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3515661Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3515755Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3515761Z 2023-01-11T21:03:39.3517431Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.3517505Z ================== 2023-01-11T21:03:39.3618570Z ================== 2023-01-11T21:03:39.3619304Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.3619967Z  Write of size 8 at 0x7ba400046868 by thread T3: 2023-01-11T21:03:39.3623680Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.3624207Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.3627006Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.3627553Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.3628057Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.3628507Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.3628728Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.3629095Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.3629324Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.3629335Z 2023-01-11T21:03:39.3629665Z  Previous write of size 8 at 0x7ba400046868 by main thread: 2023-01-11T21:03:39.3633592Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.3634071Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.3634446Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.3635031Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.3635566Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.3635967Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.3636286Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.3636708Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.3637099Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.3638348Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.3638793Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.3639192Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.3639857Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.3643040Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.3643404Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.3643759Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.3645350Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.3645731Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.3646082Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.3648790Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.3649019Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.3649452Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.3649839Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.3650080Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.3650951Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.3651161Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.3651426Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.3651603Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.3651769Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.3652024Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3652126Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3652245Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3652364Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3652541Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3652852Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3652970Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3653091Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3653098Z 2023-01-11T21:03:39.3653334Z  Location is heap block of size 20160 at 0x7ba400046000 allocated by main thread: 2023-01-11T21:03:39.3653501Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.3653624Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.3653772Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.3653982Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.3654633Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.3654933Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.3655200Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.3655467Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.3655806Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.3656917Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.3657551Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.3657942Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.3658967Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.3659257Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.3659444Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.3659718Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.3660857Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.3661164Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.3662293Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.3662565Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.3662837Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.3664005Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.3664324Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.3665416Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.3665778Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.3665971Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.3666264Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.3667362Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.3667669Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.3668739Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.3669014Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.3669327Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.3670511Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.3670842Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.3672031Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.3672338Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.3672517Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.3672666Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.3673359Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.3673542Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.3673767Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.3673956Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.3674189Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.3674412Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.3674870Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.3675278Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.3675495Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.3675697Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.3676487Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.3676692Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.3676897Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.3677640Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.3677899Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.3678350Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.3678731Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.3678970Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.3679839Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.3680048Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.3680313Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e52a1) 2023-01-11T21:03:39.3680485Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.3680650Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPut_Test::TestBody() (test_lazy+0x2cd64e) 2023-01-11T21:03:39.3680907Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3681011Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3681131Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3681251Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3681402Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3681715Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3681835Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3681929Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3681935Z 2023-01-11T21:03:39.3682169Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.3682370Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.3682590Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.3682907Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.3683106Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.3683400Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.3683555Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.3683736Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.3684143Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.3684367Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.3684556Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.3684750Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.3685310Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.3685478Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.3685706Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.3686384Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.3686596Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.3687361Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.3687564Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.3687734Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.3688343Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.3688490Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.3688639Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.3688894Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.3689008Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.3689127Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.3689246Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.3689380Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.3689695Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.3689813Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.3689905Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.3689910Z 2023-01-11T21:03:39.3691582Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.3691659Z ================== 2023-01-11T21:03:39.4767658Z [ OK ] LazyOpsTest.TestMultiIndexPut (608 ms) 2023-01-11T21:03:39.4768059Z [ RUN ] LazyOpsTest.TestMultiIndexPutHeadNull 2023-01-11T21:03:39.4797969Z ================== 2023-01-11T21:03:39.4798634Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.4799109Z  Write of size 4 at 0x7b88000040e8 by main thread: 2023-01-11T21:03:39.4803552Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:39.4806090Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.4806827Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.4807479Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.4808374Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.4808941Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.4809628Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.4810372Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.4811056Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.4812466Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.4813756Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.4814704Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.4816549Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.4818025Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.4818691Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.4820429Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.4822149Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.4823907Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.4825703Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.4826223Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.4826669Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.4827047Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.4827300Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.4827646Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.4827926Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.4828409Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.4828853Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.4829127Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.4829260Z 2023-01-11T21:03:39.4829532Z  Previous write of size 4 at 0x7b88000040e8 by thread T2: 2023-01-11T21:03:39.4831894Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.4833527Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.4833999Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.4834516Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.4835186Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.4835747Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.4836165Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.4836554Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.4836914Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.4837080Z 2023-01-11T21:03:39.4837302Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:39.4837637Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.4837887Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.4838236Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.4838620Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.4839303Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.4840003Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.4840541Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.4841074Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.4841670Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.4843060Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.4844832Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.4845723Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.4847075Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.4848482Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.4848926Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.4849802Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.4850651Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.4851198Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.4853047Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.4854962Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.4856985Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.4859038Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.4859455Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.4859915Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.4860291Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.4860537Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.4860797Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.4861086Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.4861563Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.4861991Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.4862223Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.4862354Z 2023-01-11T21:03:39.4862584Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.4862908Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.4863262Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.4863807Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.4864297Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.4864775Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.4865220Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.4865570Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.4866253Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.4867007Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.4867681Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.4868326Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.4869713Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.4871041Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.4871806Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.4872946Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.4873790Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.4874861Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.4875784Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.4876105Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.4876879Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.4877611Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.4877925Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.4878351Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.4878725Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.4878970Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.4879228Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.4879516Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.4879987Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.4880449Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.4880676Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.4880805Z 2023-01-11T21:03:39.4882546Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.4883577Z ================== 2023-01-11T21:03:39.4883793Z ================== 2023-01-11T21:03:39.4884061Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.4884385Z  Write of size 4 at 0x7b88000040ec by main thread: 2023-01-11T21:03:39.4886671Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:39.4888300Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.4888775Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.4889288Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.4889856Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.4890338Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.4890778Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.4891204Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.4891675Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.4892680Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.4893637Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.4894060Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.4895610Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.4897296Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.4898014Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.4899716Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.4901558Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.4903610Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.4905471Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.4906202Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.4907061Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.4907712Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.4908173Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.4908653Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.4909145Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.4910000Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.4910809Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.4911235Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.4911467Z 2023-01-11T21:03:39.4911794Z  Previous write of size 4 at 0x7b88000040ec by thread T2: 2023-01-11T21:03:39.4916134Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.4917769Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.4918309Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.4918833Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.4919438Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.4920005Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.4920424Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.4920802Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.4921174Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.4921339Z 2023-01-11T21:03:39.4921565Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:39.4921902Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.4922157Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.4922462Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.4922844Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.4923499Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.4924204Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.4924742Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.4925256Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.4925845Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.4927281Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.4929082Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.4929978Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.4931317Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.4932688Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.4933125Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.4934007Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.4934946Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.4935354Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.4937099Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.4938732Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.4940447Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.4942098Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.4942729Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.4943474Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.4944043Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.4944433Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.4944863Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.4945310Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.4946035Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.4946717Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.4947068Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.4947221Z 2023-01-11T21:03:39.4947555Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.4947950Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.4948542Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.4949286Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.4950212Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.4951002Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.4951771Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.4952463Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.4953534Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.4954423Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.4955203Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.4955747Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.4957163Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.4958091Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.4958507Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.4959413Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.4960263Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.4961248Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.4962161Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.4962556Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.4963358Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.4964099Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.4964417Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.4964846Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.4965212Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.4965472Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.4965734Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.4966030Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.4966502Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.4966942Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.4967178Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.4967308Z 2023-01-11T21:03:39.4968996Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.4969995Z ================== 2023-01-11T21:03:39.4970253Z ================== 2023-01-11T21:03:39.4970525Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.4970849Z  Write of size 4 at 0x7b88000040f0 by main thread: 2023-01-11T21:03:39.4973177Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:39.4974928Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.4975409Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.4975924Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.4976494Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.4976977Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.4977435Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.4977888Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.4978522Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.4980088Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.4981491Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.4982269Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.4983967Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.4985707Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.4986479Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.4988700Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.4990570Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.4992542Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.4994404Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.4995169Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.4995986Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.4996641Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.4997091Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.4997570Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.4998070Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.4998917Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.4999710Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5000130Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5000365Z 2023-01-11T21:03:39.5000717Z  Previous write of size 4 at 0x7b88000040f0 by thread T2: 2023-01-11T21:03:39.5003281Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:39.5004956Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5005439Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5005950Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5006625Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5007233Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5007651Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5008025Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5008392Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5008557Z 2023-01-11T21:03:39.5008785Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:39.5009119Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5009370Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5009673Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5010057Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5010715Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5011456Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5011995Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5012541Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5013136Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5014643Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5016413Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5017474Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5018824Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5020312Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5020753Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.5021672Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.5023074Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.5023773Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.5025653Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5027260Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5028560Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5030328Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5031004Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5031778Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5032468Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5032891Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5033321Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5033789Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5034736Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5035509Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5035897Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5036115Z 2023-01-11T21:03:39.5036502Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.5037045Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5037655Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5038601Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5039435Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5040267Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5041074Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5041702Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5042781Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5043651Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5044390Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5045057Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5046439Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5047670Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5048397Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5049996Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5051652Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5053395Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5055174Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5055750Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5057151Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5058464Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5059014Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5059757Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5060419Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5060842Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5061311Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5061791Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5062653Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5063433Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5063833Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5064041Z 2023-01-11T21:03:39.5066838Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5068637Z ================== 2023-01-11T21:03:39.5068903Z ================== 2023-01-11T21:03:39.5069362Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5069914Z  Write of size 4 at 0x7b88000040f4 by main thread: 2023-01-11T21:03:39.5073809Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:39.5076591Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5077460Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5078270Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5079192Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5079945Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5080573Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5081280Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5082016Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5083834Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.5085484Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.5086190Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5087854Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5089489Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5090206Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5091989Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5093647Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5095583Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5097410Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5098056Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5098901Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5099575Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5099969Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5100380Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5100832Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5101668Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5102418Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5102831Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5103049Z 2023-01-11T21:03:39.5103404Z  Previous write of size 4 at 0x7b88000040f4 by thread T2: 2023-01-11T21:03:39.5106826Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:39.5109104Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5109766Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5110489Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5111313Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5112086Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5112778Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5113321Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5113946Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5114206Z 2023-01-11T21:03:39.5114650Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:39.5115176Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5115571Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5115997Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5116541Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5117470Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5118472Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5119265Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5120041Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5120900Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5122935Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5125520Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5126972Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5128919Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5130837Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5131460Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.5132703Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.5133898Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.5134543Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.5136045Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5137772Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5139730Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5141473Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5142160Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5142939Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5143567Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5143988Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5144415Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5144896Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5145704Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5146431Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5146818Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5147036Z 2023-01-11T21:03:39.5147422Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.5147994Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5148575Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5149493Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5150346Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5151166Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5151928Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5152538Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5153621Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5154530Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5155318Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5156053Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5157365Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5158577Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5159256Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5160811Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5162242Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5163924Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5165497Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5166035Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5167357Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5168632Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5169203Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5169769Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5170282Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5170606Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5171031Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5171453Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5172135Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5172750Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5173072Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5173256Z 2023-01-11T21:03:39.5175844Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5177307Z ================== 2023-01-11T21:03:39.5177820Z ================== 2023-01-11T21:03:39.5178234Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5178691Z  Write of size 4 at 0x7b88000040f8 by main thread: 2023-01-11T21:03:39.5182254Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.5184668Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5185484Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5186217Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5187137Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5187907Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5188527Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5189199Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5189855Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5191338Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.5192762Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.5193377Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5194938Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5196344Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5196969Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5198525Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5200037Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5201875Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5203633Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5204291Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5205046Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5205673Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5206102Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5206543Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5207017Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5207851Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5208591Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5208970Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5209179Z 2023-01-11T21:03:39.5209510Z  Previous write of size 4 at 0x7b88000040f8 by thread T2: 2023-01-11T21:03:39.5213621Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.5216580Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5217402Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5218287Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5219265Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5220211Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5220899Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5221534Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5222151Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5222428Z 2023-01-11T21:03:39.5222810Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:39.5223358Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5223794Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5224313Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5224954Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5226051Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5227244Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5228133Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5229034Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5230148Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5232646Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5235440Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5236794Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5238876Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5240961Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5241641Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.5243114Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.5244119Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.5244713Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.5246288Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5247856Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5249538Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5250750Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5251157Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5251839Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5252388Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5252779Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5253150Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5253589Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5254304Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5255165Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5255535Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5255728Z 2023-01-11T21:03:39.5256075Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.5256596Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5257196Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5257673Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5257941Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5258392Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5258625Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5258915Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5259556Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5259902Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5260129Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5260435Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5261285Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5261528Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5261888Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5262888Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5263212Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5264430Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5264748Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5264965Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5265936Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5266159Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5266395Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5266684Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5266804Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5266926Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5267049Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5267196Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5267509Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5267659Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5267796Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5267806Z 2023-01-11T21:03:39.5270415Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5270535Z ================== 2023-01-11T21:03:39.5270638Z ================== 2023-01-11T21:03:39.5270915Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5271256Z  Write of size 4 at 0x7b88000040fc by main thread: 2023-01-11T21:03:39.5274947Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.5275357Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5275719Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5276179Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5276679Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5277001Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5277335Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5277704Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5278037Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5279312Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.5279678Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.5280079Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5281458Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5281801Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5282136Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5283268Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5283672Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5284920Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5285180Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5285425Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5285824Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5286004Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5286269Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5286429Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5286660Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5287229Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5287395Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5287535Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5287548Z 2023-01-11T21:03:39.5287849Z  Previous write of size 4 at 0x7b88000040fc by thread T2: 2023-01-11T21:03:39.5291409Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.5291817Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5292164Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5292612Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5293082Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5293526Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5293756Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5294095Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5294304Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5294312Z 2023-01-11T21:03:39.5294814Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:39.5295165Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5295369Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5295605Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5295905Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5296624Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5296955Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5297281Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5297617Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5297945Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5299600Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5300605Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5301073Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5302781Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5303253Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5303538Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.5304609Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.5304886Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.5305218Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.5306483Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5306870Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5307976Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5308383Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5308681Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5309076Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5309259Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5309432Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5309616Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5309856Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5310359Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5310554Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5310703Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5310712Z 2023-01-11T21:03:39.5311053Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.5311326Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5311648Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5312145Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5312415Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5312872Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5313113Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5313351Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5313978Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5314223Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5314408Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5314680Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5315270Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5315620Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5315976Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5316984Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5317309Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5318443Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5318707Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5318914Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5319842Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5320062Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5320286Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5320661Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5320848Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5321018Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5321190Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5321395Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5321918Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5322105Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5322241Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5322251Z 2023-01-11T21:03:39.5324860Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5324968Z ================== 2023-01-11T21:03:39.5325075Z ================== 2023-01-11T21:03:39.5325333Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5325611Z  Write of size 4 at 0x7b88000070e8 by main thread: 2023-01-11T21:03:39.5328899Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:39.5329319Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5329648Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5330082Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5330515Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5330843Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5331149Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5331435Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5331650Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5332484Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5332751Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5333040Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5333648Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5334437Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5334801Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5335082Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5336322Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5336617Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5336894Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5338224Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5338458Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5339130Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5339825Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5340225Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5341644Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5342021Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5342509Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5342811Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5343111Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5343529Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5343707Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5343894Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5344144Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5344363Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5344868Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5345312Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5345529Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5345542Z 2023-01-11T21:03:39.5345919Z  Previous write of size 4 at 0x7b88000070e8 by thread T1: 2023-01-11T21:03:39.5349475Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.5349828Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5350114Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5350566Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5351047Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5351486Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5351699Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5352061Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5352277Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5352287Z 2023-01-11T21:03:39.5352660Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2023-01-11T21:03:39.5352937Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5353139Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5353470Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5353811Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5354632Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5355064Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5355514Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5355932Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5356448Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5358137Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5359177Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5359679Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5361434Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5361928Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5362239Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.5362745Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.5364038Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.5364365Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5365430Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5365778Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5366046Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5367221Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5367539Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5368645Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5368931Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5369121Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5369445Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.5370575Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.5370894Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5371946Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5372224Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5372488Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5373682Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5374024Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5375228Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5375518Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5375711Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5375857Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.5376533Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.5376692Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.5376887Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.5377088Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.5377324Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.5377592Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5378010Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5378405Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5378622Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5378820Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5379610Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5379814Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5380018Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5380775Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5381005Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5381432Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5381815Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5382097Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5382983Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5383194Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5383470Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5383645Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5383826Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5384078Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5384193Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5384311Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5384431Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5384582Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5384891Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5385011Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5385093Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5385102Z 2023-01-11T21:03:39.5385342Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.5385510Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5385732Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5386053Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5386225Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5386517Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5386701Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5386897Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5387334Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5387553Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5387738Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5387931Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5388494Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5388658Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5388884Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5389552Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5389761Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5390521Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5390698Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5390839Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5391451Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5391622Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5391798Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5392052Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5392166Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5392284Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5392408Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5392554Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5392863Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5392981Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5393076Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5393082Z 2023-01-11T21:03:39.5395364Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5395500Z ================== 2023-01-11T21:03:39.5395997Z ================== 2023-01-11T21:03:39.5396320Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5396626Z  Write of size 4 at 0x7b88000070ec by main thread: 2023-01-11T21:03:39.5400688Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:39.5401259Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5401654Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5402153Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5402688Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5403010Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5403374Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5403766Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5404148Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5405437Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5405874Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5406251Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5406963Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5407630Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5408020Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5408402Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5409865Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5410227Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5410597Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5411943Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5412358Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5413129Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5413816Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5414257Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5415929Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5416385Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5416943Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5417270Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5417580Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5418028Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5418222Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5418440Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5418660Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5418927Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5419490Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5419700Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5419853Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5419862Z 2023-01-11T21:03:39.5420213Z  Previous write of size 4 at 0x7b88000070ec by thread T1: 2023-01-11T21:03:39.5423973Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.5424240Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5424465Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5424747Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5425076Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5425343Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5425516Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5425742Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5425880Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5425886Z 2023-01-11T21:03:39.5426107Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2023-01-11T21:03:39.5426278Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5426401Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5426562Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5426767Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5427209Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5427476Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5427743Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5428010Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5428333Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5429400Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5430095Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5430400Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5431426Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5431700Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5431887Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.5432155Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.5433297Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.5433631Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5434797Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5435076Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5435346Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5436511Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5436844Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5437970Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5438285Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5438482Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5438777Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.5439886Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.5440192Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5441267Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5441579Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5441870Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5443028Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5443367Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5444453Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5444745Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5444934Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5445077Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.5445802Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.5445968Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.5446149Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.5446345Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.5446575Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.5446793Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5447175Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5447560Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5447774Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5447973Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5448767Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5448974Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5449179Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5449919Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5450197Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5450624Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5451006Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5451243Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5452109Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5452320Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5452596Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5452769Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5452975Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5453345Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5453521Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5453710Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5453885Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5454118Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5454744Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5455028Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5455176Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5455185Z 2023-01-11T21:03:39.5455555Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.5455835Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5456275Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5456805Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5457071Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5457540Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5457726Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5458041Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5458709Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5459070Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5459360Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5459603Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5460319Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5460599Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5460974Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5462005Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5462349Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5463414Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5463693Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5463914Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5464935Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5465175Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5465393Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5465808Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5465990Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5466146Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5466326Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5466552Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5467064Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5467228Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5467369Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5467381Z 2023-01-11T21:03:39.5469894Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5469996Z ================== 2023-01-11T21:03:39.5470077Z ================== 2023-01-11T21:03:39.5470357Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5470667Z  Write of size 4 at 0x7b88000070f0 by main thread: 2023-01-11T21:03:39.5474053Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:39.5474497Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5474908Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5475346Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5475798Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5476092Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5476410Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5476755Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5477029Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5478119Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5478502Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5478887Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5479535Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5480161Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5480475Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5480798Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5481980Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5482312Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5482602Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5483408Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5483651Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5484084Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5484467Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5484755Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5485645Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5485857Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5486137Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5486310Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5486494Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5486752Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5486870Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5486992Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5487114Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5487263Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5487561Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5487679Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5487773Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5487783Z 2023-01-11T21:03:39.5487991Z  Previous write of size 4 at 0x7b88000070f0 by thread T1: 2023-01-11T21:03:39.5490199Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:39.5490528Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5490752Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5491032Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5491319Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5491590Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5491734Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5491958Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5492085Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5492090Z 2023-01-11T21:03:39.5492311Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2023-01-11T21:03:39.5492479Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5492602Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5492764Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5492967Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5493407Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5493675Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5493941Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5494205Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5494637Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5495801Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5496427Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5496737Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5497785Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5498058Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5498243Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.5498511Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.5499699Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.5500022Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5501086Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5501367Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5501635Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5502830Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5503185Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5504288Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5504576Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5504766Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5505063Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.5506161Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.5506514Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5507591Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5507872Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5508137Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5509310Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5509631Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5510756Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5511072Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5511269Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5511418Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.5512094Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.5512249Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.5512448Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.5512648Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.5512881Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.5513101Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5513486Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5513880Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5514096Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5514295Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5515185Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5515420Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5515625Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5516371Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5516596Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5517040Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5517428Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5517668Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5518522Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5518733Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5519011Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5519218Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5519400Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5519683Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5519801Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5519919Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5520040Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5520175Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5520487Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5520609Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5520701Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5520707Z 2023-01-11T21:03:39.5520932Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.5521103Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5521324Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5521639Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5521815Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5522108Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5522262Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5522452Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5522855Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5523076Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5523264Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5523458Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5524020Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5524221Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5524448Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5525139Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5525351Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5526113Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5526289Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5526431Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5527043Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5527188Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5527338Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5527594Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5527707Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5527827Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5527950Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5528099Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5528408Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5528526Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5528607Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5528662Z 2023-01-11T21:03:39.5530344Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5530417Z ================== 2023-01-11T21:03:39.5530481Z ================== 2023-01-11T21:03:39.5530639Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5530814Z  Write of size 4 at 0x7b88000070f4 by main thread: 2023-01-11T21:03:39.5532968Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:39.5533226Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5533448Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5533729Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5534020Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5534210Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5534539Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5534813Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5535026Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5535785Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5536030Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5536250Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5536635Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5537020Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5537239Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5537440Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5538223Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5538429Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5538636Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5539397Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5539678Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5540112Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5540497Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5540737Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5541591Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5541807Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5542084Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5542260Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5542440Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5542694Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5542808Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5542928Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5543048Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5543196Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5543507Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5543653Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5543734Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5543741Z 2023-01-11T21:03:39.5543928Z  Previous write of size 4 at 0x7b88000070f4 by thread T1: 2023-01-11T21:03:39.5546098Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:39.5546356Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5546577Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5546861Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5547150Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5547417Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5547557Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5547782Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5547916Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5547922Z 2023-01-11T21:03:39.5548126Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2023-01-11T21:03:39.5548293Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5548417Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5548579Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5548782Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5549218Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5549555Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5549821Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5550084Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5550413Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5551493Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5552118Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5552418Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5553482Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5553785Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5553970Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.5554241Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.5555452Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.5555779Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5556845Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5557157Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5557425Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5558631Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5558951Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5560055Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5560346Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5560539Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5560834Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.5561987Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.5562309Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5563369Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5563643Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5563911Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5565080Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5565462Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5566563Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5566852Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5567044Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5567191Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.5567867Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.5568020Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.5568213Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.5568498Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.5568865Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.5569147Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5569746Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5570511Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5570919Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5571197Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5572594Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5572946Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5573307Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5574742Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5575170Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5575846Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5576449Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5576815Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5578384Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5578726Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5579176Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5579404Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5579669Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5580054Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5580232Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5580409Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5580556Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5580726Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5581208Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5581397Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5581531Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5581542Z 2023-01-11T21:03:39.5581938Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.5582208Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5582536Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5583002Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5583289Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5583760Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5584126Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5584456Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5585191Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5585511Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5585863Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5586169Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5587057Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5587326Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5587736Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5588903Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5589293Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5590083Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5590262Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5590405Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5591019Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5591203Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5591351Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5591606Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5591721Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5591869Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5591993Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5592139Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5592453Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5592573Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5592668Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5592674Z 2023-01-11T21:03:39.5594342Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5594414Z ================== 2023-01-11T21:03:39.5594481Z ================== 2023-01-11T21:03:39.5594712Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5594879Z  Write of size 4 at 0x7b88000070f8 by main thread: 2023-01-11T21:03:39.5597042Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.5597339Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5597559Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5597877Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5598167Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5598361Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5598566Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5598791Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5599010Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5599968Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5600209Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5600428Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5600813Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5601200Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5601412Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5601614Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5602425Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5602674Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5602876Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5603623Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5603848Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5604275Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5604665Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5604903Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5605754Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5605966Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5606246Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5606456Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5606638Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5606929Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5607049Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5607168Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5607287Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5607438Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5607753Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5607872Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5607965Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5607970Z 2023-01-11T21:03:39.5608159Z  Previous write of size 4 at 0x7b88000070f8 by thread T1: 2023-01-11T21:03:39.5610558Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.5610919Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5611248Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5611684Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5612144Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5612567Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5612851Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5613219Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5613447Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5613505Z 2023-01-11T21:03:39.5613879Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2023-01-11T21:03:39.5614159Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5614441Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5614711Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5615039Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5615729Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5616178Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5616618Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5617045Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5617594Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5619479Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5620469Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5621059Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5622677Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5623100Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5623377Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.5623780Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.5625544Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.5626056Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5627689Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5628133Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5628574Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5630257Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5630606Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5631698Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5632091Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5632295Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5632590Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.5633703Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.5634013Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5635142Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5635421Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5635725Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5636912Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5637249Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5638335Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5638625Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5638816Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5638965Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.5639642Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.5639824Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.5640043Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.5640243Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.5640476Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.5640694Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5641079Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5641466Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5641677Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5641877Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5642679Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5642885Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5643088Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5643830Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5644082Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5644548Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5644933Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5645174Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5646029Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5646251Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5646528Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5646703Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5646873Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5647128Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5647245Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5647362Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5647482Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5647628Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5647940Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5648059Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5648151Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5648158Z 2023-01-11T21:03:39.5648400Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.5648599Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5648806Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5649122Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5649323Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5649617Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5649770Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5649962Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5650372Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5650594Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5650776Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5650971Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5651529Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5651693Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5651921Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5652584Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5652797Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5653878Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5654197Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5654588Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5655553Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5655769Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5655949Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5656325Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5656510Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5656675Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5656851Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5657081Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5657582Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5657797Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5657967Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5657978Z 2023-01-11T21:03:39.5660647Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5660762Z ================== 2023-01-11T21:03:39.5660877Z ================== 2023-01-11T21:03:39.5661165Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5661423Z  Write of size 4 at 0x7b88000070fc by main thread: 2023-01-11T21:03:39.5664792Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.5665246Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5665614Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5666021Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5666454Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5666743Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5667061Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5667354Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.5667707Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5668899Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5669317Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5669645Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5670213Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5670973Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5671262Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5671612Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5672833Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5673163Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5673376Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5674118Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5674344Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5674834Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5675220Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5675458Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5676393Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5676610Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5676886Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5677058Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5677241Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5677494Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5677610Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5677718Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5677842Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5677990Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5678301Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5678423Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5678516Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5678524Z 2023-01-11T21:03:39.5678733Z  Previous write of size 4 at 0x7b88000070fc by thread T1: 2023-01-11T21:03:39.5680896Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.5681190Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5681440Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5681720Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5682010Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5682278Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5682418Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5682640Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5682775Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5682781Z 2023-01-11T21:03:39.5683001Z  Location is heap block of size 6048 at 0x7b8800006000 allocated by main thread: 2023-01-11T21:03:39.5683169Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5683294Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5683453Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5683658Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5684100Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5684369Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5684636Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5684902Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5685229Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5686333Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5687017Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5687318Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5688348Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5688633Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5688808Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.5689077Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.5690246Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.5690584Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5691655Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5691931Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5692203Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5693362Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5693729Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5694999Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5695295Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5695491Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5695789Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.5696906Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.5697215Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5698309Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5698618Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5698887Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5700041Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5700376Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5701463Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5701809Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5702004Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5702150Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.5702835Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.5702992Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.5703172Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.5703370Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.5703602Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.5703820Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5704206Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5704591Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5704805Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5705005Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5705800Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5706035Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5706266Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5707013Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5707237Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5707665Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5708047Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5708289Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5709157Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5709370Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5709646Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5709820Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5710003Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5710300Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5710402Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5710522Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5710641Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5710813Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5711127Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5711247Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5711343Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5711349Z 2023-01-11T21:03:39.5711572Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.5711739Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5711959Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5712279Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5712452Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5712744Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5712886Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5713078Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5713491Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5713709Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5713892Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5714087Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5714704Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5714872Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5715096Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5715839Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5716050Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5716812Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5716995Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5717138Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5717749Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5717898Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5718052Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5718304Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5718418Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5718537Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5718645Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5718792Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5719099Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5719218Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5719312Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5719318Z 2023-01-11T21:03:39.5721003Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.5721104Z ================== 2023-01-11T21:03:39.5721169Z ================== 2023-01-11T21:03:39.5721338Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5721517Z  Write of size 1 at 0x7b680007b42d by main thread: 2023-01-11T21:03:39.5723693Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.5723957Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5724178Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5724461Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5724747Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5724938Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5725140Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5725363Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.5725594Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5726439Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.5726654Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.5726854Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5727634Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5727837Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5728042Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5728853Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5729099Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5729964Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5730203Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5730413Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5730668Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5730774Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5753060Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5753274Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5753468Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5753920Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5754111Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5754265Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5754275Z 2023-01-11T21:03:39.5754686Z  Previous write of size 1 at 0x7b680007b42d by thread T3: 2023-01-11T21:03:39.5757980Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.5758358Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5758700Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5759021Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5759416Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5759971Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5760184Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5760569Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5760799Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5760809Z 2023-01-11T21:03:39.5761061Z  Location is heap block of size 1512 at 0x7b680007b000 allocated by main thread: 2023-01-11T21:03:39.5761288Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5761418Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5761579Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5761784Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5762226Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5762494Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5762762Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5763027Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5763352Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5764419Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5765125Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5765427Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5766448Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5766739Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5766916Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.5767603Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.5767782Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.5767989Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.5768796Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5769064Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5769947Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5770175Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5770349Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5770606Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5770721Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5770839Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5770961Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5771110Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5771420Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5771541Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5771636Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5771642Z 2023-01-11T21:03:39.5771859Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.5772023Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5772231Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5772552Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5772725Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5773020Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5773173Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5773363Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5773803Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5774020Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5774240Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5774549Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5775109Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5775275Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5775505Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5776170Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5776386Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5777169Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5777349Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5777494Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5778109Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5778297Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5778452Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5778704Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5778853Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5778961Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5779081Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5779227Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5779537Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5779658Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5779753Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5779758Z 2023-01-11T21:03:39.5781442Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.5781515Z ================== 2023-01-11T21:03:39.5781772Z ================== 2023-01-11T21:03:39.5781943Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5782123Z  Write of size 1 at 0x7b680007b430 by main thread: 2023-01-11T21:03:39.5784300Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.5784597Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5784819Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5785125Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5785417Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5785607Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5785804Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5786031Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.5786237Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5787011Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.5787233Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.5787433Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5788214Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5788419Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5788622Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5789480Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5789723Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5790591Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5790804Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5790990Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5791243Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5791362Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5791468Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5791588Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5791736Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5792047Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5792169Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5792264Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5792269Z 2023-01-11T21:03:39.5792455Z  Previous write of size 1 at 0x7b680007b430 by thread T3: 2023-01-11T21:03:39.5795619Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.5796110Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5796476Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5796918Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5797334Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5797629Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5797819Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5798140Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5798370Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5798378Z 2023-01-11T21:03:39.5798747Z  Location is heap block of size 1512 at 0x7b680007b000 allocated by main thread: 2023-01-11T21:03:39.5799024Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5799214Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5799470Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5799800Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5800518Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5800963Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5801408Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5801769Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5802375Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5803953Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5804748Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5805112Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5806427Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5806743Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5807060Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.5808042Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.5808341Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.5808683Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.5809835Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5810142Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5811440Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5811793Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5812082Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5812496Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5812688Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5812883Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5813055Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5813288Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5813795Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5814043Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5814190Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5814199Z 2023-01-11T21:03:39.5814649Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.5815064Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5815445Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5815968Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5816246Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5816705Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5816938Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5817247Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5817950Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5818313Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5818616Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5818925Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5819860Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5820108Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5820460Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5821491Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5821934Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5823303Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5823622Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5823770Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5824384Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5824530Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5824683Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5824943Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5825061Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5825181Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5825304Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5825454Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5825768Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5825892Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5825974Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5825981Z 2023-01-11T21:03:39.5827675Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.5827788Z ================== 2023-01-11T21:03:39.5827840Z ================== 2023-01-11T21:03:39.5828012Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5828189Z  Write of size 1 at 0x7b680007b443 by main thread: 2023-01-11T21:03:39.5830384Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:39.5830662Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5830883Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5831167Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5831457Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5831649Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5831852Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5832079Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.5832278Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5833073Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.5833317Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.5833514Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5834323Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5834531Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5834821Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5835630Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5835891Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5836748Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5836961Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5837147Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5837406Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5837553Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5837673Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5837796Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5837931Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5838272Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5838393Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5838487Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5838493Z 2023-01-11T21:03:39.5838684Z  Previous write of size 1 at 0x7b680007b443 by thread T3: 2023-01-11T21:03:39.5840837Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:39.5841110Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5841335Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5841614Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5841901Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5842169Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5842311Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5842534Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5842658Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5842693Z 2023-01-11T21:03:39.5842915Z  Location is heap block of size 1512 at 0x7b680007b000 allocated by main thread: 2023-01-11T21:03:39.5843081Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5843206Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5843366Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5843599Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5844047Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5844318Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5844586Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5844850Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5845177Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5846260Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5846882Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5847213Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5848277Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5848555Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5848733Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.5849417Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.5849599Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.5849806Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.5850621Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.5850862Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.5851757Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5852006Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5852192Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.5852450Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5852565Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5852686Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5852796Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5852947Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5853256Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5853373Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5853467Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5853474Z 2023-01-11T21:03:39.5853691Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.5853860Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5854081Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5854515Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5854693Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5854986Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5855145Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5855336Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5855748Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5855968Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5856141Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5856336Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5857001Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5857168Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5857393Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5858064Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5858277Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5859046Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5859224Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5859366Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5860057Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5860206Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5860423Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5860764Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5860936Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5861122Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5861335Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5861521Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5862013Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5862160Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5862339Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5862349Z 2023-01-11T21:03:39.5865356Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.5865507Z ================== 2023-01-11T21:03:39.5865608Z ================== 2023-01-11T21:03:39.5865925Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5866149Z  Write of size 1 at 0x7b680007cc2d by main thread: 2023-01-11T21:03:39.5869569Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.5870045Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5870432Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5870916Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5871516Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5871775Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5872123Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5872395Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.5872686Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5873745Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5874098Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5874356Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5874930Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5875490Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5875838Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5876100Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5877214Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5877616Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5877918Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5879052Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5879431Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5880124Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5880679Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5881070Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5882279Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5882623Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5882981Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5883183Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5883435Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5883813Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5884023Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5884202Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5884385Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5884600Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5885113Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5885296Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5885440Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5885451Z 2023-01-11T21:03:39.5885804Z  Previous write of size 1 at 0x7b680007cc2d by thread T2: 2023-01-11T21:03:39.5889054Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.5889517Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5889807Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5890182Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5890480Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5890804Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5890954Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5891181Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5891321Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5891328Z 2023-01-11T21:03:39.5891608Z  Location is heap block of size 1512 at 0x7b680007c800 allocated by main thread: 2023-01-11T21:03:39.5891778Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5891904Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5892067Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5892275Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5892757Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5893029Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5893295Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5893559Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5893881Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5895135Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5895769Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5896072Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5897223Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5897505Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5897693Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.5897962Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.5899099Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.5899419Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5900512Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5900812Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5901079Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5902255Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5902581Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5903689Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5903976Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5904211Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5904535Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.5905635Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.5905956Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5907024Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5907299Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5907573Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5908767Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5909113Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5910211Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5910499Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5910688Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5910835Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.5911514Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.5911668Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.5911862Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.5912088Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.5912322Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.5912540Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5912954Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5913343Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5913557Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5913760Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5914543Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5914816Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5915026Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5915771Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5916014Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5916439Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5916855Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5917119Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5917976Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5918187Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5918465Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5918642Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5918825Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5919077Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5919194Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5919314Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5919438Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5919586Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5919898Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5920006Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5920099Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5920106Z 2023-01-11T21:03:39.5920337Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.5920507Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5920730Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5921045Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5921220Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5921544Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5921699Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5921917Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5922329Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5922548Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5922736Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5922933Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5923494Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5923655Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5923884Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5924548Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5924759Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5925526Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5925706Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5925851Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5926532Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5926684Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5926835Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5927093Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5927215Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5927336Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5927457Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5927607Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5927919Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5928038Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5928134Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5928139Z 2023-01-11T21:03:39.5929818Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.5929893Z ================== 2023-01-11T21:03:39.5930148Z ================== 2023-01-11T21:03:39.5930321Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5930490Z  Write of size 1 at 0x7b680007cc30 by main thread: 2023-01-11T21:03:39.5932695Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.5932987Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5933211Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5933497Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5933785Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5933979Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5934180Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5934554Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.5934771Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5935490Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5935728Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5935951Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5936336Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5936726Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5936985Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5937184Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5938000Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5938208Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5938417Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5939174Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5939399Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5939828Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5940211Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5940450Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5941307Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5941569Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5941848Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5942025Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5942207Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5942462Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5942579Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5942698Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5942821Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5942972Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5943283Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5943404Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5943500Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5943506Z 2023-01-11T21:03:39.5943685Z  Previous write of size 1 at 0x7b680007cc30 by thread T2: 2023-01-11T21:03:39.5945849Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.5946112Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5946334Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5946643Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5946932Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5947222Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.5947363Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.5947586Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.5947726Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.5947731Z 2023-01-11T21:03:39.5947952Z  Location is heap block of size 1512 at 0x7b680007c800 allocated by main thread: 2023-01-11T21:03:39.5948105Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.5948229Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.5948392Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.5948595Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.5949035Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.5949306Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.5949572Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.5949835Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.5950160Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.5951242Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.5951915Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.5952221Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.5953261Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.5953536Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.5953724Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.5953993Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.5955208Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.5955584Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5956648Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5956937Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5957207Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5958367Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5958688Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5959818Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5960151Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5960348Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5960647Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.5961763Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.5962073Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.5963140Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.5963490Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.5963758Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.5964909Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.5965233Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.5966327Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.5966614Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.5966834Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.5966982Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.5967685Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.5967839Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.5968037Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.5968241Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.5968477Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.5968695Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5969079Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5969466Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5969679Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5969879Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5970663Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5970867Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5971074Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5971900Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5972126Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5972555Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5972943Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5973182Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5974045Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5974257Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5974709Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5974888Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5975074Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5975336Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5975453Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5975575Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5975699Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5975894Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5976209Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5976328Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5976409Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5976431Z 2023-01-11T21:03:39.5976676Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.5976848Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.5977066Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.5977382Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.5977565Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.5977858Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.5978009Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.5978201Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.5978604Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.5978824Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.5979009Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.5979208Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.5979771Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.5979938Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.5980164Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.5980834Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.5981073Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.5981859Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.5982053Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.5982185Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.5982815Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.5982962Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.5983101Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.5983355Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5983474Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5983595Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5983717Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5983867Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5984182Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5984302Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5984403Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5984408Z 2023-01-11T21:03:39.5986075Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.5986174Z ================== 2023-01-11T21:03:39.5986241Z ================== 2023-01-11T21:03:39.5986408Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.5986588Z  Write of size 1 at 0x7b680007cc43 by main thread: 2023-01-11T21:03:39.5988777Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:39.5989044Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.5989268Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.5989551Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.5989841Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.5990035Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.5990239Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.5990466Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.5990680Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.5991397Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.5991660Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.5991915Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.5992301Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.5992688Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.5992903Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.5993106Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.5993904Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.5994112Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.5994319Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.5995125Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.5995352Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.5995780Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.5996197Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.5996464Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.5997319Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.5997546Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.5997825Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.5997988Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.5998171Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.5998426Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.5998547Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.5998668Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.5998788Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.5998938Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.5999247Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.5999369Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.5999464Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.5999470Z 2023-01-11T21:03:39.5999662Z  Previous write of size 1 at 0x7b680007cc43 by thread T2: 2023-01-11T21:03:39.6001829Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:39.6002114Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6002338Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6002619Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6002909Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6003176Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6003320Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6003547Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6003685Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6003691Z 2023-01-11T21:03:39.6003912Z  Location is heap block of size 1512 at 0x7b680007c800 allocated by main thread: 2023-01-11T21:03:39.6004081Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6004205Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6004352Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6004555Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6004998Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6005269Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6005533Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6005797Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6006172Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6007667Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6008639Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6009206Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6011039Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6011561Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6011932Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6012358Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6014212Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6014858Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6016653Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6017160Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6017623Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6019572Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6020088Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6021658Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6022039Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6022307Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6022735Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6024434Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6025027Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6026773Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6027233Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6027671Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6029402Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6029924Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6031691Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6032265Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6032572Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6032820Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6033890Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6034054Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6034371Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6034658Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6034906Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6035211Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6035604Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6036010Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6036225Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6036427Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6037288Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6037494Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6037700Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6038448Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6038676Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6039107Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6039490Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6039733Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6040602Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6040839Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6041117Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6041322Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6041510Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6041765Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6041884Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6041996Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6042117Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6042266Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6042587Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6042713Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6042807Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6042814Z 2023-01-11T21:03:39.6043063Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.6043231Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6043454Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6043778Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6043953Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6044251Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6044407Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6044586Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6044994Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6045215Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6045406Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6045607Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6046167Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6046370Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6046624Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6047302Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6047515Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6048276Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6048455Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6048598Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6049212Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6049361Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6049513Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6049766Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6049884Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6050005Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6050126Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6050263Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6050571Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6050718Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6050812Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6050818Z 2023-01-11T21:03:39.6052502Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.6052577Z ================== 2023-01-11T21:03:39.6052738Z ================== 2023-01-11T21:03:39.6052909Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6053094Z  Write of size 1 at 0x7b680007de2d by main thread: 2023-01-11T21:03:39.6055431Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:39.6055701Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6055924Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6056209Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6056497Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6056767Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6056970Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6057197Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.6057447Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6058162Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6058405Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6058624Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6059006Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6059391Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6059607Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6059806Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6060611Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6060819Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6061026Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6061825Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6062051Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6062476Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6062865Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6063103Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6063953Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6064177Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6064455Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6064629Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6064800Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6065058Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6065174Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6065293Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6065415Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6065594Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6065903Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6066023Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6066115Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6066121Z 2023-01-11T21:03:39.6066352Z  Previous write of size 1 at 0x7b680007de2d by thread T3: 2023-01-11T21:03:39.6068906Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:39.6069284Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6069560Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6069962Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6070400Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6070802Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6071031Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6071323Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6071551Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6071560Z 2023-01-11T21:03:39.6071888Z  Location is heap block of size 1512 at 0x7b680007da00 allocated by main thread: 2023-01-11T21:03:39.6072166Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6072337Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6072593Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6072981Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6073757Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6074195Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6074608Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6074999Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6075528Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6077267Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6078336Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6078842Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6080653Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6081163Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6081440Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6081887Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6083795Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6084287Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6085991Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6086568Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6087025Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6088845Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6089377Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6091100Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6091585Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6091877Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6092431Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6094295Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6094934Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6096390Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6096676Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6096948Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6098188Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6098542Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6099634Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6099934Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6100128Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6100264Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6100950Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6101107Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6101306Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6101508Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6101746Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6101980Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6102407Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6102796Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6103010Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6103212Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6103997Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6104202Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6104407Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6105152Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6105378Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6105808Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6106191Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6106461Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6107365Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6107580Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6107859Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6108034Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6108218Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6108474Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6108591Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6108697Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6108821Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6108967Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6109283Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6109402Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6109495Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6109502Z 2023-01-11T21:03:39.6109746Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.6109918Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6110140Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6110458Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6110632Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6110923Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6111111Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6111303Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6111699Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6111944Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6112135Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6112332Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6112893Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6113059Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6113283Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6113960Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6114171Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6115011Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6115198Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6115342Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6115960Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6116139Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6116291Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6116572Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6116690Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6116811Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6116934Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6117084Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6117381Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6117500Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6117597Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6117603Z 2023-01-11T21:03:39.6119268Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.6119354Z ================== 2023-01-11T21:03:39.6119494Z ================== 2023-01-11T21:03:39.6119665Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6119847Z  Write of size 1 at 0x7b680007de42 by main thread: 2023-01-11T21:03:39.6122024Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.6122318Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6122566Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6122849Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6123138Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6123331Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6123533Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6123760Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.6123972Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6124688Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6124926Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6125146Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6125529Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6125921Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6126135Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6126333Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6127183Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6127390Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6127598Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6128348Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6128574Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6129004Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6129387Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6129626Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6130480Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6130733Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6131007Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6131207Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6131378Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6131633Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6131755Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6131875Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6131996Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6132145Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6132457Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6132577Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6132674Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6132681Z 2023-01-11T21:03:39.6132874Z  Previous write of size 1 at 0x7b680007de42 by thread T3: 2023-01-11T21:03:39.6135138Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.6135404Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6135628Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6135908Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6136244Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6136510Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6136703Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6136931Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6137069Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6137075Z 2023-01-11T21:03:39.6137301Z  Location is heap block of size 1512 at 0x7b680007da00 allocated by main thread: 2023-01-11T21:03:39.6137473Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6137599Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6137746Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6137950Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6138391Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6138676Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6138943Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6139210Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6139535Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6140606Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6141296Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6141612Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6142640Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6142914Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6143103Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6143374Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6144520Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6144856Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6145961Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6146237Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6146508Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6147673Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6148007Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6149125Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6149450Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6149642Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6149938Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6151052Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6151358Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6152422Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6152733Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6153028Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6154186Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6154525Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6155686Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6155980Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6156174Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6156323Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6157062Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6157219Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6157416Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6157620Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6157854Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6158071Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6158456Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6158845Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6159058Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6159264Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6160064Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6160271Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6160479Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6161220Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6161502Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6161932Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6162320Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6162560Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6163416Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6163640Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6163960Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6164119Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6164307Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6164561Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6164676Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6164798Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6164919Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6165067Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6165378Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6165527Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6165620Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6165626Z 2023-01-11T21:03:39.6165845Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.6166000Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6166250Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6166567Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6166740Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6167036Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6167187Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6167377Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6167785Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6168006Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6168194Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6168393Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6168954Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6169118Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6169343Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6170184Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6170435Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6171662Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6171970Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6172199Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6173140Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6173372Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6173609Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6173959Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6174149Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6174314Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6174605Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6174834Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6175332Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6175523Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6175677Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6175686Z 2023-01-11T21:03:39.6178359Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.6178487Z ================== 2023-01-11T21:03:39.6178630Z ================== 2023-01-11T21:03:39.6178940Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6179391Z  Write of size 2 at 0x7b780000d458 by main thread: 2023-01-11T21:03:39.6182809Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.6183210Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6183552Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6183989Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6184480Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6184768Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6185076Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6185436Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.6185784Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6187075Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.6187426Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.6187826Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6189148Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6189468Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6189816Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6190764Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.6191027Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.6191888Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6192104Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6192291Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.6192546Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6192665Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6192829Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6192950Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6193085Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6193421Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6193544Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6193639Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6193646Z 2023-01-11T21:03:39.6193864Z  Previous write of size 2 at 0x7b780000d458 by thread T2: 2023-01-11T21:03:39.6196107Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.6196386Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6196611Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6196892Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6197219Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6197492Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6197636Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6197862Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6198001Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6198006Z 2023-01-11T21:03:39.6198227Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2023-01-11T21:03:39.6198417Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6198543Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6198702Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6198904Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6199375Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6199644Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6199910Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6200174Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6200500Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6201579Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6202208Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6202511Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6203601Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6203876Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6204054Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.6204737Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.6204919Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.6205127Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.6205949Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.6206193Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.6207052Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6207320Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6207510Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.6207762Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6207881Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6208002Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6208122Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6208273Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6208584Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6208691Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6208787Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6208792Z 2023-01-11T21:03:39.6209007Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.6209174Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6209399Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6209718Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6209894Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6210187Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6210339Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6210531Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6210937Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6211158Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6211346Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6211618Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6212383Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6212737Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6213099Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6214013Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6214458Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6215584Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6215853Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6216063Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6216796Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6216962Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6217100Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6217446Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6217610Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6217761Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6217876Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6218105Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6218683Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6218871Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6219014Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6219022Z 2023-01-11T21:03:39.6221662Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.6221779Z ================== 2023-01-11T21:03:39.6221929Z ================== 2023-01-11T21:03:39.6222217Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6222479Z  Write of size 2 at 0x7b780000d45e by main thread: 2023-01-11T21:03:39.6225373Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.6225804Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6226173Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6226473Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6226907Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6227295Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6227602Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6228027Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.6228326Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6229471Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.6229721Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.6230014Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6231271Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6231608Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6231937Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6232822Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.6233084Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.6234016Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6234226Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6234410Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.6234755Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6234874Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6234993Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6235116Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6235252Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6235560Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6235684Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6235778Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6235784Z 2023-01-11T21:03:39.6235995Z  Previous write of size 2 at 0x7b780000d45e by thread T2: 2023-01-11T21:03:39.6238160Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.6238436Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6238695Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6239006Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6239302Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6239570Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6239717Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6239928Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6240064Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6240070Z 2023-01-11T21:03:39.6240295Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2023-01-11T21:03:39.6240465Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6240590Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6240751Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6240954Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6241398Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6241668Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6241935Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6242203Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6242528Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6243667Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6244318Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6244623Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6245663Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6245938Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6246119Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.6246801Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.6246980Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.6247215Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.6248062Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.6248323Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.6249177Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6249390Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6249577Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.6249835Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6249952Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6250070Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6250194Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6250332Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6250645Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6250764Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6250862Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6250867Z 2023-01-11T21:03:39.6251082Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.6251251Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6251472Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6251789Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6251994Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6252287Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6252477Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6252670Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6253071Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6253292Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6253482Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6253677Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6254236Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6254544Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6254776Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6255440Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6255654Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6256423Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6256653Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6256795Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6257441Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6257589Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6257736Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6257993Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6258106Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6258225Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6258346Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6258495Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6258809Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6258928Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6259009Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6259029Z 2023-01-11T21:03:39.6260684Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.6260758Z ================== 2023-01-11T21:03:39.6312566Z ================== 2023-01-11T21:03:39.6313128Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6313471Z  Write of size 2 at 0x7b780000e058 by main thread: 2023-01-11T21:03:39.6318943Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.6319515Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6319913Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6320415Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6320942Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6321259Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6321630Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6322024Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.6322405Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6323687Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6324169Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6324543Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6325219Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6325914Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6326377Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6326767Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6328190Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6328573Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6328943Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6330287Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6330671Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6331452Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6332161Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6332581Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6334174Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6334723Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6335206Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6335487Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6335821Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6336284Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6336469Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6336690Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6336905Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6337153Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6337718Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6337938Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6338083Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6338092Z 2023-01-11T21:03:39.6338470Z  Previous write of size 2 at 0x7b780000e058 by thread T1: 2023-01-11T21:03:39.6342509Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.6342986Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6343345Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6343630Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6343963Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6344238Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6344382Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6344609Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6344746Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6344753Z 2023-01-11T21:03:39.6344980Z  Location is heap block of size 3024 at 0x7b780000d800 allocated by main thread: 2023-01-11T21:03:39.6345151Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6345274Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6345422Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6345627Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6346065Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6346339Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6346603Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6346866Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6347200Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6348301Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6348951Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6349267Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6350339Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6350628Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6350818Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6351090Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6352268Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6352600Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6353674Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6353949Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6354219Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6355465Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6355796Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6356948Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6357253Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6357446Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6357740Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6358837Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6359144Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6360237Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6360538Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6360807Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6361966Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6362302Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6363392Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6363695Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6363911Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6364061Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6364776Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6364935Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6365134Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6365323Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6365561Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6365781Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6366165Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6366569Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6366778Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6366979Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6367770Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6367977Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6368217Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6368991Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6369216Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6369641Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6370030Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6370272Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6371236Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6371579Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6372000Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6372296Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6372637Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6373085Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6373292Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6373492Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6373781Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6374046Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6374703Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6374999Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6375172Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6375182Z 2023-01-11T21:03:39.6375604Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.6375911Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6376297Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6376836Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6377149Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6377689Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6377965Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6378274Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6379028Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6379420Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6379775Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6380113Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6381110Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6381352Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6381710Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6382767Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6383214Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6384472Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6384780Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6385035Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6386086Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6386242Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6386418Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6386864Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6387086Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6387300Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6387508Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6387793Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6388350Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6388562Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6388741Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6388751Z 2023-01-11T21:03:39.6391294Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.6391497Z ================== 2023-01-11T21:03:39.6391682Z ================== 2023-01-11T21:03:39.6391967Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6392233Z  Write of size 2 at 0x7b780000e05c by main thread: 2023-01-11T21:03:39.6395851Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.6396256Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6396607Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6397051Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6397491Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6397799Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6398118Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6398486Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.6398759Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6399926Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6400313Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6400567Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6400954Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6401342Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6401556Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6401757Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6402544Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6402765Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6402958Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6403714Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6403939Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6404369Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6404818Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6405058Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6405912Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6406123Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6406399Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6406574Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6406757Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6407011Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6407129Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6407248Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6407373Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6407521Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6407836Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6407958Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6408054Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6408060Z 2023-01-11T21:03:39.6408263Z  Previous write of size 2 at 0x7b780000e05c by thread T1: 2023-01-11T21:03:39.6410473Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.6410764Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6410988Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6411272Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6411563Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6411834Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6411982Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6412204Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6412341Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6412349Z 2023-01-11T21:03:39.6412572Z  Location is heap block of size 3024 at 0x7b780000d800 allocated by main thread: 2023-01-11T21:03:39.6412741Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6412853Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6413013Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6413218Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6413659Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6413928Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6414192Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6414701Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6415107Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6416192Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6416811Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6417118Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6418152Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6418423Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6418648Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6418944Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6420104Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6420411Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6421475Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6421761Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6422032Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6423218Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6423566Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6424670Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6424960Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6425153Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6425450Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6426566Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6426937Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6427996Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6428283Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6428683Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6430503Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6431036Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6432949Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6433506Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6433829Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6434066Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6435298Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6435576Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6435929Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6436304Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6436633Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6436967Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6437437Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6437933Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6438252Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6438623Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6439944Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6440392Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6440723Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6442018Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6442428Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6443060Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6443621Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6444074Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6445359Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6445721Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6446202Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6446478Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6446765Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6447167Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6447344Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6447516Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6447696Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6447927Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6448437Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6448630Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6448804Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6448815Z 2023-01-11T21:03:39.6449260Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.6449503Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6449854Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6450428Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6450756Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6451215Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6451444Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6451716Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6452379Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6452701Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6453006Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6453341Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6454275Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6454841Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6455222Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6456421Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6456780Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6457965Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6458144Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6458289Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6458944Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6459093Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6459243Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6459496Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6459612Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6459730Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6459851Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6459998Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6460358Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6460464Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6460555Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6460561Z 2023-01-11T21:03:39.6462287Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.6462376Z ================== 2023-01-11T21:03:39.6462431Z ================== 2023-01-11T21:03:39.6462603Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6462782Z  Write of size 2 at 0x7b780000e05e by main thread: 2023-01-11T21:03:39.6464918Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.6465194Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6465417Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6465697Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6465986Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6466209Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6466408Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6466676Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.6466891Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6467619Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6467861Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6468081Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6468467Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6468860Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6469072Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6469275Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6470064Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6470273Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6470509Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6471274Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6471500Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6471944Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6472331Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6472572Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6473426Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6473639Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6473915Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6474090Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6474274Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6474528Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6474713Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6474834Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6475012Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6475149Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6475466Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6475611Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6475706Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6475711Z 2023-01-11T21:03:39.6475904Z  Previous write of size 2 at 0x7b780000e05e by thread T1: 2023-01-11T21:03:39.6478047Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.6478325Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6478551Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6478834Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6479127Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6479396Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6479537Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6479749Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6479886Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6479892Z 2023-01-11T21:03:39.6480111Z  Location is heap block of size 3024 at 0x7b780000d800 allocated by main thread: 2023-01-11T21:03:39.6480283Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6480441Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6480601Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6480808Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6481279Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6481547Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6481811Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6482075Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6482407Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6483495Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6484120Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6484424Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6485584Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6485859Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6486047Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6486317Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6487464Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6487779Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6488841Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6489193Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6489465Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6490628Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6490949Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6492058Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6492347Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6492568Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6492863Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6494006Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6494318Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6495593Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6495886Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6496157Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6497361Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6497714Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6498815Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6499106Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6499296Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6499444Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6500116Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6500270Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6500467Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6500663Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6500927Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6501144Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6501556Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6501944Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6502158Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6502356Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6503146Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6503354Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6503559Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6504310Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6504535Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6504963Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6505344Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6505616Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6506498Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6506713Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6506992Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6507168Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6507351Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6507608Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6507723Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6507845Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6507967Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6508118Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6508430Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6508547Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6508631Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6508650Z 2023-01-11T21:03:39.6508863Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.6509030Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6509246Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6509568Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6509740Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6510032Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6510219Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6510410Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6510847Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6511070Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6511254Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6511454Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6512018Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6512180Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6512404Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6513076Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6513284Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6514050Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6514240Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6514371Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6515063Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6515283Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6515422Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6515677Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6515793Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6515911Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6516032Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6516180Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6516489Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6516610Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6516703Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6516708Z 2023-01-11T21:03:39.6518361Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.6518433Z ================== 2023-01-11T21:03:39.6599109Z ================== 2023-01-11T21:03:39.6599589Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6599905Z  Write of size 4 at 0x7b880000b8e8 by main thread: 2023-01-11T21:03:39.6603968Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:39.6604705Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6605087Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6605663Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6606194Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6606550Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6606923Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6607333Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.6607732Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6609006Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6609438Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6609833Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6610522Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6611234Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6611596Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6611992Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6613419Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6613793Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6614161Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6615601Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6615983Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6616772Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6617421Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6617861Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6619371Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6619804Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6620318Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6620634Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6620966Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6621389Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6621591Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6621781Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6621990Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6622243Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6622782Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6622997Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6623159Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6623170Z 2023-01-11T21:03:39.6623532Z  Previous write of size 4 at 0x7b880000b8e8 by thread T2: 2023-01-11T21:03:39.6627443Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:39.6627924Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6628332Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6628915Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6629497Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6630032Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6630286Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6630674Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6630909Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6630918Z 2023-01-11T21:03:39.6631153Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2023-01-11T21:03:39.6631322Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6631446Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6631603Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6631809Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6632248Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6632520Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6632779Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6633042Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6633365Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6634435Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6635235Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6635541Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6636566Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6636858Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6637045Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6637315Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6638450Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6638787Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6639900Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6640183Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6640448Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6641615Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6641935Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6643067Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6643406Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6643599Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6643895Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6644993Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6645296Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6646362Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6646688Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6646980Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6648145Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6648463Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6649548Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6649852Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6650041Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6650174Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6650921Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6651075Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6651267Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6651470Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6651702Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6651906Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6652302Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6652690Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6652902Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6653102Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6653891Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6654098Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6654300Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6655250Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6655508Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6655938Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6656320Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6656560Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6657429Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6657642Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6657917Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6658093Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6658273Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6658523Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6658640Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6658747Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6658864Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6659011Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6659320Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6659466Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6659558Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6659565Z 2023-01-11T21:03:39.6659796Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.6659964Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6660221Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6660663Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6660925Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6661401Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6661664Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6662018Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6662788Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6663169Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6663513Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6663871Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6664903Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6665194Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6665592Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6666811Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6667190Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6668667Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6668997Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6669239Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6670319Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6670580Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6670829Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6671289Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6671499Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6671712Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6671932Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6672181Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6672762Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6672942Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6673115Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6673126Z 2023-01-11T21:03:39.6676231Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.6676379Z ================== 2023-01-11T21:03:39.6676557Z ================== 2023-01-11T21:03:39.6676891Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6677201Z  Write of size 4 at 0x7b880000b8ec by main thread: 2023-01-11T21:03:39.6681260Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:39.6681748Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6682119Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6682606Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6683130Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6683460Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6683831Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6684211Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.6684601Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6685858Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6686290Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6686746Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6687444Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6688110Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6688510Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6688853Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6690320Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6690700Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6691084Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6692382Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6692612Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6693035Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6693419Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6693690Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6694702Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6694920Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6695194Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6695368Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6695535Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6695789Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6695907Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6696026Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6696147Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6696296Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6696608Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6696727Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6696822Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6696828Z 2023-01-11T21:03:39.6697032Z  Previous write of size 4 at 0x7b880000b8ec by thread T2: 2023-01-11T21:03:39.6699195Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:39.6699494Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6699714Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6699997Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6700286Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6700554Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6700695Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6700917Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6701054Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6701060Z 2023-01-11T21:03:39.6701279Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2023-01-11T21:03:39.6701445Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6701568Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6701730Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6701919Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6702370Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6702640Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6702906Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6703169Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6703491Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6704639Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6705285Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6705588Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6706613Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6706888Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6707074Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6707347Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6708567Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6708882Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6709958Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6710234Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6710506Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6711688Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6712047Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6713138Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6713430Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6713624Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6713920Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6715152Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6715544Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6716779Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6717108Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6717488Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6718679Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6719037Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6720228Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6720601Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6720826Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6720999Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6721713Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6721894Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6722120Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6722397Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6722757Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6723107Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6723743Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6724450Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6724889Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6725271Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6726800Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6727334Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6727755Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6729145Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6729577Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6730370Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6731181Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6731666Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6733309Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6733747Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6734443Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6734799Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6735225Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6735790Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6736034Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6736275Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6736526Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6736817Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6737444Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6737689Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6737895Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6737905Z 2023-01-11T21:03:39.6738364Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.6738640Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6739098Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6739676Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6740046Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6740602Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6753360Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6753835Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6754703Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6755045Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6755221Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6755420Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6756000Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6756284Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6756509Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6757206Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6757421Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6758185Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6758366Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6758509Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6759121Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6759267Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6759417Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6759672Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6759787Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6759905Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6760024Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6760172Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6760478Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6760583Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6760704Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6760711Z 2023-01-11T21:03:39.6762411Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.6762497Z ================== 2023-01-11T21:03:39.6762632Z ================== 2023-01-11T21:03:39.6762801Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6762977Z  Write of size 4 at 0x7b880000b8f0 by main thread: 2023-01-11T21:03:39.6765145Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:39.6765405Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6765627Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6765903Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6766192Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6766385Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6766585Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6766839Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.6767051Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6767807Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6768046Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6768264Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6768648Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6769031Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6769245Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6769442Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6770232Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6770435Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6770639Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6771375Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6771652Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6772078Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6772463Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6772702Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6773566Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6773775Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6774051Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6774226Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6774643Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6774891Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6775005Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6775125Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6775244Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6775393Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6775702Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6775882Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6775974Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6775980Z 2023-01-11T21:03:39.6776173Z  Previous write of size 4 at 0x7b880000b8f0 by thread T2: 2023-01-11T21:03:39.6778367Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:39.6778629Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6778850Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6779126Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6779413Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6779678Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6779822Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6780041Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6780174Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6780180Z 2023-01-11T21:03:39.6780399Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2023-01-11T21:03:39.6780566Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6780687Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6780846Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6781109Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6781888Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6782443Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6782927Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6783381Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6783874Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6785598Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6786596Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6787098Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6788820Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6789269Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6789522Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6789879Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6791598Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6792056Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6793535Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6793995Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6794402Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6796500Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6796973Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6798859Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6799399Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6799750Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6800296Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6802484Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6803054Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6805046Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6805560Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6806041Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6808216Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6808949Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6810972Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6811519Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6811874Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6812147Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6813399Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6813700Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6814035Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6814541Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6814952Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6815348Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6816055Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6816941Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6817332Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6817691Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6819167Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6819540Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6819923Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6821306Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6821860Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6822656Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6823367Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6823995Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6825739Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6826133Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6826623Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6826948Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6827274Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6827748Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6827950Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6828171Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6828384Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6828629Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6829204Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6829428Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6829591Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6829605Z 2023-01-11T21:03:39.6830030Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.6830335Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6830725Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6831303Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6831610Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6832136Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6832413Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6832758Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6833596Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6834001Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6834378Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6834819Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6835850Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6836155Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6836579Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6837806Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6838193Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6839618Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6839950Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6840202Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6841289Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6841592Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6841854Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6842323Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6842527Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6842796Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6843009Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6843285Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6843858Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6844086Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6844232Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6844266Z 2023-01-11T21:03:39.6847408Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.6847540Z ================== 2023-01-11T21:03:39.6847797Z ================== 2023-01-11T21:03:39.6848097Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6848422Z  Write of size 4 at 0x7b880000b8f4 by main thread: 2023-01-11T21:03:39.6852407Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:39.6852964Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6853361Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6853923Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6854656Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6855007Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6855382Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6855856Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.6856239Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6857558Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6857994Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6858384Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6859076Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6859787Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6860175Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6860535Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6862080Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6862510Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6862874Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6864248Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6864675Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6865447Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6866150Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6866589Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6868154Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6868544Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6869107Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6869420Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6869753Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6870284Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6870487Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6870692Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6870898Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6871166Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6871676Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6871869Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6872030Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6872042Z 2023-01-11T21:03:39.6872413Z  Previous write of size 4 at 0x7b880000b8f4 by thread T2: 2023-01-11T21:03:39.6876489Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:39.6876994Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6877390Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6877903Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6878421Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6878910Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6879259Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6879656Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6879948Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6879965Z 2023-01-11T21:03:39.6880360Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2023-01-11T21:03:39.6880656Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6880886Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6881155Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6881497Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6882311Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6882795Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6883288Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6883758Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6884358Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6886340Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6887493Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6888163Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6890090Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6890598Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6890941Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6891431Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6893547Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6894131Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6896328Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6896838Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6897346Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6899538Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6900124Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6902149Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6902783Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6903135Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6903669Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6905717Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6906288Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6908258Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6908760Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6909328Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6911495Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6912106Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6913901Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6914328Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6914682Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6914902Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6915967Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6916286Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6916621Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6916901Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6917224Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6917551Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6918146Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6918667Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6918952Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6919214Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6920422Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6920733Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6921039Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6922144Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6922590Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6923373Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6924015Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6924413Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6925813Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6926140Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6926563Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6926846Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6927171Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6927646Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6927787Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6927908Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6928032Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6928181Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6928496Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6928616Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6928699Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6928720Z 2023-01-11T21:03:39.6928951Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.6929182Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6929401Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6929712Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6929917Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6930212Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6930367Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6930561Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6930968Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6931189Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6931373Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6931570Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6932132Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6932297Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6932522Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6933186Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6933398Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6934156Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6934576Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6934714Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6935336Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6935487Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6935624Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6935882Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6935997Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6936119Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6936239Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6936387Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6936700Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6936819Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6936912Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6936918Z 2023-01-11T21:03:39.6938575Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.6938648Z ================== 2023-01-11T21:03:39.6938720Z ================== 2023-01-11T21:03:39.6938888Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6939070Z  Write of size 4 at 0x7b880000b8f8 by main thread: 2023-01-11T21:03:39.6941247Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:39.6941564Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6941790Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6942069Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6942354Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6942545Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6942747Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6942975Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.6943187Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6943896Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.6944137Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.6944356Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6944741Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6945182Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6945396Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6945595Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6946398Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6946601Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6946809Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6947554Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6947779Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6948213Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6948596Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6948839Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6949742Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6949968Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6950247Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6950407Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6950592Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6950849Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6950962Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6951087Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6951209Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6951359Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6951675Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6951797Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6951890Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6951896Z 2023-01-11T21:03:39.6952086Z  Previous write of size 4 at 0x7b880000b8f8 by thread T2: 2023-01-11T21:03:39.6954225Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:39.6954515Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6954838Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6955118Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6955405Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6955673Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.6955813Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.6956037Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.6956173Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.6956179Z 2023-01-11T21:03:39.6956398Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2023-01-11T21:03:39.6956565Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.6956676Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.6956976Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.6957180Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.6957627Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.6957895Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.6958160Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.6958425Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.6958764Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.6959862Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.6960524Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.6960841Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.6961866Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.6962140Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.6962327Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.6962599Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.6963766Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.6964105Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6965166Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6965457Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6965723Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6966886Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6967246Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6968361Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6968649Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6968845Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6969139Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.6970249Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.6970556Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.6971647Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.6971962Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.6972232Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.6973388Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.6973708Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.6974982Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.6975354Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.6975547Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.6975697Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.6976367Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.6976527Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.6976724Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.6976925Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.6977161Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.6977378Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.6977761Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.6978149Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.6978363Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.6978561Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.6979345Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.6979589Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.6979825Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.6980569Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.6980794Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.6981221Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.6981605Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.6981849Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.6982709Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.6982936Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.6983218Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.6983380Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.6983589Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.6983844Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6983957Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6984078Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6984198Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6984381Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6984696Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6984815Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6984913Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6984919Z 2023-01-11T21:03:39.6985146Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.6985299Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.6985518Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.6985833Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.6986007Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.6986302Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.6986460Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.6986648Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.6987053Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.6987271Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.6987453Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.6987651Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.6988211Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.6988378Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.6988603Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.6989328Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.6989541Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.6990324Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.6990501Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.6990643Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.6991252Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.6991400Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.6991550Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.6991803Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.6991919Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.6992024Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.6992145Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.6992294Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.6992604Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.6992724Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.6992817Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.6992822Z 2023-01-11T21:03:39.6994516Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.6994714Z ================== 2023-01-11T21:03:39.6994782Z ================== 2023-01-11T21:03:39.6994955Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.6995136Z  Write of size 4 at 0x7b880000b8fc by main thread: 2023-01-11T21:03:39.6997276Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:39.6997539Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.6997764Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.6998046Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.6998335Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.6998528Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.6998733Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.6998958Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.6999170Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.6999950Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7000188Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7000409Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7000797Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7001185Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7001398Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7001599Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7002430Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7002679Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7002946Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7004078Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7004490Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7005278Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7005919Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7006287Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7007624Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7007957Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7008384Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7008649Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7008923Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7009259Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7009422Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7009588Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7009777Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7009977Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7010396Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7010598Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7010749Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7010760Z 2023-01-11T21:03:39.7011052Z  Previous write of size 4 at 0x7b880000b8fc by thread T2: 2023-01-11T21:03:39.7014639Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:39.7015091Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7015455Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7015897Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7016359Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7016799Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7017039Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7017391Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7017610Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7017624Z 2023-01-11T21:03:39.7017897Z  Location is heap block of size 6048 at 0x7b880000a800 allocated by main thread: 2023-01-11T21:03:39.7018120Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7018313Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7018558Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7018890Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7019621Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7020212Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7020629Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7021117Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7021675Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7023276Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7023990Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7024296Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7025361Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7025715Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7025905Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7026175Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7027314Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7027622Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7028709Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7028987Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7029253Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7030489Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7030813Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7031918Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7032208Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7032400Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7032697Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7033821Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7034153Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7035325Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7035602Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7035875Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7037050Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7037400Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7038518Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7038825Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7039020Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7039169Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7039845Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7039998Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7040194Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7040397Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7040633Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7040855Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7041239Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7041625Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7041875Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7042101Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7042885Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7043094Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7043303Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7044048Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7044273Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7044704Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7045105Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7045346Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7046343Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7046646Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7047075Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7047305Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7047611Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7047979Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7048160Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7048332Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7048506Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7048719Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7049134Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7049318Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7049481Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7049491Z 2023-01-11T21:03:39.7049857Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.7050130Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7050480Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7050951Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7051251Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7051705Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7051936Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7052183Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7052766Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7053109Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7053439Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7053730Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7054609Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7054828Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7055175Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7056136Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7056448Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7057577Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7057846Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7058050Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7058992Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7059218Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7059464Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7059822Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7060083Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7060277Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7060471Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7060742Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7061313Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7061466Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7061548Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7061573Z 2023-01-11T21:03:39.7064107Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.7064222Z ================== 2023-01-11T21:03:39.7064418Z ================== 2023-01-11T21:03:39.7064687Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7064904Z  Write of size 8 at 0x7b9800029160 by main thread: 2023-01-11T21:03:39.7067051Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.7067314Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7067538Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7067868Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7068158Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7068391Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7068594Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7068819Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.7069032Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7069829Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.7070046Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.7070247Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7071033Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7071241Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7071448Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7072262Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.7072557Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.7073423Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7073637Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7073825Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.7074079Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7074197Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7074303Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7074423Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7074659Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7074972Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7075089Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7075182Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7075189Z 2023-01-11T21:03:39.7075382Z  Previous write of size 8 at 0x7b9800029160 by thread T1: 2023-01-11T21:03:39.7077528Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:39.7077851Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7078075Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7078355Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7078646Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7078919Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7079060Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7079284Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7079420Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7079425Z 2023-01-11T21:03:39.7079647Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2023-01-11T21:03:39.7079816Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7079940Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7080099Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7080302Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7080750Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7081016Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7081277Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7081542Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7081864Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7082993Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7083631Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7083932Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7084956Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7085244Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7085431Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.7086356Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.7086622Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.7086956Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.7088127Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.7088460Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.7089748Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7090096Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7090437Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.7090882Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7091061Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7091278Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7091497Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7091755Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7092332Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7092531Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7092698Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7092705Z 2023-01-11T21:03:39.7093098Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7093472Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7093842Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7094579Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7094873Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7095400Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7095686Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7095997Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7096741Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7097151Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7097487Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7097816Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7098848Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7099141Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7099510Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7100749Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7101141Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7102552Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7103013Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7103282Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7104128Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7104365Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7104584Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7104934Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7105061Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7105212Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7105337Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7105486Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7105786Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7105904Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7105999Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7106006Z 2023-01-11T21:03:39.7107669Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.7107759Z ================== 2023-01-11T21:03:39.7107812Z ================== 2023-01-11T21:03:39.7107981Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7108157Z  Write of size 8 at 0x7b9800029168 by main thread: 2023-01-11T21:03:39.7110316Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.7110631Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7110858Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7111138Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7111427Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7111621Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7111808Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7112038Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.7112250Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7113047Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.7113264Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.7113464Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7114301Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7114505Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7114792Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7115605Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.7115851Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.7116723Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7116934Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7117119Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.7117377Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7117496Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7117616Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7117723Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7117870Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7118211Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7118330Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7118422Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7118428Z 2023-01-11T21:03:39.7118647Z  Previous write of size 8 at 0x7b9800029168 by thread T1: 2023-01-11T21:03:39.7120779Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.7121052Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7121261Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7121543Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7121844Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7122108Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7122237Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7122457Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7122592Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7122599Z 2023-01-11T21:03:39.7122817Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2023-01-11T21:03:39.7122986Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7123109Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7123268Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7123501Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7123970Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7124238Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7124500Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7124763Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7125090Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7126161Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7126794Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7127097Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7128147Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7128460Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7128636Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.7129317Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.7129495Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.7129702Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.7130509Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.7130755Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.7131617Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7131855Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7132041Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.7132321Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7132440Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7132546Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7132664Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7132812Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7133119Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7133238Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7133329Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7133335Z 2023-01-11T21:03:39.7133549Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7133716Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7133936Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7134253Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7134591Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7134975Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7135129Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7135303Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7135712Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7135933Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7136117Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7136315Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7136871Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7137090Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7137316Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7138027Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7138239Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7139004Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7139184Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7139327Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7139942Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7140090Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7140242Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7140495Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7140623Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7140791Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7140938Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7141125Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7141603Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7141786Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7141968Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7141979Z 2023-01-11T21:03:39.7144748Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.7144850Z ================== 2023-01-11T21:03:39.7144960Z ================== 2023-01-11T21:03:39.7145250Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7145523Z  Write of size 8 at 0x7b9800029170 by main thread: 2023-01-11T21:03:39.7148941Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.7149460Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7149847Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7150327Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7150846Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7151170Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7153367Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7153860Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.7154253Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7155829Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.7157350Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.7157705Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7159120Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7159480Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7159835Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7161367Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.7161815Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.7163486Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7163909Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7164245Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.7164721Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7164913Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7165129Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7165349Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7165624Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7166195Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7166417Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7166598Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7166609Z 2023-01-11T21:03:39.7166847Z  Previous write of size 8 at 0x7b9800029170 by thread T1: 2023-01-11T21:03:39.7169005Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.7169267Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7169492Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7169810Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7170097Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7170389Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7170533Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7170755Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7170893Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7170899Z 2023-01-11T21:03:39.7171124Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2023-01-11T21:03:39.7171292Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7171417Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7171578Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7171779Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7172215Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7172483Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7172747Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7173014Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7173341Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7174586Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7175325Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7175631Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7176649Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7176921Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7177100Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.7177794Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.7177971Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.7178175Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.7179011Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.7179279Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.7180134Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7180343Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7180531Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.7180785Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7180902Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7181021Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7181146Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7181294Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7181603Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7181726Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7181820Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7181825Z 2023-01-11T21:03:39.7182042Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7182194Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7182412Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7182727Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7182900Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7183191Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7183374Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7183563Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7183997Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7184218Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7184402Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7184603Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7185163Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7185326Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7185550Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7186222Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7186433Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7187214Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7187391Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7187533Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7188139Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7188360Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7188511Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7188767Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7188881Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7188990Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7189111Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7189258Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7189570Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7189689Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7189782Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7189787Z 2023-01-11T21:03:39.7191448Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.7191521Z ================== 2023-01-11T21:03:39.7191636Z ================== 2023-01-11T21:03:39.7191803Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7191981Z  Write of size 8 at 0x7b9800029218 by main thread: 2023-01-11T21:03:39.7194097Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.7194461Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7194741Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7195024Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7195313Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7195508Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7195711Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7195937Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.7196150Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7196946Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.7197160Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.7197365Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7198150Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7198389Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7198595Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7199426Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.7199671Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.7200538Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7200748Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7200933Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.7201186Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7201301Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7201422Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7201531Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7201679Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7201987Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7202107Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7202200Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7202206Z 2023-01-11T21:03:39.7202398Z  Previous write of size 8 at 0x7b9800029218 by thread T1: 2023-01-11T21:03:39.7204553Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.7204846Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7205070Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7205350Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7205637Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7205909Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7206051Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7206274Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7206437Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7206444Z 2023-01-11T21:03:39.7206704Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2023-01-11T21:03:39.7206873Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7207000Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7207158Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7207362Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7207804Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7208070Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7208363Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7208653Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7208980Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7210054Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7210693Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7210996Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7212020Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7212333Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7212533Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.7213216Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.7213396Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.7213600Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.7214553Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.7214801Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.7215669Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7215881Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7216066Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce48c) 2023-01-11T21:03:39.7216321Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7216478Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7216598Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7216718Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7216867Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7217212Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7217334Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7217427Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7217433Z 2023-01-11T21:03:39.7217652Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7217821Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7218045Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7218361Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7218533Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7218825Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7218964Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7219155Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7219557Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7219777Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7219966Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7220161Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7220722Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7220888Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7221114Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7221791Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7222079Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7222842Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7223018Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7223162Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7223772Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7223918Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7224066Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7224321Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7224436Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7224554Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7224673Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7224806Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7225116Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7225237Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7225330Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7225335Z 2023-01-11T21:03:39.7226990Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.7227096Z ================== 2023-01-11T21:03:39.7249468Z ================== 2023-01-11T21:03:39.7250097Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7250401Z  Write of size 8 at 0x7b9800041160 by main thread: 2023-01-11T21:03:39.7255048Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.7255525Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7255883Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7267343Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7267679Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7267948Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7268186Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7268527Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.7268862Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7269974Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7270602Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7270995Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7271701Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7272407Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7272806Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7273161Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7274669Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7275050Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7275493Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7276859Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7277224Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7278064Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7278800Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7279227Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7280726Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7281176Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7281460Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7281636Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7281807Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7282064Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7282180Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7282300Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7282422Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7282572Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7282880Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7282998Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7283093Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7283100Z 2023-01-11T21:03:39.7283320Z  Previous write of size 8 at 0x7b9800041160 by thread T3: 2023-01-11T21:03:39.7285518Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:39.7285807Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7286028Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7286312Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7286601Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7286871Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7287010Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7287239Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7287374Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7287379Z 2023-01-11T21:03:39.7287600Z  Location is heap block of size 12096 at 0x7b980003f000 allocated by main thread: 2023-01-11T21:03:39.7287767Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7287891Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7288040Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7288246Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7288691Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7288981Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7289241Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7289534Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7289881Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7290953Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7291589Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7291890Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7292912Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7293241Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7293426Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7293720Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7295301Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7295609Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7296687Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7296964Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7297231Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7298448Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7298799Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7299889Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7300190Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7300381Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7300678Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7301781Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7302166Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7303239Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7303514Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7303783Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7304953Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7305270Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7306422Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7306843Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7307122Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7307346Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7308484Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7308760Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7309085Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7309397Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7309761Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7310078Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7313141Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7313711Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7314071Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7314370Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7315613Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7315947Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7316286Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7319280Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7319712Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7320456Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7320939Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7321277Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7322726Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7323132Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7323669Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7323993Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7324408Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7324880Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7325086Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7325296Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7325518Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7325798Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7326325Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7326495Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7326583Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7326595Z 2023-01-11T21:03:39.7326980Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.7327239Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7329440Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7330009Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7330283Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7330775Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7331009Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7331295Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7331872Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7332197Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7332498Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7338919Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7339649Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7339816Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7340043Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7340708Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7340918Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7341679Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7341862Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7342005Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7342617Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7342767Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7342920Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7343170Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7343284Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7343402Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7343520Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7343710Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7344021Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7344137Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7344258Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7344267Z 2023-01-11T21:03:39.7345937Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.7346008Z ================== 2023-01-11T21:03:39.7346074Z ================== 2023-01-11T21:03:39.7346240Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7346406Z  Write of size 8 at 0x7b9800041168 by main thread: 2023-01-11T21:03:39.7348577Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.7348838Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7349063Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7349343Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7349659Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7349852Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7350081Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7350307Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.7350519Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7351234Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7351471Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7351692Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7352078Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7352510Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7352725Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7352926Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7353707Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7353923Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7354143Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7355017Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7355244Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7355672Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7356056Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7356296Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7357147Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7357361Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7357634Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7357810Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7357992Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7358243Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7358389Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7358509Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7358627Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7358773Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7359106Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7359230Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7359322Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7359329Z 2023-01-11T21:03:39.7359503Z  Previous write of size 8 at 0x7b9800041168 by thread T3: 2023-01-11T21:03:39.7361655Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.7361919Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7362143Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7362421Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7362710Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7362974Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7363117Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7363338Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7363475Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7363480Z 2023-01-11T21:03:39.7363699Z  Location is heap block of size 12096 at 0x7b980003f000 allocated by main thread: 2023-01-11T21:03:39.7363892Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7364003Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7364158Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7364359Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7364830Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7365097Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7365362Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7365625Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7365945Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7367021Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7367797Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7368264Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7369838Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7370289Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7370604Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7370972Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7372845Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7373435Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7374909Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7375255Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7375589Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7386707Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7388304Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7389783Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7391262Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7391666Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7392166Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7399324Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7399924Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7401758Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7402040Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7402315Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7403511Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7403882Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7404974Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7405264Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7405456Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7405605Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7406284Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7406438Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7406634Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7406834Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7407098Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7407315Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7407725Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7408115Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7408331Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7408535Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7409326Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7409534Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7409741Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7410482Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7410709Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7411138Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7411548Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7411823Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7412674Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7412900Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7413176Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7413351Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7413524Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7413778Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7413893Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7414013Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7414133Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7414278Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7414777Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7414901Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7414997Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7415005Z 2023-01-11T21:03:39.7415252Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.7415422Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7415630Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7415946Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7416120Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7416470Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7416622Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7416814Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7417253Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7417477Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7417666Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7417863Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7418425Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7418589Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7418815Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7419480Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7419691Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7420466Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7420644Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7420786Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7421451Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7421601Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7421750Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7422003Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7422121Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7422226Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7422344Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7422490Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7422799Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7422916Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7423008Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7423014Z 2023-01-11T21:03:39.7424681Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.7424752Z ================== 2023-01-11T21:03:39.7424817Z ================== 2023-01-11T21:03:39.7424986Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7425165Z  Write of size 8 at 0x7b9800041170 by main thread: 2023-01-11T21:03:39.7427306Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.7427616Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7427840Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7428121Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7428412Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7428603Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7428802Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7429026Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.7429237Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7429956Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7430192Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7430414Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7430799Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7431196Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7431449Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7431635Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7432452Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7432658Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7432859Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7433611Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7433833Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7434261Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7434709Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7434956Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7435829Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7436070Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7436373Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7436553Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7436738Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7436994Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7437095Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7437215Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7437335Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7437486Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7437796Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7437914Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7438006Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7438014Z 2023-01-11T21:03:39.7438204Z  Previous write of size 8 at 0x7b9800041170 by thread T3: 2023-01-11T21:03:39.7440342Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.7440606Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7440830Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7441111Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7441426Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7441717Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7441860Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7442082Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7442220Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7442226Z 2023-01-11T21:03:39.7442517Z  Location is heap block of size 12096 at 0x7b980003f000 allocated by main thread: 2023-01-11T21:03:39.7442770Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7442935Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7443170Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7443478Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7444155Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7444637Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7445129Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7452636Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7453284Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7455038Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7456294Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7456631Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7457831Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7458212Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7458441Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7458716Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7460017Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7460487Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7461754Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7462037Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7462306Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7463640Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7468640Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7470658Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7471169Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7471405Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7472965Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7474074Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7474382Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7475528Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7475882Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7476155Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7477341Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7477664Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7478753Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7479051Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7479244Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7479420Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7480135Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7480293Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7480490Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7480690Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7480911Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7481129Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7481609Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7482002Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7482216Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7482417Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7483201Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7483406Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7483609Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7484392Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7484644Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7485069Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7485452Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7485688Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7486548Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7486762Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7487037Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7487214Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7487395Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7487650Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7487768Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7487885Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7488004Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7488151Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7488490Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7488608Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7488702Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7488708Z 2023-01-11T21:03:39.7488936Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.7489132Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7489352Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7489667Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7489841Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7490133Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7490287Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7490478Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7490888Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7491110Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7491298Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7491493Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7492053Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7492218Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7492440Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7493104Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7493340Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7494130Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7494322Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7494635Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7495303Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7495451Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7495600Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7495844Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7495960Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7496077Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7496197Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7496345Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7496654Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7496771Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7496865Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7496873Z 2023-01-11T21:03:39.7498541Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.7498668Z ================== 2023-01-11T21:03:39.7498733Z ================== 2023-01-11T21:03:39.7498903Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7499082Z  Write of size 8 at 0x7b9800041218 by main thread: 2023-01-11T21:03:39.7501257Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.7501517Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7501735Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7502016Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7502303Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7502497Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7502697Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7502922Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.7503134Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7503847Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7504132Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7504347Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7504754Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7505140Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7505354Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7505553Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7506353Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7506558Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7506764Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7507503Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7507728Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7508153Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7508559Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7508819Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7509668Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7509891Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7510164Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7510322Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7510504Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7510759Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7510874Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7510995Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7511115Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7511262Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7511572Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7511694Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7511789Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7511795Z 2023-01-11T21:03:39.7511984Z  Previous write of size 8 at 0x7b9800041218 by thread T3: 2023-01-11T21:03:39.7514160Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.7514444Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7514787Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7515071Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7515359Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7515627Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7515768Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7515992Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7516125Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7516131Z 2023-01-11T21:03:39.7516356Z  Location is heap block of size 12096 at 0x7b980003f000 allocated by main thread: 2023-01-11T21:03:39.7516520Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7516646Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7516793Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7516996Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7517435Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7517704Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7517968Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7518230Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7518600Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7519689Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7520312Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7520624Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7521651Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7521926Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7522110Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7522403Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7523581Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7523893Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7524951Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7525244Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7525507Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7526693Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7527049Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7528138Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7528424Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7528615Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7528907Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7530022Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7530356Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7531434Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7531722Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7531987Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7533140Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7533461Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7534788Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7535110Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7535300Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7535447Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7536118Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7536273Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7536466Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7536664Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7536901Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7537117Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7537498Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7537886Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7538098Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7538295Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7539128Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7539344Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7539548Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7540290Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7540512Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7540940Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7541324Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7541560Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7542419Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7542639Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7542942Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e61ff) 2023-01-11T21:03:39.7543113Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7543318Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutHeadNull_Test::TestBody() (test_lazy+0x2ce7a0) 2023-01-11T21:03:39.7543570Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7543682Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7543800Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7543921Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7544067Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7544375Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7544492Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7544585Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7544591Z 2023-01-11T21:03:39.7544812Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.7544966Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7545184Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7545504Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7545674Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7545963Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7546116Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7546304Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7546706Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7546926Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7547108Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7547304Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7547863Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7548054Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7548279Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7548970Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7549181Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7549958Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7550136Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7550276Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7551059Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7551211Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7551425Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7551685Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7551789Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7551910Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7552028Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7552175Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7552484Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7552643Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7552736Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7552743Z 2023-01-11T21:03:39.7554421Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.7554495Z ================== 2023-01-11T21:03:39.7554797Z [ OK ] LazyOpsTest.TestMultiIndexPutHeadNull (278 ms) 2023-01-11T21:03:39.7554999Z [ RUN ] LazyOpsTest.TestMultiIndexPutMiddleNull 2023-01-11T21:03:39.7616188Z ================== 2023-01-11T21:03:39.7616573Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7616908Z  Write of size 4 at 0x7b880000e8e8 by thread T1: 2023-01-11T21:03:39.7620711Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.7621159Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7621555Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7622033Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7622515Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7623098Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7623331Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7623759Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7623988Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7623996Z 2023-01-11T21:03:39.7624314Z  Previous write of size 4 at 0x7b880000e8e8 by main thread: 2023-01-11T21:03:39.7628116Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:39.7628557Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7628940Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7629413Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7629897Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7630235Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7630573Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7630967Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.7631327Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7632605Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7633066Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7633436Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7634111Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7634839Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7635197Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7635531Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7636881Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7637222Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7637622Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7638904Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7639326Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7640057Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7640756Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7641162Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7642630Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7642987Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7643472Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7643781Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7644115Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7644554Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7644737Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7644931Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7645116Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7645335Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7645871Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7646074Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7646243Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7646257Z 2023-01-11T21:03:39.7646648Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2023-01-11T21:03:39.7646823Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7646948Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7647180Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7647385Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7647873Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7648145Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7648407Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7648673Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7648997Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7650082Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7650704Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7651006Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7652082Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7652380Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7652568Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7652838Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7653974Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7654295Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7655536Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7655891Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7656162Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7657332Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7657652Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7658759Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7659047Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7659238Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7659562Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7660686Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7661007Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7662067Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7662342Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7662610Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7663807Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7664150Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7665247Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7665534Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7665726Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7665875Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7666547Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7666702Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7666896Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7667096Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7667328Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7667575Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7667983Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7668369Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7668581Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7668778Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7669560Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7669765Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7669968Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7670710Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7670948Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7671373Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7671755Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7672020Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7672905Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7673114Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7673425Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7673598Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7673782Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7674037Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7674151Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7674271Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7674389Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7674538Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7674918Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7675037Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7675135Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7675143Z 2023-01-11T21:03:39.7675354Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7675523Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7675740Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7676058Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7676228Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7676518Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7676702Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7676891Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7677325Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7677544Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7677728Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7677921Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7678515Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7678761Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7679082Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7680235Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7680595Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7681966Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7682294Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7682539Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7683632Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7683967Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7684244Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7684719Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7684905Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7685107Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7685323Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7685595Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7686147Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7686336Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7686511Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7686522Z 2023-01-11T21:03:39.7689654Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.7689765Z ================== 2023-01-11T21:03:39.7689916Z ================== 2023-01-11T21:03:39.7690202Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7690533Z  Write of size 4 at 0x7b880000e8ec by thread T1: 2023-01-11T21:03:39.7694618Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.7695177Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7695618Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7696129Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7696659Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7697139Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7697396Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7697778Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7698017Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7698028Z 2023-01-11T21:03:39.7698350Z  Previous write of size 4 at 0x7b880000e8ec by main thread: 2023-01-11T21:03:39.7702335Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:39.7702826Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7703161Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7703597Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7704120Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7704428Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7704839Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7705251Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.7705606Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7706926Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7707358Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7707724Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7708410Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7709090Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7709463Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7709814Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7711226Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7711647Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7712020Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7713288Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7713518Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7713946Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7714344Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7714666Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7715524Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7715736Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7716020Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7716196Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7716383Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7716640Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7716792Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7716913Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7717021Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7717168Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7717508Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7717634Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7717726Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7717733Z 2023-01-11T21:03:39.7717975Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2023-01-11T21:03:39.7718146Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7718272Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7718477Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7718683Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7719126Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7719395Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7719662Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7719928Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7720251Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7721336Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7722020Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7722327Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7723366Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7723641Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7723828Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7724099Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7725227Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7725572Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7726660Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7726934Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7727200Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7728373Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7728694Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7729828Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7730141Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7730332Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7730627Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7731723Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7732042Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7733102Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7733413Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7733702Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7734972Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7735296Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7736396Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7736686Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7736878Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7737025Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7737780Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7737940Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7738135Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7738340Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7738574Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7738793Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7739176Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7739561Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7739775Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7739978Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7740864Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7741157Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7741483Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7742705Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7743198Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7743954Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7744633Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7745031Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7746453Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7746769Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7747186Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7747471Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7747769Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7748185Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7748375Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7748576Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7748761Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7748980Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7749473Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7749743Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7749887Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7749896Z 2023-01-11T21:03:39.7750290Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7750549Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7750996Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7751565Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7751822Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7752270Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7752538Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7752900Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7753575Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7753942Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7754234Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7754620Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7755557Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7755821Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7756194Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7757310Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7757650Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7758854Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7759150Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7759394Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7760379Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7760614Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7760859Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7761270Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7761485Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7761734Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7761959Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7762243Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7762631Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7762984Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7763181Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7763191Z 2023-01-11T21:03:39.7766037Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.7766196Z ================== 2023-01-11T21:03:39.7766437Z ================== 2023-01-11T21:03:39.7766754Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7767186Z  Write of size 4 at 0x7b880000e8f0 by thread T1: 2023-01-11T21:03:39.7780343Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:39.7780806Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7781040Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7781328Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7781620Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7781928Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7782073Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7782297Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7782436Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7782443Z 2023-01-11T21:03:39.7782665Z  Previous write of size 4 at 0x7b880000e8f0 by main thread: 2023-01-11T21:03:39.7784855Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:39.7785154Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7785377Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7785661Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7785950Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7786142Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7786345Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7786573Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.7786787Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7787506Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7787744Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7787965Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7788348Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7788734Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7788977Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7789177Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7789985Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7790204Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7790410Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7791151Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7791378Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7791806Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7792193Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7792435Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7793289Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7793549Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7793833Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7794011Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7794202Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7794455Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7794659Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7794783Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7794907Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7795055Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7795368Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7795491Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7795588Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7795593Z 2023-01-11T21:03:39.7795821Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2023-01-11T21:03:39.7795977Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7796102Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7796267Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7796472Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7796915Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7797184Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7797450Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7797715Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7798037Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7799184Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7799812Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7800114Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7801152Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7801425Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7801612Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7801879Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7803151Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7803597Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7805421Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7805952Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7806420Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7808308Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7808848Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7810277Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7810790Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7811136Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7811668Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7813536Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7814119Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7816073Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7816549Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7817005Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7818991Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7819515Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7821417Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7821991Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7822317Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7822583Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7823780Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7824070Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7824415Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7824723Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7825066Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7825382Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7825948Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7826565Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7826907Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7827213Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7828532Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7828903Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7829227Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7830464Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7830857Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7831489Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7832093Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7832493Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7833717Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7834111Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7834523Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7834821Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7835006Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7835387Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7835504Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7835623Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7835727Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7835875Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7836189Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7836306Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7836400Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7836407Z 2023-01-11T21:03:39.7836653Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7836822Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7837042Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7837356Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7837532Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7837822Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7837974Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7838168Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7838574Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7838796Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7838967Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7839160Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7839739Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7839944Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7840169Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7840863Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7841073Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7841842Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7842019Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7842163Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7842776Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7842922Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7843072Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7843328Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7843443Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7843561Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7843679Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7843824Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7844131Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7844246Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7844326Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7844357Z 2023-01-11T21:03:39.7846057Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.7846131Z ================== 2023-01-11T21:03:39.7846184Z ================== 2023-01-11T21:03:39.7846354Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7846529Z  Write of size 4 at 0x7b880000e8f4 by thread T1: 2023-01-11T21:03:39.7848687Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:39.7848960Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7849184Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7849467Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7849755Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7850023Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7850164Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7850415Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7850537Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7850542Z 2023-01-11T21:03:39.7850731Z  Previous write of size 4 at 0x7b880000e8f4 by main thread: 2023-01-11T21:03:39.7852910Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:39.7853168Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7853394Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7853673Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7853961Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7854150Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7854511Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7854740Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.7854949Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7855667Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7855954Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7856200Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7856585Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7856978Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7857188Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7857389Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7858172Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7858382Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7858586Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7859347Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7859572Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7859998Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7860453Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7860692Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7861554Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7861767Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7862045Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7862222Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7862411Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7862671Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7862786Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7862903Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7863023Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7863169Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7863480Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7863601Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7863681Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7863687Z 2023-01-11T21:03:39.7863911Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2023-01-11T21:03:39.7864076Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7864199Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7864357Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7864562Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7865136Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7865589Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7866003Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7866414Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7867039Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7868753Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7869839Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7870146Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7871227Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7871565Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7871893Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7872361Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7874438Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7875065Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7876889Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7877425Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7877891Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7879946Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7880555Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7882382Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7882844Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7883173Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7883728Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7885788Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7886355Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7888243Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7888627Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7888955Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7890333Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7890877Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7892228Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7892697Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7893000Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7893213Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7894213Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7894567Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7894829Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7895073Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7895356Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7895647Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7896048Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7896703Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7897055Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7897429Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7898916Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7899201Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7899415Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7900155Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7900384Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7900811Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7901195Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7901433Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7902359Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7902569Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7902849Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7903026Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7903211Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7903463Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7903580Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7903686Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7903808Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7903952Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7904263Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7904384Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7904477Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7904484Z 2023-01-11T21:03:39.7904726Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7904894Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7905114Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7905432Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7905601Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7905893Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7906045Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7906237Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7906670Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7906876Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7907090Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7907287Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7907845Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7908022Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7908235Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7908905Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7909116Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7909878Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7910055Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7910198Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7910809Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7910984Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7911133Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7911388Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7911503Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7911654Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7911779Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7911926Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7912232Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7912339Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7912429Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7912435Z 2023-01-11T21:03:39.7914088Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.7914174Z ================== 2023-01-11T21:03:39.7914305Z ================== 2023-01-11T21:03:39.7914473Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7914751Z  Write of size 4 at 0x7b880000e8f8 by thread T1: 2023-01-11T21:03:39.7916883Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.7917188Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7917410Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7917719Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7918004Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7918268Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7918411Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7918634Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7918772Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7918779Z 2023-01-11T21:03:39.7918966Z  Previous write of size 4 at 0x7b880000e8f8 by main thread: 2023-01-11T21:03:39.7921119Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.7921377Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7921600Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7921880Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7922168Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7922387Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7922586Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7922811Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.7923051Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7923766Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7924007Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7924225Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7924611Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7925011Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7925220Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7925407Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7926205Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7926409Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7926613Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7927417Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7927640Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7928069Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7928457Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7928695Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7929566Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7929866Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7930263Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7930483Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7930770Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7931137Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7931299Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7931491Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7931705Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7932034Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7932535Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7932704Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7932887Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7932896Z 2023-01-11T21:03:39.7933301Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2023-01-11T21:03:39.7933568Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.7933771Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.7934003Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.7934316Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.7935164Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.7935601Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.7936037Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.7936452Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.7937002Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.7938691Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.7939724Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.7940363Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.7942051Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.7942505Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.7942789Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.7943247Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.7945145Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.7945730Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7947635Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7948146Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7948650Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7950656Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7951141Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7952943Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7953544Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7953867Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7954427Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.7956421Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.7957000Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.7958692Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.7959144Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.7959518Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.7960836Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.7961160Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.7962266Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.7962560Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.7962752Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.7962901Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.7963579Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.7963759Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.7963978Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.7964181Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.7964415Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.7964634Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7965019Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7965406Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7965622Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7965821Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7966606Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7966811Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7967014Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7967767Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7968016Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7968465Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7968846Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7969086Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7969944Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7970155Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7970436Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7970607Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7970794Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7971049Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7971167Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7971288Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7971411Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7971561Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7971875Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7971994Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7972074Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7972094Z 2023-01-11T21:03:39.7972323Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.7972520Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.7972738Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.7973055Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.7973253Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.7973545Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.7973701Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.7973894Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.7974302Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.7974633Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.7974819Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.7975014Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.7975571Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.7975737Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.7975963Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.7976625Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.7976837Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.7977597Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.7977865Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.7978009Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.7978631Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.7978779Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.7978916Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.7979171Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7979286Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7979411Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7979535Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7979686Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7979997Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7980115Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7980212Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7980218Z 2023-01-11T21:03:39.7981904Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.7981976Z ================== 2023-01-11T21:03:39.7982110Z ================== 2023-01-11T21:03:39.7982278Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.7982453Z  Write of size 4 at 0x7b880000e8fc by thread T1: 2023-01-11T21:03:39.7984609Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.7984910Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7985133Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7985413Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7985698Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7985971Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.7986098Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.7986323Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.7986461Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.7986467Z 2023-01-11T21:03:39.7986655Z  Previous write of size 4 at 0x7b880000e8fc by main thread: 2023-01-11T21:03:39.7988779Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:39.7989076Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.7989318Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.7989600Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.7989886Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.7990079Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.7990282Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.7990509Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.7990720Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.7991435Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.7991674Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.7991894Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.7992277Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.7992662Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.7992874Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.7993109Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.7993918Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.7994123Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.7994327Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.7995145Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.7995384Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.7995815Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.7996201Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.7996441Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.7997297Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.7997537Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.7997818Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.7998020Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.7998208Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.7998464Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.7998581Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.7998699Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.7998823Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.7998969Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.7999284Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.7999390Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.7999482Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.7999487Z 2023-01-11T21:03:39.7999710Z  Location is heap block of size 6048 at 0x7b880000d800 allocated by main thread: 2023-01-11T21:03:39.7999878Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8000004Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8000166Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8000372Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8000813Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8001082Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8001347Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8001609Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8001934Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8003027Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8003692Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8003996Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8005030Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8005302Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8005486Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8005758Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8006915Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8007248Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8008320Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8008599Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8008863Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8010036Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8010382Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8011508Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8011811Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8012005Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8012299Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8013401Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8013707Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8014929Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8015236Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8015508Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8016678Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8016995Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8018081Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8018434Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8018626Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8018772Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8019445Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8019600Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8019795Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8019998Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8020268Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8020485Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8020868Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8021253Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8021468Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8021671Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8022460Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8022710Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8022940Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8023680Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8023906Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8024334Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8024733Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8024972Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8025830Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8026041Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8026319Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8026492Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8026707Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8026961Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8027075Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8027196Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8027337Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8027490Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8027802Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8027920Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8028015Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8028021Z 2023-01-11T21:03:39.8028242Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.8028408Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8028628Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8028946Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8029118Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8029410Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8029563Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8029754Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8030160Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8030379Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8030562Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8030746Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8031319Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8031482Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8031708Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8032417Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8032629Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8033398Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8033576Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8033721Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8034332Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8034482Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8034708Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8034965Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8035078Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8035200Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8035320Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8035464Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8035779Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8035898Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8035978Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8035984Z 2023-01-11T21:03:39.8037690Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.8037785Z ================== 2023-01-11T21:03:39.8045009Z ================== 2023-01-11T21:03:39.8045371Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8045655Z  Write of size 1 at 0x7b680007ea2c by main thread: 2023-01-11T21:03:39.8048842Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.8049255Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8049589Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8050023Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8050532Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8050899Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8051267Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8051694Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.8052061Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8053422Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8053731Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8053975Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8054843Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8055392Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8055761Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8056092Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8057493Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8057892Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8058268Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8059624Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8060124Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8060972Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8061564Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8061951Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8063379Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8063741Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8064183Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8064455Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8064770Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8065177Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8065367Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8065567Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8065762Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8066008Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8066538Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8066755Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8066927Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8066937Z 2023-01-11T21:03:39.8067307Z  Previous write of size 1 at 0x7b680007ea2c by thread T2: 2023-01-11T21:03:39.8071421Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:39.8071883Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8072294Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8072761Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8073249Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8073752Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8074014Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8074400Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8074714Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8074727Z 2023-01-11T21:03:39.8075153Z  Location is heap block of size 1512 at 0x7b680007e600 allocated by main thread: 2023-01-11T21:03:39.8075439Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8075654Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8075926Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8076315Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8077125Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8077585Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8077852Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8078150Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8078481Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8079547Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8080192Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8080496Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8081522Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8081862Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8082051Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8082320Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8083457Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8083766Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8084844Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8085119Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8085413Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8086615Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8086944Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8088038Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8088344Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8088539Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8088840Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8089961Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8090305Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8091388Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8091666Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8091934Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8093095Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8093456Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8094705Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8095015Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8095194Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8095364Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8096057Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8096210Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8096407Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8096598Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8096829Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8097049Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8097433Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8097874Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8098088Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8098314Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8099106Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8099315Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8099521Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8100266Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8100491Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8100917Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8101306Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8101545Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8102441Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8102683Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8102966Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8103142Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8103330Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8103587Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8103704Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8103850Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8103965Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8104191Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8104607Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8104777Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8104917Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8104923Z 2023-01-11T21:03:39.8105271Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.8105515Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8105856Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8106265Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8106567Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8107107Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8107268Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8107461Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8107877Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8108098Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8108332Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8108514Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8109114Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8109280Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8109507Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8110171Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8110379Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8111150Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8111416Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8111617Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8112388Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8112555Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8112741Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8113056Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8113233Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8113388Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8113547Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8113724Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8114120Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8114291Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8114416Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8114424Z 2023-01-11T21:03:39.8117487Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.8117627Z ================== 2023-01-11T21:03:39.8117808Z ================== 2023-01-11T21:03:39.8118133Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8118460Z  Write of size 1 at 0x7b680007ea2e by thread T2: 2023-01-11T21:03:39.8120852Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.8121119Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8121345Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8121681Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8122002Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8122275Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8122422Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8122742Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8122970Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8122980Z 2023-01-11T21:03:39.8123279Z  Previous write of size 1 at 0x7b680007ea2e by main thread: 2023-01-11T21:03:39.8126628Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:39.8126972Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8127336Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8127797Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8128213Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8128480Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8128751Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8129186Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.8129522Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8130741Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8131161Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8131484Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8132118Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8132722Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8133078Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8133408Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8134246Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8134557Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8134766Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8135514Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8135979Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8136650Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8137226Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8137621Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8138889Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8139208Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8139639Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8139905Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8140194Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8140458Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8140577Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8140722Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8140885Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8141115Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8141601Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8141836Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8141981Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8141990Z 2023-01-11T21:03:39.8142364Z  Location is heap block of size 1512 at 0x7b680007e600 allocated by main thread: 2023-01-11T21:03:39.8142630Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8142864Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8143111Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8143427Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8144099Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8144530Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8144940Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8145348Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8145850Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8147284Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8148256Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8148802Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8150423Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8150864Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8151150Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8151571Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8153373Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8153850Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8155617Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8156158Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8156606Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8158421Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8158923Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8160649Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8161161Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8161497Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8161957Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8163210Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8163540Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8164949Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8165387Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8165819Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8167545Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8168063Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8169713Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8170228Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8170559Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8170808Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8171918Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8172261Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8172607Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8172936Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8173379Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8173722Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8174510Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8175183Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8175570Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8175930Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8177177Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8177481Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8177703Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8178614Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8178990Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8179675Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8180215Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8180460Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8181382Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8181635Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8182100Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8182435Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8182695Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8183004Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8183129Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8183324Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8183550Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8183801Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8184251Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8184430Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8184587Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8184598Z 2023-01-11T21:03:39.8185029Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.8185350Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8185630Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8185990Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8186167Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8186494Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8186648Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8186840Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8187251Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8187511Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8187752Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8188067Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8189003Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8189301Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8189650Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8190788Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8191169Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8192529Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8192881Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8193137Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8194072Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8194305Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8194540Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8194972Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8195129Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8195282Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8195446Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8195646Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8196089Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8196269Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8196414Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8196423Z 2023-01-11T21:03:39.8199059Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.8199185Z ================== 2023-01-11T21:03:39.8199386Z ================== 2023-01-11T21:03:39.8199666Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8199933Z  Write of size 1 at 0x7b680007ea2d by main thread: 2023-01-11T21:03:39.8203436Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.8203861Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8204221Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8204664Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8205102Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8205402Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8205728Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8206078Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.8206413Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8207546Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8207918Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8208259Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8208950Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8209617Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8209923Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8210131Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8211266Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8211592Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8211908Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8213041Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8213393Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8214071Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8214740Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8215098Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8216503Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8216888Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8217320Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8217593Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8217892Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8218311Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8218474Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8218639Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8218822Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8219056Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8219544Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8219733Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8219857Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8219867Z 2023-01-11T21:03:39.8220181Z  Previous write of size 1 at 0x7b680007ea2d by thread T2: 2023-01-11T21:03:39.8223637Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.8224034Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8224427Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8224924Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8225366Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8225673Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8225822Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8226045Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8226182Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8226188Z 2023-01-11T21:03:39.8226417Z  Location is heap block of size 1512 at 0x7b680007e600 allocated by main thread: 2023-01-11T21:03:39.8226614Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8226747Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8226912Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8227189Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8227804Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8228180Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8228588Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8228949Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8229450Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8231205Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8232347Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8232874Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8234634Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8235100Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8235341Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8235615Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8237371Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8237901Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8239572Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8240014Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8240486Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8242398Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8242901Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8244834Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8245320Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8245593Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8246022Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8247853Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8248358Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8249879Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8250381Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8250791Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8252653Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8253196Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8255118Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8255733Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8256061Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8256380Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8257505Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8257756Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8258085Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8258402Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8258657Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8258877Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8259263Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8259652Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8259867Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8260072Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8260858Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8261116Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8261324Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8262106Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8262332Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8262761Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8263148Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8263389Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8264242Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8264455Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8264739Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8264914Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8265100Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8265355Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8265501Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8265623Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8265744Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8265894Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8266244Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8266368Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8266449Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8266471Z 2023-01-11T21:03:39.8266708Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.8266880Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8267105Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8267419Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8267598Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8267895Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8268049Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8268241Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8268648Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8268873Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8269060Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8269258Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8269818Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8269987Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8270211Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8270876Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8271150Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8271920Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8272113Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8272246Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8272877Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8273024Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8273161Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8273415Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8273531Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8273650Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8273773Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8273920Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8274234Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8274352Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8274447Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8274453Z 2023-01-11T21:03:39.8276202Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.8276305Z ================== 2023-01-11T21:03:39.8276448Z ================== 2023-01-11T21:03:39.8276651Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8276832Z  Write of size 1 at 0x7b680007ea31 by thread T2: 2023-01-11T21:03:39.8278984Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.8279263Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8279486Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8279769Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8280057Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8280326Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8280467Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8280680Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8280818Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8280823Z 2023-01-11T21:03:39.8281010Z  Previous write of size 1 at 0x7b680007ea31 by main thread: 2023-01-11T21:03:39.8283194Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:39.8283494Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8283715Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8283995Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8284280Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8284473Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8284675Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8284904Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:39.8285116Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8285836Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8286074Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8286292Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8286706Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8287122Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8287338Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8287539Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8288324Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8288530Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8288740Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8289500Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8289725Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8290154Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8290539Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8290814Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8291694Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8291920Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8292203Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8292378Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8292563Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8292806Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8292919Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8293039Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8293156Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8293303Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8293615Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8293731Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8293823Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8293830Z 2023-01-11T21:03:39.8294048Z  Location is heap block of size 1512 at 0x7b680007e600 allocated by main thread: 2023-01-11T21:03:39.8294213Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8294438Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8294602Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8294805Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8295248Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8295517Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8295838Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8296100Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8296454Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8297538Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8298162Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8298474Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8299494Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8299798Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8299984Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8300287Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8301435Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8301741Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8302800Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8303086Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8303350Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8304536Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8304881Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8305980Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8306267Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8306457Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8306750Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8307887Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8308222Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8309278Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8309571Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8309843Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8311002Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8311324Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8312479Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8312771Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8313000Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8313205Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8314367Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8314683Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8314932Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8315207Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8315558Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8315869Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8316410Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8316922Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8317328Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8317614Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8318826Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8319142Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8319450Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8320522Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8320833Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8321444Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8321995Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8322324Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8323581Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8323963Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8324376Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8324603Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8324903Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8325305Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8325491Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8325670Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8325849Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8326071Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8326548Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8326725Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8326865Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8326875Z 2023-01-11T21:03:39.8327240Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.8327460Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8327789Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8328248Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8328481Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8328906Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8329129Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8329413Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8330020Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8330350Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8330615Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8330972Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8331889Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8332177Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8332521Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8333544Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8333864Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8335111Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8335376Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8335590Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8336463Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8336678Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8336901Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8337274Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8337428Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8337609Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8337876Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8338109Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8338562Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8338797Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8338939Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8338948Z 2023-01-11T21:03:39.8341439Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:39.8341556Z ================== 2023-01-11T21:03:39.8348864Z ================== 2023-01-11T21:03:39.8349594Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8349947Z  Write of size 1 at 0x7b680007f62c by thread T3: 2023-01-11T21:03:39.8353551Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:39.8354025Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8354381Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8354902Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8355318Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8355745Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8355959Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8356313Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8356568Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8356580Z 2023-01-11T21:03:39.8356881Z  Previous write of size 1 at 0x7b680007f62c by main thread: 2023-01-11T21:03:39.8360372Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.8360772Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8361129Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8361499Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8361794Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8362050Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8362372Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8362643Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.8362983Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8364130Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8364424Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8364671Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8365299Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8365886Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8366230Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8366517Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8367697Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8367956Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8368228Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8369413Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8369777Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8370372Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8370989Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8371393Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8372616Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8372954Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8373427Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8373763Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8374107Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8374641Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8374762Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8374881Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8374989Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8375164Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8375667Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8375891Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8376034Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8376187Z 2023-01-11T21:03:39.8376654Z  Location is heap block of size 1512 at 0x7b680007f200 allocated by main thread: 2023-01-11T21:03:39.8376935Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8377127Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8377357Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8377769Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8378588Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8379092Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8379583Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8380069Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8380676Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8381820Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8382456Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8382756Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8383954Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8384248Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8384423Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8384689Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8385840Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8386149Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8387339Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8387649Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8387919Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8389088Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8389428Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8390524Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8390828Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8391039Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8391364Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8392477Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8392786Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8393861Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8394142Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8394409Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8395653Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8396017Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8397105Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8397399Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8397590Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8397742Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8398439Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8398595Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8398776Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8399005Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8399239Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8399482Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8399871Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8400257Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8400483Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8400672Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8401467Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8401675Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8401881Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8402652Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8402875Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8403301Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8403716Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8403979Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8404846Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8405058Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8405340Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8405516Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8405700Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8405953Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8406072Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8406190Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8406299Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8406445Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8406757Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8406876Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8406971Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8406978Z 2023-01-11T21:03:39.8407220Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.8407389Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8407608Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8407927Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8408133Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8408426Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8408578Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8408794Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8409201Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8409418Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8409590Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8409785Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8410362Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8410523Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8410737Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8411600Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8411875Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8412960Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8413188Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8413463Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8414459Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8414708Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8414915Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8415290Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8415513Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8415692Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8415913Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8416156Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8416686Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8416852Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8417003Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8417012Z 2023-01-11T21:03:39.8419803Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.8419928Z ================== 2023-01-11T21:03:39.8420087Z ================== 2023-01-11T21:03:39.8420360Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8420662Z  Write of size 1 at 0x7b680007f62e by thread T3: 2023-01-11T21:03:39.8423617Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.8423914Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8424137Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8424422Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8424714Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8424982Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8425122Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8425347Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8425486Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8425493Z 2023-01-11T21:03:39.8425669Z  Previous write of size 1 at 0x7b680007f62e by main thread: 2023-01-11T21:03:39.8428821Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:39.8429263Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8429726Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8430201Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8430701Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8431028Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8431395Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8431809Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.8432196Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8433465Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8433872Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8434255Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8435017Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8435708Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8436075Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8436432Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8437894Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8438365Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8438745Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8440135Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8440382Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8440883Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8441269Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8441510Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8443020Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8443411Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8444006Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8444365Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8444703Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8445183Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8445325Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8445485Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8445608Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8445753Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8446051Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8446170Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8446261Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8446268Z 2023-01-11T21:03:39.8446503Z  Location is heap block of size 1512 at 0x7b680007f200 allocated by main thread: 2023-01-11T21:03:39.8446671Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8446794Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8446957Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8447160Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8447598Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8447866Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8448130Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8448393Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8448717Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8449778Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8450468Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8450771Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8451801Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8452086Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8452272Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8452542Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8453679Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8454039Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8455348Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8455627Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8455895Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8457072Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8457391Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8458587Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8458888Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8459082Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8459376Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8460486Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8460795Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8461862Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8462195Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8462465Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8463640Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8463959Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8465044Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8465342Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8465561Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8465706Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8466404Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8466560Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8466753Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8466956Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8467188Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8467404Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8467787Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8468174Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8468385Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8468585Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8469365Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8469571Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8469775Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8470587Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8470809Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8471238Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8471625Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8471957Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8473120Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8473473Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8473945Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8474277Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8474670Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8474973Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8475106Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8475278Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8475455Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8475755Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8476320Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8476540Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8476702Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8476755Z 2023-01-11T21:03:39.8477114Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.8477372Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8477725Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8478222Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8478471Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8478924Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8479150Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8479453Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8480157Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8480544Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8480833Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8481162Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8482033Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8482293Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8482524Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8483461Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8483735Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8484931Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8485249Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8485511Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8486651Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8486900Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8487148Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8487575Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8487757Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8487966Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8488185Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8488454Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8489032Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8489227Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8489374Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8489385Z 2023-01-11T21:03:39.8492572Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.8492746Z ================== 2023-01-11T21:03:39.8492939Z ================== 2023-01-11T21:03:39.8493240Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8493541Z  Write of size 1 at 0x7b680007f62f by thread T3: 2023-01-11T21:03:39.8497631Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:39.8498120Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8498523Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8499009Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8499545Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8500016Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8500270Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8500673Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8500914Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8500921Z 2023-01-11T21:03:39.8501269Z  Previous write of size 1 at 0x7b680007f62f by main thread: 2023-01-11T21:03:39.8504407Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:39.8504727Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8504946Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8505226Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8505512Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8505703Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8505909Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8506133Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:39.8506347Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8507059Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8507298Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8507517Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8507897Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8508327Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8508567Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8508768Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8509558Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8509760Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8509966Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8510711Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8510935Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8511361Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8511748Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8511986Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8512882Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8513120Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8513402Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8513576Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8513763Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8514018Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8514133Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8514238Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8514359Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8514507Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8514891Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8515011Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8515105Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8515112Z 2023-01-11T21:03:39.8515342Z  Location is heap block of size 1512 at 0x7b680007f200 allocated by main thread: 2023-01-11T21:03:39.8515510Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8515633Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8515794Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8515985Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8516441Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8516709Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8516969Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8517269Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8517592Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8518693Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8519329Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8519634Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8520656Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8520928Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8521140Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8521406Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8522575Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8522884Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8523959Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8524235Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8524502Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8525679Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8526037Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8527141Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8527433Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8527627Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8527927Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8529041Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8529408Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8530481Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8530754Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8531022Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8532177Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8532512Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8533619Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8533943Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8534135Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8534283Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8535144Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8535301Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8535496Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8535696Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8535928Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8536145Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8536527Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8536920Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8537131Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8537382Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8538213Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8538420Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8538627Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8539368Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8539590Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8540015Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8540435Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8540675Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8541540Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8541792Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8542072Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8542274Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8542459Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8542710Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8542817Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8542935Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8543054Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8543202Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8543515Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8543632Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8543724Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8543730Z 2023-01-11T21:03:39.8543957Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.8544127Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8544348Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8544662Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8544836Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8545128Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8545267Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8545454Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8545862Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8546079Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8546265Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8546461Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8547018Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8547212Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8547467Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8548143Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8548351Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8549114Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8549292Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8549434Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8550046Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8550195Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8550345Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8550597Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8550712Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8550831Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8550951Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8551086Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8551394Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8551543Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8551636Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8551641Z 2023-01-11T21:03:39.8553340Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:39.8553413Z ================== 2023-01-11T21:03:39.8561144Z ================== 2023-01-11T21:03:39.8561546Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8561845Z  Write of size 2 at 0x7b780000d45a by thread T2: 2023-01-11T21:03:39.8568223Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:39.8568689Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8569086Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8569579Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8570078Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8570646Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8570918Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8571349Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8571564Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8571591Z 2023-01-11T21:03:39.8571897Z  Previous write of size 2 at 0x7b780000d45a by main thread: 2023-01-11T21:03:39.8575808Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:39.8576258Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8576631Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8577113Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8577611Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8577941Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8578276Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8578661Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.8579013Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8580497Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.8580943Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.8581278Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8582461Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8582757Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8583047Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8584165Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.8584517Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.8585736Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8586081Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8586357Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cf7bc) 2023-01-11T21:03:39.8586761Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8586942Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8587106Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8587255Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8587472Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8587909Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8588096Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8588232Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8588244Z 2023-01-11T21:03:39.8588587Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2023-01-11T21:03:39.8588822Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8588989Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8589219Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8589508Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8590144Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8590576Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8590964Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8591358Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8591814Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8593395Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8594335Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8594834Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8596336Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8596694Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8596950Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.8597940Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.8598237Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.8598587Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.8599831Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.8600184Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.8601429Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8601725Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8601992Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cf7bc) 2023-01-11T21:03:39.8602350Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8602528Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8602674Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8602854Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8603071Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8603509Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8603667Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8603799Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8603807Z 2023-01-11T21:03:39.8604135Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.8604393Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8604694Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8605160Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8605488Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8606003Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8606307Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8606628Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8607331Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8607709Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8608023Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8608350Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8609307Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8609732Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8610115Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8611472Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8611831Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8614817Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8615144Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8615469Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8616622Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8616872Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8617132Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8617556Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8617750Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8617947Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8618147Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8618407Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8618941Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8619137Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8619288Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8619301Z 2023-01-11T21:03:39.8622195Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.8622309Z ================== 2023-01-11T21:03:39.8622479Z ================== 2023-01-11T21:03:39.8622769Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8623066Z  Write of size 2 at 0x7b780000d45c by thread T2: 2023-01-11T21:03:39.8626905Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.8627403Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8627805Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8628279Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8628794Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8629270Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8629518Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8629906Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8630130Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8630139Z 2023-01-11T21:03:39.8630478Z  Previous write of size 2 at 0x7b780000d45c by main thread: 2023-01-11T21:03:39.8634477Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.8635039Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8635499Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8635972Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8636525Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8636874Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8637225Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8637611Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.8637967Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8639415Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.8639780Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.8640138Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8641559Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8641917Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8642290Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8643783Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.8644256Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.8645800Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8646174Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8646511Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cf7bc) 2023-01-11T21:03:39.8646968Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8647158Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8647351Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8647551Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8647817Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8648388Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8648601Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8648760Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8648769Z 2023-01-11T21:03:39.8649151Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2023-01-11T21:03:39.8649445Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8649663Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8649949Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8650320Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8651081Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8651604Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8652113Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8652584Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8653137Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8655203Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8656380Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8656895Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8658763Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8659301Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8659490Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.8660180Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.8660364Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.8660573Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.8661387Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.8661633Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.8662489Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8662715Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8662936Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cf7bc) 2023-01-11T21:03:39.8663210Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8663328Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8663447Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8663567Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8663737Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8664052Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8664172Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8664268Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8664274Z 2023-01-11T21:03:39.8664507Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.8664674Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8664891Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8665211Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8665371Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8665663Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8665819Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8666031Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8666436Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8666654Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8666837Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8667032Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8667595Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8667758Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8667983Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8668741Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8668949Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8669716Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8669893Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8670034Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8670646Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8670793Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8670946Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8671196Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8671310Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8671428Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8671550Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8671684Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8671993Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8672109Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8672203Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8672208Z 2023-01-11T21:03:39.8673896Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.8673995Z ================== 2023-01-11T21:03:39.8706956Z ================== 2023-01-11T21:03:39.8707566Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8707849Z  Write of size 2 at 0x7b7800010458 by thread T1: 2023-01-11T21:03:39.8711488Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.8711970Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8712365Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8712858Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8713383Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8713839Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8714086Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8714440Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8714721Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8714730Z 2023-01-11T21:03:39.8715053Z  Previous write of size 2 at 0x7b7800010458 by main thread: 2023-01-11T21:03:39.8719096Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:39.8719553Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8719944Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8720445Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8720940Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8721267Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8721562Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8721814Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.8722161Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8723386Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8723801Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8724252Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8724966Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8725597Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8725947Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8726285Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8727297Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8727559Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8727820Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8728971Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8729372Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8730072Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8730719Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8731169Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8732341Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8732662Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8733086Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8733353Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8733594Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8733853Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8733968Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8734086Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8734193Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8734485Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8735051Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8735276Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8735404Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8735411Z 2023-01-11T21:03:39.8735666Z  Location is heap block of size 3024 at 0x7b780000fc00 allocated by main thread: 2023-01-11T21:03:39.8735833Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8735957Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8736118Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8736328Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8736769Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8737108Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8737372Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8737675Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8738002Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8739071Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8739709Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8740008Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8741029Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8741369Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8741543Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8741811Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8742960Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8743267Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8744346Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8744619Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8744884Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8746107Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8746441Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8747529Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8747819Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8748010Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8748304Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8749441Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8749766Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8750842Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8751114Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8751382Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8752539Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8752897Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8754016Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8754311Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8754504Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8754722Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8755455Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8755607Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8755803Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8756069Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8756331Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8756577Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8756952Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8765717Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8766203Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8766563Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8767801Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8768121Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8768421Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8769607Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8769981Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8770481Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8771052Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8771428Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8772870Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8773266Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8773686Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8773954Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8774181Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8774744Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8774936Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8775107Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8775254Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8775467Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8775913Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8776080Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8776198Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8776206Z 2023-01-11T21:03:39.8776497Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.8776772Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8777130Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8777586Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8777823Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8778272Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8778471Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8778726Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8779365Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8779615Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8779988Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8780272Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8781012Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8781261Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8781553Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8782629Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8782978Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8784180Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8784469Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8784697Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8785540Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8785738Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8785977Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8786379Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8786607Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8786775Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8786946Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8787164Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8787723Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8787909Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8788058Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8788067Z 2023-01-11T21:03:39.8790850Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.8790979Z ================== 2023-01-11T21:03:39.8791153Z ================== 2023-01-11T21:03:39.8791442Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8791691Z  Write of size 2 at 0x7b780001045a by thread T1: 2023-01-11T21:03:39.8794927Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:39.8795244Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8795470Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8795809Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8796098Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8796393Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8796539Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8796764Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8796903Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8796910Z 2023-01-11T21:03:39.8797105Z  Previous write of size 2 at 0x7b780001045a by main thread: 2023-01-11T21:03:39.8799251Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:39.8799512Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8799730Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8800011Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8800297Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8800488Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8800689Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8800913Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.8801152Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8801912Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8802153Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8802368Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8802754Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8803152Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8803364Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8803563Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8804347Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8804552Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8804755Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8805494Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8805768Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8806194Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8806577Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8806817Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8807679Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8807892Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8808172Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8808346Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8808534Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8808790Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8808904Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8809009Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8809132Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8809278Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8809591Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8809735Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8809828Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8809833Z 2023-01-11T21:03:39.8810053Z  Location is heap block of size 3024 at 0x7b780000fc00 allocated by main thread: 2023-01-11T21:03:39.8810218Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8810341Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8810530Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8810721Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8811176Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8811447Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8811711Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8811973Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8812295Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8813357Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8813996Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8814429Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8815512Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8815785Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8815972Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8816241Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8817385Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8817693Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8818796Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8819102Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8819370Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8820533Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8820862Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8821954Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8822284Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8822474Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8822798Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8823912Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8825505Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8827232Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8829143Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8830079Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8832734Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8835605Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8837716Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8839645Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8840444Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8841044Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8842255Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8843521Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8844264Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8844985Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8845787Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8846623Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8847714Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8849076Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8850113Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8850651Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8851647Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8853123Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8853891Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8855639Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8856600Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8857755Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8859337Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8860457Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8862062Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8863096Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8863599Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8864058Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8864430Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8864881Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8865243Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8865498Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8865757Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8866032Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8866512Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8866945Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8867177Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8867305Z 2023-01-11T21:03:39.8867537Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.8867873Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8868230Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8868773Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8869302Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8869764Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8870238Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8870600Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8871210Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8871698Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8872096Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8872488Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8873254Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8873956Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8874360Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.8875346Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.8876195Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.8877263Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.8878203Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.8878537Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.8879343Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.8880086Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.8880388Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.8880817Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8881191Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8881446Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8881691Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8881979Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8882457Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8882892Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8883113Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8883241Z 2023-01-11T21:03:39.8884907Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.8885937Z ================== 2023-01-11T21:03:39.8886099Z ================== 2023-01-11T21:03:39.8886362Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.8886667Z  Write of size 2 at 0x7b780001045c by thread T1: 2023-01-11T21:03:39.8888981Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.8890784Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8891497Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8892384Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8893458Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8894266Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.8894902Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.8895320Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.8895859Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.8896114Z 2023-01-11T21:03:39.8896448Z  Previous write of size 2 at 0x7b780001045c by main thread: 2023-01-11T21:03:39.8900374Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:39.8902351Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.8903268Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.8904200Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.8905258Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.8906131Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.8906883Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.8907683Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.8908449Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.8910176Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.8911850Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.8912647Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8913681Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8915171Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8916259Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8916791Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8918433Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8920334Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8921070Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8922849Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8924108Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8924762Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8925574Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8926195Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8927307Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8928327Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8928823Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8929312Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8929683Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8930165Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8930543Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8930784Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8931042Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8931328Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8931808Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8932229Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8932460Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8932588Z 2023-01-11T21:03:39.8932838Z  Location is heap block of size 3024 at 0x7b780000fc00 allocated by main thread: 2023-01-11T21:03:39.8933176Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.8933426Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.8933728Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.8934113Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.8935007Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.8935706Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.8936240Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.8936758Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.8937352Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.8938822Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.8940618Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.8941517Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.8942845Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.8944213Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.8944673Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.8945125Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.8946586Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.8948120Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8949503Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8950886Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8951426Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8952873Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8954409Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8955958Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8957379Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8957861Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8958361Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.8959761Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.8961228Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.8962614Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.8964042Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.8964581Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.8966009Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.8967555Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.8968963Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.8970407Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.8970910Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.8971262Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.8972126Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.8972937Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.8973299Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.8973690Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.8974130Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.8974707Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.8975318Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.8976091Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.8976687Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.8977111Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.8978117Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.8979069Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.8979528Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.8980517Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.8981458Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.8982111Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.8982914Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.8983536Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.8984639Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.8985660Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.8986159Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.8986622Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.8986980Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.8987432Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.8987808Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.8988094Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.8988341Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.8988626Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.8989102Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.8989564Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.8989788Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.8989916Z 2023-01-11T21:03:39.8990150Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.8990484Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.8990842Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.8991389Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.8991865Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.8992346Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.8992798Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.8993159Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.8993838Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.8994722Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.8995466Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.8996153Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.8997273Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.8998301Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.8998856Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9000177Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9001475Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9002896Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9004183Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9004673Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9005824Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9006990Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9007446Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9008077Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9008637Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9009015Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9009383Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9009783Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9010478Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9011128Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9011474Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9011661Z 2023-01-11T21:03:39.9014247Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.9015853Z ================== 2023-01-11T21:03:39.9016169Z ================== 2023-01-11T21:03:39.9016529Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9017038Z  Write of size 2 at 0x7b780001045e by thread T1: 2023-01-11T21:03:39.9020280Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.9022473Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9023136Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9023822Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9024598Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9025339Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9025918Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9026442Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9026961Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9027248Z 2023-01-11T21:03:39.9027572Z  Previous write of size 2 at 0x7b780001045e by main thread: 2023-01-11T21:03:39.9031723Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:39.9034533Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9035416Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9036284Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9037257Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9038063Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9038732Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9039481Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:39.9040232Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9041845Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9043429Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9044222Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9045283Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9046589Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9047594Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9048271Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9052086Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9053633Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9054318Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9055922Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9057496Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9058621Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9059863Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9060491Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9061725Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9062751Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9063255Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9063716Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9064093Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9064538Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9064914Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9065171Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9065431Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9065705Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9066183Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9066618Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9066853Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9066983Z 2023-01-11T21:03:39.9067225Z  Location is heap block of size 3024 at 0x7b780000fc00 allocated by main thread: 2023-01-11T21:03:39.9067558Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9067823Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9068131Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9068503Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9069164Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9069856Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9070392Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9070951Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9071565Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9072950Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9074810Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9075700Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9077044Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9078412Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9078910Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9079402Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9080818Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9082312Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9083686Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9085090Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9085633Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9087087Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9088656Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9090059Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9091511Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9091990Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9092707Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9094989Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9097609Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9100129Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9102331Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9103209Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9105664Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9108171Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9110168Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9112124Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9112917Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9113431Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9114921Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9115994Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9116587Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9117178Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9117922Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9118722Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9119697Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9121029Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9122056Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9122826Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9124683Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9126079Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9126498Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9127463Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9128407Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9129069Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9129877Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9130495Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9131602Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9132657Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9133172Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9133636Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9134008Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9134563Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9134943Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9135185Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9135449Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9135740Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9136222Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9136645Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9136877Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9137007Z 2023-01-11T21:03:39.9137251Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:39.9137591Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9137937Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9138487Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9138978Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9139453Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9139904Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9140253Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9140859Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9141351Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9141762Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9142153Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9142969Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9143708Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9144105Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9144996Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9145844Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9146923Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9147836Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9148155Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9148930Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9149675Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9149990Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9150416Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9150794Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9151036Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9151293Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9151614Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9152090Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9152513Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9152748Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9152877Z 2023-01-11T21:03:39.9154638Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:39.9155678Z ================== 2023-01-11T21:03:39.9155972Z ================== 2023-01-11T21:03:39.9156240Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9156546Z  Write of size 4 at 0x7b88000118e8 by thread T2: 2023-01-11T21:03:39.9159336Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:39.9161866Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9162661Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9163490Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9164466Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9165397Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9166020Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9166646Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9167246Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9167491Z 2023-01-11T21:03:39.9167794Z  Previous write of size 4 at 0x7b88000118e8 by main thread: 2023-01-11T21:03:39.9172161Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:39.9174493Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9174981Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9175495Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9176071Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9176558Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9176964Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9177408Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.9177839Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9178914Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9179848Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9180294Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9180909Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9181671Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9182266Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9182690Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9183694Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9184651Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9185071Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9186028Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9186996Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9187691Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9188492Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9189117Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9190219Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9191227Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9191724Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9192191Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9192563Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9193016Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9193383Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9193637Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9193895Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9194184Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9194717Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9195160Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9195392Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9195522Z 2023-01-11T21:03:39.9195768Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2023-01-11T21:03:39.9196087Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9196387Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9196690Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9197072Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9197754Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9198447Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9198985Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9199525Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9200116Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9201524Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9203274Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9204164Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9205915Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9208272Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9208923Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9209697Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9212239Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9213980Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9215456Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9216965Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9217513Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9218953Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9220508Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9221930Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9223347Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9223858Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9224360Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9225790Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9227253Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9228619Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9230010Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9230553Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9232015Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9233583Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9235055Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9236480Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9236956Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9237306Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9238154Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9238947Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9239311Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9239703Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9240187Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9240638Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9241275Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9242180Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9243012Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9243654Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9245357Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9247046Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9247806Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9249537Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9251115Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9252010Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9253402Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9254517Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9256516Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9258151Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9259076Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9259895Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9260540Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9261376Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9262069Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9262496Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9262923Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9263415Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9264302Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9265100Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9265488Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9265683Z 2023-01-11T21:03:39.9266116Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.9266401Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9266796Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9267358Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9267674Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9268196Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9268556Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9268881Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9269669Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9270082Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9270420Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9270786Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9271758Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9272054Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9272440Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9273695Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9274079Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9275559Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9275887Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9276149Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9276844Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9277074Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9277226Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9277481Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9277594Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9277714Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9277833Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9277979Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9278287Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9278407Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9278502Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9278509Z 2023-01-11T21:03:39.9280186Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.9280258Z ================== 2023-01-11T21:03:39.9280323Z ================== 2023-01-11T21:03:39.9280491Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9280655Z  Write of size 4 at 0x7b88000118ec by thread T2: 2023-01-11T21:03:39.9282817Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:39.9283140Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9283368Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9283648Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9283935Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9284205Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9284350Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9284573Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9284709Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9284717Z 2023-01-11T21:03:39.9284905Z  Previous write of size 4 at 0x7b88000118ec by main thread: 2023-01-11T21:03:39.9287040Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:39.9287300Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9287520Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9287798Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9288127Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9288342Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9288545Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9288771Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.9288982Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9289695Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9289933Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9290155Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9290540Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9290926Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9291142Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9291342Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9292152Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9292385Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9292587Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9293358Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9293585Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9294013Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9294503Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9294746Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9295599Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9295823Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9296106Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9296269Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9296457Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9296760Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9296874Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9296993Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9297112Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9297295Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9297606Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9297725Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9297818Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9297827Z 2023-01-11T21:03:39.9298052Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2023-01-11T21:03:39.9298206Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9298330Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9298489Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9298693Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9299131Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9299399Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9299662Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9299925Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9300250Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9301330Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9302019Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9302324Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9303361Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9303755Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9304056Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9304473Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9306481Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9307080Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9309049Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9309526Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9310007Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9312147Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9312678Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9314763Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9315353Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9315686Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9316227Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9318239Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9318789Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9320742Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9321289Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9321760Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9323832Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9324419Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9326377Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9326877Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9327207Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9327525Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9328742Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9329022Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9329351Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9329706Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9330131Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9330501Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9331206Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9331921Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9332311Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9332644Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9334078Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9334559Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9334941Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9336279Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9336540Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9336970Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9337352Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9337591Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9338449Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9338662Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9338940Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9339114Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9339301Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9339554Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9339673Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9339796Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9339916Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9340065Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9340376Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9340526Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9340607Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9340628Z 2023-01-11T21:03:39.9340856Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.9341026Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9341276Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9341594Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9341768Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9342061Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9342212Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9342403Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9342810Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9343030Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9343219Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9343415Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9343976Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9344139Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9344366Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9345033Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9345244Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9346075Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9346266Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9346397Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9347017Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9347180Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9347374Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9347629Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9347746Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9347863Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9347984Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9348130Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9348439Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9348558Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9348650Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9348656Z 2023-01-11T21:03:39.9350312Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.9350383Z ================== 2023-01-11T21:03:39.9350691Z ================== 2023-01-11T21:03:39.9350861Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9351032Z  Write of size 4 at 0x7b88000118f0 by thread T2: 2023-01-11T21:03:39.9353227Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:39.9353491Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9353712Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9353993Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9354284Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9354610Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9354759Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9354982Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9355118Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9355124Z 2023-01-11T21:03:39.9355316Z  Previous write of size 4 at 0x7b88000118f0 by main thread: 2023-01-11T21:03:39.9357479Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:39.9357764Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9357988Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9358267Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9358558Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9358751Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9358952Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9359180Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.9359391Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9360107Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9360347Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9360564Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9360950Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9361337Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9361579Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9361830Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9362630Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9362837Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9363042Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9363915Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9364280Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9364961Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9365606Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9366044Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9367610Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9368078Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9368547Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9368861Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9369208Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9369659Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9369855Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9370038Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9370216Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9370445Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9370994Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9371196Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9371361Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9371372Z 2023-01-11T21:03:39.9371777Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2023-01-11T21:03:39.9372083Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9372304Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9372583Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9372924Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9373688Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9374127Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9374702Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9375149Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9375762Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9377651Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9378760Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9379293Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9381117Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9381581Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9381923Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9382419Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9384530Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9385101Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9387020Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9387529Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9388026Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9390186Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9390762Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9392777Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9393266Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9393575Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9394110Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9396293Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9396914Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9398434Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9398717Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9398981Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9400153Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9400475Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9401595Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9401922Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9402117Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9402251Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9402941Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9403095Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9403289Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9403489Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9403710Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9403925Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9404306Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9404707Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9404923Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9405121Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9405936Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9406169Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9406373Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9407119Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9407343Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9407773Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9408157Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9408393Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9409260Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9409468Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9409778Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9409952Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9410138Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9410417Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9410533Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9410639Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9410758Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9410907Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9411217Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9411335Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9411431Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9411440Z 2023-01-11T21:03:39.9411681Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.9411848Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9412064Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9412375Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9412551Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9412845Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9412999Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9413176Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9413580Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9413801Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9413984Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9414180Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9414993Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9415216Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9415439Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9416145Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9416359Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9417129Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9417308Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9417454Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9418067Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9418214Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9418366Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9418618Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9418732Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9418850Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9418973Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9419107Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9419417Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9419533Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9419654Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9419660Z 2023-01-11T21:03:39.9421350Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.9421424Z ================== 2023-01-11T21:03:39.9421488Z ================== 2023-01-11T21:03:39.9421657Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9421831Z  Write of size 4 at 0x7b88000118f4 by thread T2: 2023-01-11T21:03:39.9423992Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:39.9424271Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9424495Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9424776Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9425065Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9425332Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9425492Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9425713Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9425852Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9425858Z 2023-01-11T21:03:39.9426044Z  Previous write of size 4 at 0x7b88000118f4 by main thread: 2023-01-11T21:03:39.9428205Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:39.9428478Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9428696Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9428976Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9429262Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9429453Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9429655Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9429879Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.9430079Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9430803Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9431068Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9431310Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9431692Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9432079Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9432291Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9432491Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9433275Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9433481Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9433687Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9434429Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9434737Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9435167Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9435627Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9435869Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9436721Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9436933Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9437216Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9437393Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9437579Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9437834Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9437950Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9438068Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9438188Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9438335Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9438646Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9438753Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9438845Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9438850Z 2023-01-11T21:03:39.9439077Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2023-01-11T21:03:39.9439242Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9439366Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9439527Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9439730Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9440208Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9440501Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9440763Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9441027Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9441353Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9442420Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9443056Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9443362Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9444427Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9444724Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9444912Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9445184Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9446321Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9446631Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9447705Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9448112Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9448414Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9449589Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9449910Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9451002Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9451306Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9451499Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9451794Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9452943Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9453255Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9454439Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9454715Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9454985Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9456159Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9456566Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9457649Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9457950Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9458141Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9458287Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9458961Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9459113Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9459309Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9459509Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9459742Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9459959Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9460372Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9460786Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9460999Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9461201Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9461990Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9462191Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9462396Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9463137Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9463362Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9463788Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9464182Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9464449Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9465324Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9465535Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9465814Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9465989Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9466175Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9466425Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9466541Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9466661Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9466768Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9466915Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9467227Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9467344Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9467438Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9467446Z 2023-01-11T21:03:39.9467673Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.9467840Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9468062Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9468381Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9468553Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9468847Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9468999Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9469192Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9469643Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9469862Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9470079Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9470263Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9470838Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9471004Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9471231Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9471894Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9472105Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9472870Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9473047Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9473190Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9473798Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9473975Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9474124Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9474379Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9474519Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9474706Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9474829Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9474975Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9475284Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9475402Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9475483Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9475489Z 2023-01-11T21:03:39.9477167Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.9477239Z ================== 2023-01-11T21:03:39.9477291Z ================== 2023-01-11T21:03:39.9477459Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9477635Z  Write of size 4 at 0x7b88000118f8 by thread T2: 2023-01-11T21:03:39.9479774Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:39.9480075Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9480299Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9480604Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9480895Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9481163Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9481303Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9481526Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9481651Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9481657Z 2023-01-11T21:03:39.9481843Z  Previous write of size 4 at 0x7b88000118f8 by main thread: 2023-01-11T21:03:39.9483979Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:39.9484241Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9484461Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9484744Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9485030Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9485256Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9485456Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9485706Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.9485920Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9486636Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9486877Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9487096Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9487480Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9487868Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9488080Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9488278Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9489067Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9489270Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9489502Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9490292Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9490517Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9490946Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9491331Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9491567Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9492425Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9492635Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9492913Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9493084Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9493268Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9493519Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9493635Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9493753Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9493911Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9494057Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9494466Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9494629Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9494712Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9494718Z 2023-01-11T21:03:39.9494946Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2023-01-11T21:03:39.9495115Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9495238Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9495398Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9495604Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9496046Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9496312Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9496574Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9496840Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9497163Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9498247Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9498905Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9499240Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9500278Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9500551Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9500735Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9501007Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9502144Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9502462Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9503727Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9504131Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9504498Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9506472Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9507077Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9509141Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9509718Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9510040Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9510584Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9512638Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9513216Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9514892Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9515173Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9515622Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9517796Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9518403Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9520466Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9520993Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9521233Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9521382Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9522056Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9522242Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9522477Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9522678Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9522912Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9523131Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9523518Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9523902Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9524113Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9524314Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9525417Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9525764Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9526078Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9527440Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9527863Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9528623Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9529254Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9529703Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9531302Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9531687Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9532206Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9532523Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9532865Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9533312Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9533502Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9533703Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9533905Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9534163Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9534774Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9534975Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9535145Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9535157Z 2023-01-11T21:03:39.9535655Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.9535962Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9536359Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9536982Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9537303Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9537839Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9538119Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9538470Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9539124Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9539346Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9539531Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9539726Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9540286Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9540448Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9540670Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9541336Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9541546Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9542309Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9542561Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9542693Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9543313Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9543462Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9543611Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9543851Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9543964Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9544083Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9544201Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9544350Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9544659Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9544781Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9544875Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9544881Z 2023-01-11T21:03:39.9546542Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.9546619Z ================== 2023-01-11T21:03:39.9546843Z ================== 2023-01-11T21:03:39.9547012Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9547187Z  Write of size 4 at 0x7b88000118fc by thread T2: 2023-01-11T21:03:39.9549458Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:39.9549753Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9549980Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9550261Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9550550Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9550820Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9550963Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9551190Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9551326Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9551332Z 2023-01-11T21:03:39.9551523Z  Previous write of size 4 at 0x7b88000118fc by main thread: 2023-01-11T21:03:39.9553644Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:39.9553958Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9554179Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9554457Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9554811Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9555004Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9555208Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9555437Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:39.9555652Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9556375Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9556617Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9556839Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9557226Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9557627Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9557839Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9558070Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9558882Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9559092Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9559295Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9560035Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9560262Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9560691Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9561074Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9561315Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9562178Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9562412Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9562716Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9562891Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9563075Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9563324Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9563440Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9563546Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9563664Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9563810Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9564119Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9564236Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9564327Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9564333Z 2023-01-11T21:03:39.9564555Z  Location is heap block of size 6048 at 0x7b8800010800 allocated by main thread: 2023-01-11T21:03:39.9564719Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9564842Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9565002Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9565191Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9565706Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9566081Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9566490Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9566949Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9567543Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9569536Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9570760Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9571320Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9572947Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9573452Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9573779Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9574272Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9576484Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9577105Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9579086Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9579599Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9580093Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9582222Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9582890Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9584909Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9585436Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9585776Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9586302Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9588322Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9588880Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9590881Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9591374Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9591852Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9593990Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9594625Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9596694Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9597309Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9597507Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9597654Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9598333Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9598486Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9598680Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9598879Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9599114Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9599329Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9599713Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9600100Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9600312Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9600510Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9601295Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9601532Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9601761Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9602513Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9602742Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9603170Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9603555Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9603794Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9604647Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9604861Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9605139Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9605313Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9605527Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9605779Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9605894Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9606012Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9606156Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9606307Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9606617Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9606737Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9606818Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9606836Z 2023-01-11T21:03:39.9607066Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.9607234Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9607452Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9607768Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9607941Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9608237Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9608392Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9608582Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9608991Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9609210Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9609394Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9609591Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9610150Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9610312Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9610535Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9611265Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9611475Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9612236Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9612413Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9612554Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9613176Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9613327Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9613464Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9613714Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9613829Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9613949Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9614067Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9614213Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9614623Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9614743Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9614834Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9614841Z 2023-01-11T21:03:39.9616565Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:39.9616666Z ================== 2023-01-11T21:03:39.9616731Z ================== 2023-01-11T21:03:39.9616902Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9617077Z  Write of size 8 at 0x7b9800011160 by thread T3: 2023-01-11T21:03:39.9619230Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:39.9619489Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9635336Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9635838Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9636327Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9636762Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9637010Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9637400Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9637645Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9637776Z 2023-01-11T21:03:39.9638159Z  Previous write of size 8 at 0x7b9800011160 by main thread: 2023-01-11T21:03:39.9643837Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.9644304Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9644692Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9645215Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9645710Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9646070Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9646443Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9646847Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.9647241Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9648481Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9648906Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9649321Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9650070Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9650750Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9651120Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9651485Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9652950Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9653303Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9653691Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9655228Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9655648Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9656444Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9657090Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9657620Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9659304Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9659702Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9660213Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9660449Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9660641Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9660898Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9661000Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9661120Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9661240Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9661390Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9661702Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9661824Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9661921Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9661928Z 2023-01-11T21:03:39.9662169Z  Location is heap block of size 12096 at 0x7b980000f000 allocated by main thread: 2023-01-11T21:03:39.9662339Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9662464Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9662611Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9662819Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9663265Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9663574Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9663866Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9664131Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9664469Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9665539Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9666163Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9666482Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9667510Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9667834Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9668021Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9668290Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9669429Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9669727Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9670776Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9671053Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9671347Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9672540Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9672875Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9673957Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9674247Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9674439Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9674797Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9675943Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9676279Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9677343Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9677638Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9677906Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9679061Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9679423Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9680535Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9680824Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9681013Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9681160Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9681831Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9681983Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9682175Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9682377Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9682607Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9682827Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9683209Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9683628Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9683864Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9684066Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9684863Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9685067Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9685268Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9686017Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9686242Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9686670Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9687058Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9687296Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9688172Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9688416Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9688698Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9688860Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9689045Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9689303Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9689417Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9689538Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9689657Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9689804Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9690117Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9690238Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9690331Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9690337Z 2023-01-11T21:03:39.9690558Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.9690714Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9690934Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9691248Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9691422Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9691713Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9691867Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9692058Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9692466Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9692682Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9692895Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9693094Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9693679Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9693844Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9694070Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9694839Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9695053Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9695832Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9696006Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9696149Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9696763Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9696903Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9697054Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9697350Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9697462Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9697568Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9697685Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9697834Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9698177Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9698298Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9698391Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9698397Z 2023-01-11T21:03:39.9700057Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.9700130Z ================== 2023-01-11T21:03:39.9700348Z ================== 2023-01-11T21:03:39.9700519Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9700693Z  Write of size 8 at 0x7b9800011168 by thread T3: 2023-01-11T21:03:39.9702832Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.9703095Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9703319Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9703641Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9704112Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9704518Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9704742Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9705110Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9705328Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9705335Z 2023-01-11T21:03:39.9705642Z  Previous write of size 8 at 0x7b9800011168 by main thread: 2023-01-11T21:03:39.9709144Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:39.9709594Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9709967Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9710460Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9711018Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9711345Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9711709Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9712183Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.9712535Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9713870Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9714303Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9714772Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9715484Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9716204Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9716571Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9716929Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9718376Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9718736Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9719115Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9720514Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9720971Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9721748Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9722463Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9722856Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9724418Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9724758Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9725265Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9725585Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9725927Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9726369Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9726564Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9726780Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9726993Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9727261Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9727813Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9728056Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9728220Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9728230Z 2023-01-11T21:03:39.9728644Z  Location is heap block of size 12096 at 0x7b980000f000 allocated by main thread: 2023-01-11T21:03:39.9728927Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9729190Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9729467Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9729822Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9730616Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9731088Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9731576Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9732052Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9732628Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9734657Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9735857Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9736490Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9738468Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9738966Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9739151Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9739421Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9740553Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9740861Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9741957Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9742256Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9742520Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9743689Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9744006Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9745094Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9745420Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9745640Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9745936Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9747032Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9747338Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9748407Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9748681Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9748944Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9750262Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9750586Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9751667Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9751967Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9752159Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9752304Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9752978Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9753159Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9753353Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9753551Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9753810Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9754030Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9754412Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9754869Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9755083Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9755280Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9756063Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9756267Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9756467Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9757212Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9757436Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9757891Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9758313Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9758552Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9759410Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9759619Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9759900Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9760075Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9760263Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9760601Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9760722Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9760893Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9761089Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9761368Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9761856Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9761975Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9762070Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9762077Z 2023-01-11T21:03:39.9762313Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.9762480Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9762698Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9763053Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9763225Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9763547Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9763702Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9763894Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9764299Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9764518Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9764701Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9764885Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9765458Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9765622Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9765848Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9766511Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9766722Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9767486Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9767692Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9767836Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9768473Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9768621Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9768771Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9769024Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9769137Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9769256Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9769374Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9769522Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9769833Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9769952Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9770032Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9770038Z 2023-01-11T21:03:39.9771710Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.9771782Z ================== 2023-01-11T21:03:39.9771833Z ================== 2023-01-11T21:03:39.9772000Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9772170Z  Write of size 8 at 0x7b9800011170 by thread T3: 2023-01-11T21:03:39.9774431Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.9774755Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9774980Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9775264Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9775550Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9775818Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9775962Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9776183Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9776306Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9776324Z 2023-01-11T21:03:39.9776500Z  Previous write of size 8 at 0x7b9800011170 by main thread: 2023-01-11T21:03:39.9778631Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:39.9778916Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9779134Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9779446Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9779734Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9779926Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9780130Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9780353Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.9780568Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9781282Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9781521Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9781742Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9782127Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9782510Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9782720Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9782918Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9783731Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9783968Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9784169Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9784926Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9785147Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9785569Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9785952Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9786187Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9787040Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9787249Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9787559Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9787735Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9787920Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9788200Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9788316Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9788434Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9788552Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9788699Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9789005Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9789124Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9789243Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9789269Z 2023-01-11T21:03:39.9789585Z  Location is heap block of size 12096 at 0x7b980000f000 allocated by main thread: 2023-01-11T21:03:39.9789785Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9789930Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9790170Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9790489Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9791282Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9791719Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9792090Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9792431Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9792860Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9794742Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9795634Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9796089Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9797826Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9798269Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9798580Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9798991Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9800572Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9801076Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9802867Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9803268Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9803713Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9805630Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9806083Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9807846Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9808319Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9808561Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9808939Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9810135Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9810451Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9811553Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9811860Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9812131Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9813305Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9813629Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9814826Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9815169Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9815361Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9815542Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9816216Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9816372Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9816568Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9816769Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9817003Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9817223Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9817609Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9817999Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9818211Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9818413Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9819204Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9819435Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9819641Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9820431Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9820661Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9821095Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9821479Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9821720Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9822573Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9822785Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9823064Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9823239Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9823425Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9823676Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9823820Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9823940Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9824062Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9824212Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9824552Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9824674Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9824754Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9824761Z 2023-01-11T21:03:39.9825004Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.9825172Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9825394Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9825712Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9825888Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9826182Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9826336Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9826530Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9826935Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9827157Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9827342Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9827540Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9828097Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9828263Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9828493Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9829158Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9829424Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9830191Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9830369Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9830514Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9831140Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9831289Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9831481Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9831812Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9831964Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9832131Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9832311Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9832499Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9832921Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9833113Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9833264Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9833274Z 2023-01-11T21:03:39.9836127Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.9836312Z ================== 2023-01-11T21:03:39.9836611Z ================== 2023-01-11T21:03:39.9836935Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9837223Z  Write of size 8 at 0x7b9800011218 by thread T3: 2023-01-11T21:03:39.9841131Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.9841455Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9841712Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9842070Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9842415Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9842749Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9842968Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9843247Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9843382Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9843389Z 2023-01-11T21:03:39.9843627Z  Previous write of size 8 at 0x7b9800011218 by main thread: 2023-01-11T21:03:39.9847411Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:39.9847896Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9848263Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9848725Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9849222Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9849576Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9849906Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9850256Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:39.9850597Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9851859Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:39.9852214Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:39.9852525Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9853260Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9854037Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9854560Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9854929Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9855773Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9855978Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9856185Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9856928Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9857153Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9857582Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9857965Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9858199Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9859152Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9859365Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9859644Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9859819Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9860008Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9860261Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9860375Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9860484Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9860604Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9860752Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9861065Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9861184Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9861276Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9861284Z 2023-01-11T21:03:39.9861528Z  Location is heap block of size 12096 at 0x7b980000f000 allocated by main thread: 2023-01-11T21:03:39.9861692Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9861813Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9861973Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9862165Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9862623Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9862887Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9863179Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9863441Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9863806Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9864875Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9865513Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9865814Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9866833Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9867133Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9867317Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:39.9867611Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:39.9868754Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:39.9869057Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9870131Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9870405Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9870671Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9871852Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9872210Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9873472Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9873899Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9874137Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9874616Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:39.9876494Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:39.9877032Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:39.9878756Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:39.9879179Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:39.9879634Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:39.9881475Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:39.9882033Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:39.9884086Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:39.9884656Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:39.9885018Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:39.9885274Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:39.9886459Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:39.9886769Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:39.9887093Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:39.9887434Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:39.9887817Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:39.9888151Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:39.9888749Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:39.9889343Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:39.9889714Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:39.9890030Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9891335Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9891684Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9892022Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9893228Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:39.9893586Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:39.9894283Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:39.9895071Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:39.9895469Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:39.9896333Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9896623Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9896942Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e729f) 2023-01-11T21:03:39.9897122Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:39.9897311Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleNull_Test::TestBody() (test_lazy+0x2cfad0) 2023-01-11T21:03:39.9897567Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9897682Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9897800Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9897907Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9898056Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9898367Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9898485Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9898577Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9898586Z 2023-01-11T21:03:39.9898828Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:39.9898997Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9899217Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9899534Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9899708Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9900003Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9900157Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9900348Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9900755Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9900976Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9901148Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9901343Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9901983Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9902149Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9902375Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9903042Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9903253Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9904018Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9904199Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9904343Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9904953Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9905099Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9905250Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9905505Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9905620Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9905739Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9905885Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9906032Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9906342Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9906461Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9906567Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9906573Z 2023-01-11T21:03:39.9908269Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:39.9908340Z ================== 2023-01-11T21:03:39.9908548Z [ OK ] LazyOpsTest.TestMultiIndexPutMiddleNull (220 ms) 2023-01-11T21:03:39.9908740Z [ RUN ] LazyOpsTest.TestMultiIndexPutTailNull 2023-01-11T21:03:39.9908807Z ================== 2023-01-11T21:03:39.9908972Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9909152Z  Write of size 4 at 0x7b8800003f60 by thread T2: 2023-01-11T21:03:39.9911283Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:39.9911546Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9911771Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9912051Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9912367Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9912660Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9912805Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9913027Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9913167Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9913173Z 2023-01-11T21:03:39.9913360Z  Previous write of size 4 at 0x7b8800003f60 by main thread: 2023-01-11T21:03:39.9915636Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:39.9916015Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9916377Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9916806Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9917215Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9917515Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9917820Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9918184Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.9918581Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9919903Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.9920247Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.9920575Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9921727Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9922026Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9922365Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9923611Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.9924030Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.9925416Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9925831Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9926177Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:39.9926556Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9926679Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9926799Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9926921Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9927056Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9927524Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9927712Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9927852Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9927860Z 2023-01-11T21:03:39.9928229Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:39.9928510Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9928727Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9929014Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9929380Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9930009Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9930425Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9930767Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9931111Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9931628Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9933429Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9934738Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9935305Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9937006Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9937349Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9937529Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.9938211Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.9938454Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.9938692Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.9939502Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.9939746Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.9940612Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9940824Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9941007Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:39.9941258Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9941362Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9941483Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9941603Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9941748Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9942059Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9942177Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9942269Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9942277Z 2023-01-11T21:03:39.9942507Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.9942674Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9942923Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9943237Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9943449Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9943745Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9943884Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9944076Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9944486Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9944706Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9944889Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9945081Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9945643Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9945809Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9946037Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9946712Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9946923Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9947684Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9947887Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9948058Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9948674Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9948821Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9948968Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9949223Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9949337Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9949455Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9949573Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9949708Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9950019Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9950136Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9950229Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9950235Z 2023-01-11T21:03:39.9951974Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.9952047Z ================== 2023-01-11T21:03:39.9952114Z ================== 2023-01-11T21:03:39.9952284Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9952458Z  Write of size 4 at 0x7b8800003f64 by thread T2: 2023-01-11T21:03:39.9954703Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:39.9954995Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9955223Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9955506Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9955799Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9956067Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9956209Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9956438Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9956573Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9956579Z 2023-01-11T21:03:39.9956773Z  Previous write of size 4 at 0x7b8800003f64 by main thread: 2023-01-11T21:03:39.9958916Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:39.9959214Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9959461Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9959742Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9960028Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9960222Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9960409Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9960637Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.9960848Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9961636Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.9961850Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.9962196Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:39.9962985Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:39.9963189Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:39.9963422Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:39.9964257Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.9964521Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.9965374Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9965584Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9965768Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:39.9966022Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9966137Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9966254Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9966373Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9966508Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9966819Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9966944Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9967035Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9967041Z 2023-01-11T21:03:39.9967263Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:39.9967432Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:39.9967557Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:39.9967715Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:39.9967919Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:39.9968389Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:39.9968679Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:39.9968943Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:39.9969209Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:39.9969532Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:39.9970600Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:39.9971232Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:39.9971536Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:39.9972586Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:39.9972897Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:39.9973072Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:39.9973753Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:39.9973929Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:39.9974136Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:39.9975044Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:39.9975289Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:39.9976155Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:39.9976428Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:39.9976615Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:39.9976914Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9977020Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9977141Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9977261Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9977410Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9977723Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9977844Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9977939Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9977945Z 2023-01-11T21:03:39.9978169Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:39.9978338Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:39.9978560Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:39.9978885Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:39.9979058Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:39.9979351Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:39.9979490Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:39.9979679Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:39.9980080Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:39.9980301Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:39.9980486Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:39.9980680Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:39.9981242Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:39.9981433Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:39.9981657Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:39.9982360Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:39.9982570Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:39.9983334Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:39.9983513Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:39.9983656Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:39.9984270Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:39.9984415Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:39.9984564Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:39.9984820Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:39.9984935Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:39.9985054Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:39.9985172Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:39.9985308Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:39.9985616Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:39.9985731Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:39.9985854Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:39.9985859Z 2023-01-11T21:03:39.9987525Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:39.9987598Z ================== 2023-01-11T21:03:39.9987663Z ================== 2023-01-11T21:03:39.9987831Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:39.9988005Z  Write of size 4 at 0x7b8800003f68 by thread T2: 2023-01-11T21:03:39.9990131Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.9990392Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9990616Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9990898Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9991189Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9991455Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:39.9991595Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:39.9991845Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:39.9991981Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:39.9991987Z 2023-01-11T21:03:39.9992171Z  Previous write of size 4 at 0x7b8800003f68 by main thread: 2023-01-11T21:03:39.9994399Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:39.9994883Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:39.9995191Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:39.9995559Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:39.9995899Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:39.9996153Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:39.9996467Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:39.9996885Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:39.9997280Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:39.9998709Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:39.9999095Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:39.9999513Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0000897Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0001226Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0001568Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0002950Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0003351Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0004740Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0004959Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0005194Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0005449Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0005567Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0005687Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0005845Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0006075Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0006636Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0006828Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0006989Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0007000Z 2023-01-11T21:03:40.0007451Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:40.0007748Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0007981Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0008276Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0008580Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0009203Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0009586Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0009963Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0010389Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0010818Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0012464Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0013486Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0013962Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0015777Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0016245Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0016540Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.0017643Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.0017941Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.0018271Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.0019474Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0019938Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0021173Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0021515Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0021813Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0022216Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0022383Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0022569Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0022761Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0023002Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0023500Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0023685Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0023836Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0023845Z 2023-01-11T21:03:40.0024160Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.0024332Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0024595Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0024919Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0025094Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0025387Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0025591Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0025769Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0026206Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0026431Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0026691Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0026947Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0027697Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0027922Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0028208Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0029137Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0029418Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0030486Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0030707Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0030904Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0031736Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0032029Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0032237Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0032596Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0032764Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0032930Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0033083Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0033268Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0033683Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0033846Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0033965Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0033973Z 2023-01-11T21:03:40.0036461Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.0036567Z ================== 2023-01-11T21:03:40.0036671Z ================== 2023-01-11T21:03:40.0036913Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0037180Z  Write of size 4 at 0x7b8800003f6c by thread T2: 2023-01-11T21:03:40.0040192Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:40.0040652Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0040966Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0041357Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0041778Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0042166Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0042365Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0042686Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0042880Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0042893Z 2023-01-11T21:03:40.0043185Z  Previous write of size 4 at 0x7b8800003f6c by main thread: 2023-01-11T21:03:40.0046260Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:40.0046630Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0046951Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0047334Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0047795Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0048102Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0048394Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0048698Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.0048978Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0050063Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.0050351Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.0050621Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0051708Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0052010Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0052306Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0053474Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0053908Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0055258Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0055568Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0055833Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0056198Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0056367Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0056529Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0056706Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0056910Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0057379Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0057590Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0057750Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0057760Z 2023-01-11T21:03:40.0058160Z  Location is heap block of size 6048 at 0x7b8800003000 allocated by main thread: 2023-01-11T21:03:40.0058452Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0058673Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0058939Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0059275Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0060029Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0060490Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0061012Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0061462Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0062066Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0063909Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0065005Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0065522Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0067453Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0067978Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0068273Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.0069498Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.0069795Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.0070142Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.0071560Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0071968Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0073486Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0073867Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0074177Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0074706Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0074903Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0075150Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0075344Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0075595Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0076199Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0076403Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0076563Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0076572Z 2023-01-11T21:03:40.0076957Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.0077240Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0077614Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0078148Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0078440Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0078935Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0079204Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0079525Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0080231Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0080600Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0080921Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0081232Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0082206Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0082479Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0082864Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0083983Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0084380Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0085749Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0086052Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0086289Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0087340Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0087584Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0087837Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0088281Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0088484Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0088672Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0088885Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0089147Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0089718Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0089930Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0090078Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0090102Z 2023-01-11T21:03:40.0092904Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.0093099Z ================== 2023-01-11T21:03:40.0093384Z ================== 2023-01-11T21:03:40.0093614Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0093908Z  Write of size 4 at 0x7b8800014760 by thread T1: 2023-01-11T21:03:40.0097247Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:40.0097621Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0097951Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0098349Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0098755Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0099140Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0099347Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0099662Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0099862Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0099871Z 2023-01-11T21:03:40.0100134Z  Previous write of size 4 at 0x7b8800014760 by main thread: 2023-01-11T21:03:40.0103494Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:40.0103939Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0104258Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0104675Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0105100Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0105370Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0105668Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0105993Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.0106299Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0107347Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0107679Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0108005Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0108562Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0109241Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0109560Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0109868Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0111065Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0111396Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0111688Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0112790Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0113100Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0113712Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0114270Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0114705Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0116068Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0116377Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0116773Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0117017Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0117289Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0117652Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0117829Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0117984Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0118133Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0118364Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0118814Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0118996Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0119129Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0119140Z 2023-01-11T21:03:40.0119474Z  Location is heap block of size 6048 at 0x7b8800013800 allocated by main thread: 2023-01-11T21:03:40.0119738Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0119921Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0120142Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0120455Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0121118Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0121492Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0121868Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0122293Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0122810Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0124454Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0125596Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0126132Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0127893Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0128407Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0128712Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0129207Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0131196Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0131730Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0133576Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0134042Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0134603Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0136675Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0137291Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0139210Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0139693Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0140035Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0140556Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0142485Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0143102Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0144958Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0145425Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0145896Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0147932Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0148482Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0150449Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0150942Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0151271Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0151519Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0152697Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0152959Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0153289Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0153630Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0154020Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0154378Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0155087Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0155752Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0156118Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0156520Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0157994Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0158346Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0158682Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0159753Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0160087Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0160701Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0161267Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0161616Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0162886Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0163251Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0163681Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0163925Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0164202Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0164555Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0164739Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0164926Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0165112Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0165324Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0165777Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0165955Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0166079Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0166106Z 2023-01-11T21:03:40.0166436Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.0166694Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0167004Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0167485Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0167736Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0168166Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0168378Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0168691Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0169366Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0169700Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0169984Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0170275Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0171163Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0171467Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0171796Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0172764Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0173096Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0174206Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0174632Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0174819Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0175768Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0176001Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0176200Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0176590Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0176772Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0176966Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0177155Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0177477Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0177957Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0178135Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0178273Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0178283Z 2023-01-11T21:03:40.0180826Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.0180928Z ================== 2023-01-11T21:03:40.0181036Z ================== 2023-01-11T21:03:40.0181284Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0181543Z  Write of size 4 at 0x7b8800014764 by thread T1: 2023-01-11T21:03:40.0184685Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:40.0185066Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0185378Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0185812Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0186222Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0186660Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0186866Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0187225Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0187424Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0187432Z 2023-01-11T21:03:40.0187706Z  Previous write of size 4 at 0x7b8800014764 by main thread: 2023-01-11T21:03:40.0190838Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:40.0191292Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0191683Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0192177Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0192664Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0192990Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0193338Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0193691Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.0194044Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0195447Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0195853Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0196217Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0196875Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0197538Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0197893Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0198235Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0199610Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0199959Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0200303Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0201563Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0201970Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0202811Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0203463Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0203880Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0205377Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0205734Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0206209Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0206501Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0206811Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0207247Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0207430Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0207615Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0207817Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0208069Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0208616Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0208813Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0208967Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0208977Z 2023-01-11T21:03:40.0209382Z  Location is heap block of size 6048 at 0x7b8800013800 allocated by main thread: 2023-01-11T21:03:40.0209715Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0209929Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0210193Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0210537Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0211323Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0211777Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0212232Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0212688Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0213242Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0215186Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0216273Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0216793Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0218689Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0219153Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0219474Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0219937Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0221878Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0222425Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0224371Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0224945Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0225389Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0227545Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0228102Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0230095Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0230627Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0230993Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0231516Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0233564Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0234092Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0236128Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0236601Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0237065Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0239250Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0239828Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0241841Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0242356Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0242679Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0242926Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0244169Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0244440Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0244783Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0245121Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0245542Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0245932Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0246664Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0247372Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0247754Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0248095Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0249524Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0249890Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0250262Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0251578Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0251985Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0252761Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0253501Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0253940Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0255637Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0256023Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0256511Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0256801Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0257125Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0257582Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0257784Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0257978Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0258192Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0258455Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0259027Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0259237Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0259393Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0259402Z 2023-01-11T21:03:40.0259789Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.0260085Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0260471Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0261042Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0261347Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0261880Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0262228Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0262531Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0263342Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0263737Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0264064Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0264416Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0265407Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0265692Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0266095Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0267335Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0267710Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0269072Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0269383Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0269635Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0270751Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0271078Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0271340Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0271799Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0271998Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0272210Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0272423Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0272673Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0273245Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0273451Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0273606Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0273616Z 2023-01-11T21:03:40.0276853Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.0276981Z ================== 2023-01-11T21:03:40.0277345Z ================== 2023-01-11T21:03:40.0277649Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0277954Z  Write of size 4 at 0x7b8800014768 by thread T1: 2023-01-11T21:03:40.0281133Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:40.0281524Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0281751Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0282028Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0282320Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0282587Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0282731Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0282940Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0283076Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0283085Z 2023-01-11T21:03:40.0283278Z  Previous write of size 4 at 0x7b8800014768 by main thread: 2023-01-11T21:03:40.0285443Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:40.0285712Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0285934Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0286243Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0286533Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0286749Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0286949Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0287174Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.0287387Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0288105Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0288342Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0288564Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0288951Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0289336Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0289551Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0289751Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0290533Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0290767Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0290996Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0291752Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0291977Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0292403Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0292783Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0293021Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0293873Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0294085Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0294466Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0294641Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0294821Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0295123Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0295239Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0295357Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0295477Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0295657Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0295967Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0296072Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0296168Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0296174Z 2023-01-11T21:03:40.0296396Z  Location is heap block of size 6048 at 0x7b8800013800 allocated by main thread: 2023-01-11T21:03:40.0296564Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0296687Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0296850Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0297057Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0297496Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0297767Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0298028Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0298291Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0298613Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0299696Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0300386Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0300685Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0301719Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0301990Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0302174Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0302444Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0303580Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0303939Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0305014Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0305290Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0305557Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0306730Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0307053Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0308183Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0308510Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0308701Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0308995Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0310093Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0310401Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0311466Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0311803Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0312072Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0313240Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0313561Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0314716Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0315017Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0315208Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0315385Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0316079Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0316233Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0316427Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0316626Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0316858Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0317075Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0317457Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0317843Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0318053Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0318251Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0319034Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0319241Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0319446Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0320214Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0320466Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0320890Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0321291Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0321528Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0322382Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0322594Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0322870Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0323046Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0323229Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0323485Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0323599Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0323716Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0323823Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0323970Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0324282Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0324426Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0324519Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0324524Z 2023-01-11T21:03:40.0324741Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.0324934Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0325153Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0325468Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0325640Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0325932Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0326084Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0326274Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0326677Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0326895Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0327081Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0327265Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0327839Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0328000Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0328226Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0328891Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0329099Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0329916Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0330093Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0330237Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0330848Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0330991Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0331140Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0331510Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0331670Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0331854Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0332011Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0332226Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0332735Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0332944Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0333086Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0333094Z 2023-01-11T21:03:40.0335953Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.0336196Z ================== 2023-01-11T21:03:40.0336296Z ================== 2023-01-11T21:03:40.0336593Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0336866Z  Write of size 4 at 0x7b880001476c by thread T1: 2023-01-11T21:03:40.0340449Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:40.0340899Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0341268Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0341730Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0342211Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0342654Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0342884Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0343244Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0343467Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0343475Z 2023-01-11T21:03:40.0343801Z  Previous write of size 4 at 0x7b880001476c by main thread: 2023-01-11T21:03:40.0347582Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:40.0348068Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0348442Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0348892Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0349358Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0349683Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0349972Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0350341Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.0350724Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0352063Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0352473Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0352693Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0353076Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0353459Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0353722Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0353964Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0354845Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0355057Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0355265Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0356006Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0356233Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0356662Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0357043Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0357281Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0358166Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0358415Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0358692Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0358868Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0359037Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0359292Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0359407Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0359528Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0359650Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0359798Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0360110Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0360229Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0360322Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0360328Z 2023-01-11T21:03:40.0360573Z  Location is heap block of size 6048 at 0x7b8800013800 allocated by main thread: 2023-01-11T21:03:40.0360742Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0360856Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0361018Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0361222Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0361663Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0361933Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0362198Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0362462Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0362813Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0363918Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0364546Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0364850Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0365892Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0366165Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0366349Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0366654Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0367824Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0368134Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0369197Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0369484Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0369751Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0370936Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0371285Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0372382Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0372675Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0372867Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0373160Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0374272Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0374712Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0375821Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0376169Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0376546Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0378274Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0378799Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0380762Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0381362Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0381710Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0381972Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0383227Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0383481Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0383801Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0384164Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0384595Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0384993Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0385696Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0386329Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0386720Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0387078Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0388528Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0388967Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0389341Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0390712Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0391127Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0391907Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0392626Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0393020Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0394517Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0394978Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0395505Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0395815Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0396147Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0396609Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0396819Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0397029Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0397227Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0397495Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0398081Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0398294Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0398465Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0398480Z 2023-01-11T21:03:40.0398907Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.0399198Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0399591Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0400099Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0400283Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0400578Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0400731Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0400921Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0401331Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0401552Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0401736Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0401937Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0402496Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0402696Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0402919Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0403611Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0403824Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0404599Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0404775Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0404916Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0405528Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0405673Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0405829Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0406087Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0406204Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0406310Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0406432Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0406578Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0406889Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0407036Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0407129Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0407135Z 2023-01-11T21:03:40.0408819Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.0408894Z ================== 2023-01-11T21:03:40.0409077Z ================== 2023-01-11T21:03:40.0409235Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0409411Z  Write of size 1 at 0x7b680007b3d8 by thread T3: 2023-01-11T21:03:40.0411599Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:40.0411858Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0412083Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0412364Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0412654Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0412920Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0413089Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0413314Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0413447Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0413453Z 2023-01-11T21:03:40.0413658Z  Previous write of size 1 at 0x7b680007b3d8 by main thread: 2023-01-11T21:03:40.0415941Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:40.0416203Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0416424Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0416705Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0416991Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0417183Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0417384Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0417610Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.0417823Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0418600Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.0418907Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.0419108Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0419890Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0420108Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0420367Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0421614Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0421982Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0423349Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0423699Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0424069Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0424479Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0424665Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0424892Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0425081Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0425338Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0425777Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0425967Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0426117Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0426128Z 2023-01-11T21:03:40.0426497Z  Location is heap block of size 1512 at 0x7b680007b000 allocated by main thread: 2023-01-11T21:03:40.0426772Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0426981Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0427283Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0427650Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0428229Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0428674Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0429119Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0429472Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0429936Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0431585Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0432708Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0433211Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0434947Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0435406Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0435688Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.0436885Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.0437195Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.0437459Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.0438792Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0439201Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0440516Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0440731Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0441010Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0441417Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0441605Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0441783Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0441906Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0442054Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0442364Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0442485Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0442579Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0442586Z 2023-01-11T21:03:40.0442809Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.0442977Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0443198Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0443515Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0443687Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0444024Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0444177Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0444366Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0444800Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0445025Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0445210Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0445404Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0445962Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0446124Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0446349Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0447014Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0447224Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0447988Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0448178Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0448307Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0448981Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0449130Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0449282Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0449522Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0449639Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0449758Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0449876Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0450024Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0450339Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0450459Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0450552Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0450557Z 2023-01-11T21:03:40.0452221Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.0452294Z ================== 2023-01-11T21:03:40.0452359Z ================== 2023-01-11T21:03:40.0452525Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0452704Z  Write of size 1 at 0x7b680007b3de by thread T3: 2023-01-11T21:03:40.0455036Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:40.0455389Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0455615Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0455895Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0456185Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0456453Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0456597Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0456820Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0456959Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0456965Z 2023-01-11T21:03:40.0457156Z  Previous write of size 1 at 0x7b680007b3de by main thread: 2023-01-11T21:03:40.0459314Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:40.0459574Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0459795Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0460106Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0460422Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0460616Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0460817Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0461041Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.0461256Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0462039Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.0462253Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.0462453Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0463249Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0463453Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0463659Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0464467Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0464759Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0465617Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0465840Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0466024Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0466268Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0466386Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0466505Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0466625Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0466804Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0467142Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0467314Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0467413Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0467420Z 2023-01-11T21:03:40.0467749Z  Location is heap block of size 1512 at 0x7b680007b000 allocated by main thread: 2023-01-11T21:03:40.0467948Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0468092Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0468323Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0468648Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0469393Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0469855Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0470264Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0470722Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0471253Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0472988Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0474007Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0474450Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0476246Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0476780Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0477120Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.0478007Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.0478225Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.0478452Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.0479384Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0479705Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0480669Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0480884Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0481071Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0481366Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0481573Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0481740Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0481863Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0482010Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0482353Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0482473Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0482581Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0482590Z 2023-01-11T21:03:40.0482926Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.0483157Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0483379Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0483697Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0483872Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0484165Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0484359Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0484655Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0485075Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0485295Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0485480Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0485775Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0486467Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0486649Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0486873Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0487536Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0487810Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0488573Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0488766Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0488896Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0489517Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0489666Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0489819Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0490060Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0490174Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0490290Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0490410Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0490557Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0490870Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0490989Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0491082Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0491089Z 2023-01-11T21:03:40.0492756Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.0492855Z ================== 2023-01-11T21:03:40.0493045Z ================== 2023-01-11T21:03:40.0493218Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0493393Z  Write of size 1 at 0x7b680007b3df by thread T3: 2023-01-11T21:03:40.0495641Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:40.0495922Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0496145Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0496430Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0496716Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0496984Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0497127Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0497351Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0497474Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0497480Z 2023-01-11T21:03:40.0497669Z  Previous write of size 1 at 0x7b680007b3df by main thread: 2023-01-11T21:03:40.0499869Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:40.0500162Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0500384Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0500666Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0500950Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0501142Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0501343Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0501570Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.0501779Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0502556Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.0502770Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.0503000Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0503816Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0504017Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0504224Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0505047Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0505288Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0506141Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0506346Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0506532Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0506785Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0506899Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0507016Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0507135Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0507307Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0507617Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0507734Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0507815Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0507857Z 2023-01-11T21:03:40.0508083Z  Location is heap block of size 1512 at 0x7b680007b000 allocated by main thread: 2023-01-11T21:03:40.0508247Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0508371Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0508530Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0508739Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0509177Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0509441Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0509702Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0509966Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0510288Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0511368Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0511989Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0512341Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0513385Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0513655Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0513831Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.0514513Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.0514754Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.0514965Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.0515775Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0516047Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0516939Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0517150Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0517333Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0517586Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0517701Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0517808Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0517928Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0518077Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0518388Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0518507Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0518599Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0518605Z 2023-01-11T21:03:40.0518820Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.0518984Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0519202Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0519518Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0519694Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0519986Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0520140Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0520329Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0520733Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0520970Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0521154Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0521385Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0521949Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0522125Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0522337Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0523016Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0523227Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0523997Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0524174Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0524317Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0524929Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0525073Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0525247Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0525500Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0525612Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0525730Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0525875Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0526022Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0526332Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0526437Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0526532Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0526538Z 2023-01-11T21:03:40.0528192Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.0528276Z ================== 2023-01-11T21:03:40.0528328Z ================== 2023-01-11T21:03:40.0528494Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0528717Z  Write of size 1 at 0x7b680007b3ef by thread T3: 2023-01-11T21:03:40.0530881Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:40.0531211Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0531608Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0532036Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0532568Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0533057Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0533315Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0533734Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0534000Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0534008Z 2023-01-11T21:03:40.0534428Z  Previous write of size 1 at 0x7b680007b3ef by main thread: 2023-01-11T21:03:40.0538514Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:40.0539015Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0539464Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0540024Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0540605Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0541034Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0541537Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0541951Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.0542420Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0543812Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.0544257Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.0544704Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0546214Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0546635Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0547047Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0548398Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0548677Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0549689Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0549940Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0550155Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0550436Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0550543Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0550764Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0550986Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0551405Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0551944Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0552170Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0552356Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0552370Z 2023-01-11T21:03:40.0552828Z  Location is heap block of size 1512 at 0x7b680007b000 allocated by main thread: 2023-01-11T21:03:40.0553139Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0553379Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0553630Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0554036Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0554916Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0555513Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0556006Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0556491Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0557097Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0559016Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0560190Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0560815Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0562738Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0573377Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0573708Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.0575042Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.0575360Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.0575673Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.0576835Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0577183Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0578454Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0578758Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0579037Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0579418Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0579588Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0579747Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0579921Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0580137Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0580603Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0580858Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0581009Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0581017Z 2023-01-11T21:03:40.0581386Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.0581637Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0582007Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0582481Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0582728Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0583147Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0583381Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0583635Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0584228Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0584556Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0584823Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0585111Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0585924Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0586156Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0586487Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0587453Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0587727Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0588869Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0589174Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0589370Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0590273Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0590487Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0590717Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0591088Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0591243Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0591414Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0591578Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0591798Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0592244Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0592437Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0592573Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0592581Z 2023-01-11T21:03:40.0595210Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.0595317Z ================== 2023-01-11T21:03:40.0595559Z ================== 2023-01-11T21:03:40.0595828Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0596162Z  Write of size 1 at 0x7b68000807d8 by main thread: 2023-01-11T21:03:40.0600144Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:40.0600601Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0600980Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0601454Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0601949Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0602278Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0602616Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0602998Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.0603363Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0604602Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0605005Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0605418Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0606105Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0606758Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0607112Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0607442Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0608817Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0609173Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0609519Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0610814Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0611196Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0612001Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0612658Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0613133Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0614845Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0615221Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0615699Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0615998Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0616308Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0616739Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0616928Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0617110Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0617309Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0617557Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0618090Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0618298Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0618454Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0618465Z 2023-01-11T21:03:40.0618794Z  Previous write of size 1 at 0x7b68000807d8 by thread T2: 2023-01-11T21:03:40.0622606Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:40.0623147Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0623523Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0623997Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0624498Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0624955Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0625189Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0625564Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0625791Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0625799Z 2023-01-11T21:03:40.0626171Z  Location is heap block of size 1512 at 0x7b6800080400 allocated by main thread: 2023-01-11T21:03:40.0626451Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0626654Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0626925Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0627285Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0628069Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0628549Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0629024Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0629498Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0630074Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0632087Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0633235Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0633711Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0635191Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0635586Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0635871Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0636260Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0638017Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0638438Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0639960Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0640345Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0640732Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0642443Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0642993Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0644669Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0645144Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0645439Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0645868Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0647463Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0647892Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0649548Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0649967Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0650365Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0652116Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0652606Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0654296Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0654884Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0655180Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0655388Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0656382Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0656602Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0656886Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0657175Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0657503Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0657821Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0658370Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0658927Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0659239Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0659513Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0660722Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0661074Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0661365Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0662440Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0662781Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0663405Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0663957Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0664299Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0665520Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0665830Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0666238Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0666582Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0666904Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0667392Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0667600Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0667774Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0667973Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0668223Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0668760Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0668965Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0669123Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0669132Z 2023-01-11T21:03:40.0669533Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.0669826Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0670190Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0670726Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0671020Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0671510Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0671774Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0672100Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0672789Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0673169Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0673483Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0673821Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0674839Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0675187Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0675576Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0676755Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0677107Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0678422Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0678723Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0678979Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0680042Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0680294Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0680543Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0680982Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0681178Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0681376Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0681578Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0681843Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0682398Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0682580Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0682735Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0682781Z 2023-01-11T21:03:40.0685792Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.0685936Z ================== 2023-01-11T21:03:40.0686210Z ================== 2023-01-11T21:03:40.0686499Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0686792Z  Write of size 1 at 0x7b68000807d9 by thread T2: 2023-01-11T21:03:40.0690599Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:40.0691031Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0691390Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0691869Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0692364Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0692815Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0693052Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0693482Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0693705Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0693715Z 2023-01-11T21:03:40.0694040Z  Previous write of size 1 at 0x7b68000807d9 by main thread: 2023-01-11T21:03:40.0698044Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:40.0698514Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0698912Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0699418Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0699945Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0700241Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0700564Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0700969Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.0701342Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0702660Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0703156Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0703534Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0704245Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0704948Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0705334Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0705701Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0706977Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0707265Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0707563Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0708620Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0708946Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0709559Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0710206Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0710596Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0711849Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0712165Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0712556Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0712819Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0713071Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0713436Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0713595Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0713762Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0713947Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0714161Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0714652Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0714840Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0714984Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0714993Z 2023-01-11T21:03:40.0715342Z  Location is heap block of size 1512 at 0x7b6800080400 allocated by main thread: 2023-01-11T21:03:40.0715600Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0715790Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0716025Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0716288Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0717026Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0717573Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0717969Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0718361Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0718853Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0720408Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0721349Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0721794Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0723322Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0723777Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0724061Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0724470Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0726210Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0726673Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0728228Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0728701Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0729106Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0730855Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0731334Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0732903Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0733317Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0733593Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0734012Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0735815Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0736276Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0737799Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0738204Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0738598Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0740600Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0741261Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0743128Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0743620Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0743948Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0744197Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0745362Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0745619Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0745938Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0746282Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0746684Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0747049Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0747690Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0748421Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0748773Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0749106Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0750445Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0750793Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0751150Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0752449Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0752835Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0753572Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0754245Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0754699Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0756271Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0756630Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0757101Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0757393Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0757705Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0758158Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0758351Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0758533Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0758743Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0758987Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0759513Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0759713Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0759873Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0759886Z 2023-01-11T21:03:40.0760277Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.0760574Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0760942Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0761493Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0761785Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0762290Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0762548Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0762873Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0763637Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0763980Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0764300Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0764665Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0765641Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0765919Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0766305Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0767451Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0767815Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0769115Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0769405Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0769645Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0770592Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0770826Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0771010Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0771304Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0771436Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0771617Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0771747Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0771984Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0772301Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0772422Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0772503Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0772509Z 2023-01-11T21:03:40.0774189Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.0774263Z ================== 2023-01-11T21:03:40.0774315Z ================== 2023-01-11T21:03:40.0774606Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0774781Z  Write of size 1 at 0x7b68000807e2 by thread T2: 2023-01-11T21:03:40.0776942Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:40.0777216Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0777503Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0777819Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0778115Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0778380Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0778525Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0778747Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0778871Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0778891Z 2023-01-11T21:03:40.0779067Z  Previous write of size 1 at 0x7b68000807e2 by main thread: 2023-01-11T21:03:40.0781211Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:40.0781467Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0781688Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0781972Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0782260Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0782482Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0782683Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0782908Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.0783144Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0783854Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0784096Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0784314Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0784697Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0785086Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0785298Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0785496Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0786285Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0786489Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0786692Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0787501Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0787725Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0788155Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0788537Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0788775Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0789632Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0789841Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0790118Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0790291Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0790474Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0790727Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0790840Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0790959Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0791079Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0791254Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0791563Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0791679Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0791759Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0791804Z 2023-01-11T21:03:40.0792014Z  Location is heap block of size 1512 at 0x7b6800080400 allocated by main thread: 2023-01-11T21:03:40.0792182Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0792305Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0792464Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0792671Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0793113Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0793386Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0793648Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0793913Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0794237Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0795375Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0795998Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0796362Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0797406Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0797680Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0797866Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0798140Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0799271Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0799594Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0801332Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0801820Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0802255Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0804343Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0804921Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0806869Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0807462Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0807768Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0808280Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0810128Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0810458Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0811520Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0811796Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0812106Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0813307Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0813630Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0814966Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0815259Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0815451Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0815602Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0816375Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0816579Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0816827Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0817028Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0817260Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0817475Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0817862Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0818250Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0818463Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0818664Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0819459Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0819662Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0819864Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0820609Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0820857Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0821308Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0821690Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0821927Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0823004Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0823334Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0823775Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0824080Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0824397Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0824849Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0825063Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0825277Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0825493Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0825747Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0826318Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0826536Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0826699Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0826711Z 2023-01-11T21:03:40.0827136Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.0827488Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0827863Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0828420Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0828759Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0829307Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0829581Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0829938Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0830692Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0831115Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0831348Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0831546Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0832102Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0832268Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0832490Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0833152Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0833377Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0834137Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0834346Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0834517Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0835186Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0835335Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0835485Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0835742Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0835862Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0835981Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0836087Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0836234Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0836547Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0836666Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0836757Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0836763Z 2023-01-11T21:03:40.0838839Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.0838955Z ================== 2023-01-11T21:03:40.0839067Z ================== 2023-01-11T21:03:40.0839351Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0839645Z  Write of size 1 at 0x7b68000807ef by thread T2: 2023-01-11T21:03:40.0843554Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:40.0843852Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0844074Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0844358Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0844647Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0844916Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0845056Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0845285Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0845423Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0845429Z 2023-01-11T21:03:40.0845620Z  Previous write of size 1 at 0x7b68000807ef by main thread: 2023-01-11T21:03:40.0847770Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:40.0848081Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0848329Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0848612Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0848905Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0849084Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0849287Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0849512Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.0849724Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0850453Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0850691Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0850906Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0851290Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0851674Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0851885Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0852115Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0852924Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0853130Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0853334Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0854079Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0854302Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0854970Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0855370Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0855613Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0856468Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0856729Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0857006Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0857215Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0857400Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0857655Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0857776Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0857897Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0858019Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0858154Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0858469Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0858589Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0858682Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0858687Z 2023-01-11T21:03:40.0858915Z  Location is heap block of size 1512 at 0x7b6800080400 allocated by main thread: 2023-01-11T21:03:40.0859083Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0859211Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0859373Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0859577Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0860019Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0860285Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0860552Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0860815Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0861139Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0862235Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0862903Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0863205Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0864227Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0864515Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0864699Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0864969Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0866128Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0866461Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0867536Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0867815Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0868083Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0869256Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0869608Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0870720Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0871023Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0871217Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0871509Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0872603Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0872910Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0874016Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0874317Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0874653Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0875833Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0876151Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0877235Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0877603Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0877799Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0877934Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0878624Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0878779Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0878974Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0879175Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0879397Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0879615Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0879999Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0880393Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0880604Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0880802Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0881587Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0881818Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0882047Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0882792Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0883017Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0883444Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0883827Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0884065Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0884927Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0885139Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0885411Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0885583Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0885796Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0886045Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0886159Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0886266Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0886408Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0886557Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0886869Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0886985Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0887081Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0887086Z 2023-01-11T21:03:40.0887308Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.0887476Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0887696Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0888015Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0888189Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0888480Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0888635Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0888891Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0889571Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0889929Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0890240Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0890548Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0891528Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0891794Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0892212Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0893482Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0893838Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0895255Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0895518Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0895710Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0896659Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0896902Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0897145Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0897500Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0897692Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0897879Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0898057Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0898293Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0898748Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0898927Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0899065Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0899074Z 2023-01-11T21:03:40.0901905Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.0902084Z ================== 2023-01-11T21:03:40.0902326Z ================== 2023-01-11T21:03:40.0902603Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0902911Z  Write of size 1 at 0x7b680007b3dc by main thread: 2023-01-11T21:03:40.0906259Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:40.0906554Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0906866Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0907151Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0907660Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0908011Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0908283Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0908511Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:40.0908722Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0909594Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.0909810Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.0910017Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0910816Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0911023Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0911230Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0912144Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0912526Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0913817Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0914230Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0914477Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0914940Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0915163Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0915389Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0915606Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0915874Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0916466Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0916667Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0916835Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0916846Z 2023-01-11T21:03:40.0917212Z  Previous write of size 1 at 0x7b680007b3dc by thread T1: 2023-01-11T21:03:40.0920633Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:40.0920898Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0921124Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0921410Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0921698Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0922007Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0922148Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0922397Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0922538Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0922544Z 2023-01-11T21:03:40.0922768Z  Location is heap block of size 1512 at 0x7b680007b000 allocated by main thread: 2023-01-11T21:03:40.0922937Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0923063Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0923209Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0923413Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0923858Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0924144Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0924415Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0924680Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0925007Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0926082Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0926778Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0927083Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0928112Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0928385Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0928560Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.0929248Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.0929440Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.0929631Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.0930450Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.0930746Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.0931602Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0931814Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0931999Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.0932253Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0932374Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0932492Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0932613Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0932761Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0933073Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0933192Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0933286Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0933292Z 2023-01-11T21:03:40.0933492Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.0933656Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.0933874Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.0934193Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.0934473Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.0934770Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.0934921Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.0935113Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.0935577Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.0935797Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.0936019Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.0936218Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.0936780Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.0936944Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.0937170Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.0937832Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.0938043Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.0938819Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.0938998Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.0939140Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.0939756Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.0939932Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.0940082Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.0940335Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0940464Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0940584Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0940701Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0940849Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0941159Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0941278Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0941369Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0941375Z 2023-01-11T21:03:40.0943033Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:40.0943105Z ================== 2023-01-11T21:03:40.0943170Z ================== 2023-01-11T21:03:40.0943337Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.0943515Z  Write of size 1 at 0x7b68000813d8 by thread T3: 2023-01-11T21:03:40.0945679Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:40.0945968Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0946186Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0946495Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0946781Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0947047Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.0947187Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.0947411Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.0947549Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.0947555Z 2023-01-11T21:03:40.0947740Z  Previous write of size 1 at 0x7b68000813d8 by main thread: 2023-01-11T21:03:40.0950930Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:40.0951397Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.0951786Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.0952261Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.0952805Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.0953201Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.0953571Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.0954029Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:40.0954435Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.0955724Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.0956158Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.0956560Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0957274Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0957987Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0958348Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0958714Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0960122Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0960495Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0960895Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0962267Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0962666Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0963433Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.0964081Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.0964547Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.0966088Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.0966473Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.0966977Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.0967273Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.0967582Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.0968047Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.0968231Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.0968487Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.0968690Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.0968941Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.0969505Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.0969759Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.0969920Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.0969928Z 2023-01-11T21:03:40.0970315Z  Location is heap block of size 1512 at 0x7b6800081000 allocated by main thread: 2023-01-11T21:03:40.0970596Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.0970814Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.0971109Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.0971457Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.0972238Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.0972726Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.0973188Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.0973651Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.0974230Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.0976320Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.0977557Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.0978162Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.0980101Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.0980587Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.0980778Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.0981148Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.0982300Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.0982609Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0983730Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0984023Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0984289Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0985443Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0985764Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0986887Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0987197Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0987388Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0987683Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.0988794Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.0989102Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.0990161Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.0990476Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.0990739Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.0991957Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.0992278Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.0993380Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.0993666Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.0993859Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.0994006Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.0994745Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.0994944Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.0995163Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.0995365Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.0995597Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.0995813Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.0996195Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.0996580Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.0996793Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.0996992Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.0997772Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.0997979Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.0998183Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.0998938Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.0999188Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.0999639Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1000023Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1000259Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1001114Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1001323Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1001598Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1001771Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1001952Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1002205Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1002321Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1002439Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1002559Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1002708Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1003018Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1003135Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1003215Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1003260Z 2023-01-11T21:03:40.1003480Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.1003648Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1003865Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1004204Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1004377Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1004672Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1004826Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1005015Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1005421Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1005643Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1005825Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1006018Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1006582Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1006745Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1006967Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1007797Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1008120Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1009361Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1009824Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1010031Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1011146Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1011397Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1011653Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1012101Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1012306Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1012511Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1012713Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1012975Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1013545Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1013744Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1013906Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1013920Z 2023-01-11T21:03:40.1017247Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:40.1017368Z ================== 2023-01-11T21:03:40.1017482Z ================== 2023-01-11T21:03:40.1017781Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1018089Z  Write of size 1 at 0x7b68000813dc by thread T3: 2023-01-11T21:03:40.1022194Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:40.1022726Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1023131Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1023650Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1024177Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1024652Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1024904Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1025319Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1025542Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1025553Z 2023-01-11T21:03:40.1025903Z  Previous write of size 1 at 0x7b68000813dc by main thread: 2023-01-11T21:03:40.1029941Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:40.1030496Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1030901Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1031429Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1031963Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1032318Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1032675Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1033049Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:40.1033406Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1034763Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1035185Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1035594Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1036254Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1036987Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1037388Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1037794Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1039300Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1039681Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1040061Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1041141Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1041369Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1041795Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1042183Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1042426Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1043301Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1043554Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1043856Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1044034Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1044219Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1044475Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1044593Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1044698Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1044820Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1044969Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1045282Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1045402Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1045497Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1045504Z 2023-01-11T21:03:40.1045733Z  Location is heap block of size 1512 at 0x7b6800081000 allocated by main thread: 2023-01-11T21:03:40.1045905Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1046032Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1046193Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1046387Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1046848Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1047117Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1047385Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1047652Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1047973Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1049069Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1049737Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1050038Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1051067Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1051341Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1051533Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1051803Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1052981Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1053315Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1054515Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1054896Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1055162Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1056326Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1056739Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1057832Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1058121Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1058320Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1058617Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1059732Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1060039Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1061160Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1061437Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1061708Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1062862Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1063197Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1064285Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1064622Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1064814Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1064961Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1065638Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1065793Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1065991Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1066193Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1066431Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1066650Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1067036Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1067423Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1067638Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1067840Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1068639Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1068900Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1069109Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1069851Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1070078Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1070506Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1070890Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1071130Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1071987Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1072213Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1072488Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1072700Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1072867Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1073123Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1073241Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1073389Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1073513Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1073661Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1073974Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1074094Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1074188Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1074194Z 2023-01-11T21:03:40.1074420Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.1074654Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1074889Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1075388Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1075696Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1076227Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1076503Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1076845Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1077551Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1077843Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1078098Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1078377Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1079187Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1079413Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1079742Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1080860Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1081180Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1082296Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1082546Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1082757Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1083634Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1083865Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1084085Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1084460Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1084636Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1084819Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1084994Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1085210Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1085650Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1085836Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1085965Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1085990Z 2023-01-11T21:03:40.1088696Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:40.1088830Z ================== 2023-01-11T21:03:40.1089026Z ================== 2023-01-11T21:03:40.1089284Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1089539Z  Write of size 1 at 0x7b68000813dd by thread T3: 2023-01-11T21:03:40.1092759Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:40.1093147Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1093469Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1093866Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1094284Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1094828Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1095053Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1095412Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1095715Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1095725Z 2023-01-11T21:03:40.1096026Z  Previous write of size 1 at 0x7b68000813dd by main thread: 2023-01-11T21:03:40.1099294Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:40.1099699Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1099994Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1100395Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1100818Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1101109Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1101462Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1101859Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:40.1102225Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1103457Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1103876Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1104244Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1104934Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1105592Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1105952Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1106292Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1107661Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1108016Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1108376Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1109629Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1110013Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1110717Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1111436Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1111878Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1113378Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1113740Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1114213Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1114507Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1114883Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1115309Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1115502Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1115702Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1115904Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1116138Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1116661Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1116857Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1117016Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1117026Z 2023-01-11T21:03:40.1117415Z  Location is heap block of size 1512 at 0x7b6800081000 allocated by main thread: 2023-01-11T21:03:40.1117691Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1117897Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1118168Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1118507Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1119265Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1119775Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1120264Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1120703Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1121254Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1123157Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1124287Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1124770Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1126162Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1126671Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1126956Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1127360Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1129008Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1129446Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1130989Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1131397Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1131839Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1133665Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1134172Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1135954Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1136412Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1136711Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1137137Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1138853Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1139361Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1140959Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1141414Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1141831Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1143580Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1144142Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1145756Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1146216Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1146517Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1146745Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1147977Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1148223Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1148560Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1148891Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1149290Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1149643Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1150301Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1151013Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1151412Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1151753Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1153120Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1153478Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1153832Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1155177Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1155544Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1156263Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1156921Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1157331Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1158883Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1159269Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1159741Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1160038Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1160343Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1160764Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1160953Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1161136Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1161339Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1161586Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1162110Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1162304Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1162457Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1162468Z 2023-01-11T21:03:40.1162866Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.1163149Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1163517Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1164047Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1164338Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1164841Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1165106Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1165431Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1166116Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1166534Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1166846Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1167170Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1168165Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1168471Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1168863Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1170062Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1170429Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1171837Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1172137Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1172368Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1173235Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1173452Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1173672Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1174121Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1174284Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1174556Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1174746Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1175053Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1175542Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1175721Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1175868Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1175882Z 2023-01-11T21:03:40.1178426Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:40.1178552Z ================== 2023-01-11T21:03:40.1178777Z ================== 2023-01-11T21:03:40.1179046Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1179308Z  Write of size 2 at 0x7b780000d3b0 by thread T2: 2023-01-11T21:03:40.1182700Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:40.1183102Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1183530Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1183947Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1184419Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1184823Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1185036Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1185371Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1185581Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1185591Z 2023-01-11T21:03:40.1185881Z  Previous write of size 2 at 0x7b780000d3b0 by main thread: 2023-01-11T21:03:40.1189321Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:40.1189719Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1190050Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1190482Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1190918Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1191182Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1191590Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1191904Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.1192225Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1193419Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.1193805Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.1194150Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1195638Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1195989Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1196337Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1197756Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.1198170Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.1199716Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1200104Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1200428Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.1200869Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1201057Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1201262Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1201451Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1201699Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1202236Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1202435Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1202586Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1202595Z 2023-01-11T21:03:40.1202994Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2023-01-11T21:03:40.1203278Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1203492Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1203765Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1204113Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1204879Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1205348Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1205809Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1206256Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1206818Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1208742Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1209828Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1210334Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1212104Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1212594Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1212884Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.1214052Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.1214575Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.1214928Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.1216408Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.1216815Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.1218367Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1218741Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1219037Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.1219402Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1219544Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1219715Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1219887Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1220107Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1220560Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1220731Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1220942Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1220950Z 2023-01-11T21:03:40.1221301Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.1221557Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1221866Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1222375Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1222635Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1223046Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1223255Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1223530Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1224130Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1224453Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1224719Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1224992Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1225817Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1226055Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1226392Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1227425Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1227761Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1228973Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1229269Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1229474Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1230360Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1230564Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1230778Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1231138Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1231298Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1231471Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1231638Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1231849Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1232302Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1232476Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1232612Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1232619Z 2023-01-11T21:03:40.1235315Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.1235421Z ================== 2023-01-11T21:03:40.1235524Z ================== 2023-01-11T21:03:40.1235781Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1236046Z  Write of size 2 at 0x7b780000d3b4 by thread T2: 2023-01-11T21:03:40.1239307Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:40.1239696Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1240024Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1240442Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1240878Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1241328Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1241571Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1241964Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1242194Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1242207Z 2023-01-11T21:03:40.1242519Z  Previous write of size 2 at 0x7b780000d3b4 by main thread: 2023-01-11T21:03:40.1246302Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:40.1246859Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1247232Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1247709Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1248213Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1248546Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1248887Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1249273Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.1249628Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1250984Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.1251347Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.1251688Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1253074Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1253467Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1253822Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1255403Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.1255834Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.1257301Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1257666Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1257974Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.1258411Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1258601Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1258799Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1259011Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1259245Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1259789Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1259987Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1260138Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1260148Z 2023-01-11T21:03:40.1260536Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2023-01-11T21:03:40.1260816Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1261020Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1261351Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1261698Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1262517Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1263004Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1263486Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1263950Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1264512Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1266445Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1267610Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1268160Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1270064Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1270583Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1270879Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.1272147Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.1272465Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.1272812Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.1274296Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.1274803Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.1276382Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1276850Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1277169Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.1277627Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1277812Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1278024Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1278235Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1278501Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1279065Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1279267Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1279415Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1279426Z 2023-01-11T21:03:40.1279828Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.1280124Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1280508Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1281081Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1281371Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1281887Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1282141Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1282485Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1283251Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1283630Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1283951Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1284300Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1285320Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1285664Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1286090Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1287319Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1287688Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1289079Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1289395Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1289648Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1290743Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1291002Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1291269Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1291731Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1291924Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1292123Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1292282Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1292496Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1292832Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1293006Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1293101Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1293107Z 2023-01-11T21:03:40.1295116Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.1295195Z ================== 2023-01-11T21:03:40.1295374Z ================== 2023-01-11T21:03:40.1295551Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1295729Z  Write of size 2 at 0x7b780000d3ba by thread T2: 2023-01-11T21:03:40.1297885Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:40.1298146Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1298368Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1298649Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1298940Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1299208Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1299389Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1299610Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1299774Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1299780Z 2023-01-11T21:03:40.1299969Z  Previous write of size 2 at 0x7b780000d3ba by main thread: 2023-01-11T21:03:40.1302119Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:40.1302380Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1302603Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1302884Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1303168Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1303363Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1303565Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1303793Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.1304004Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1304817Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.1305170Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.1305527Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1306854Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1307153Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1307451Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1308619Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.1308973Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.1310238Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1310655Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1310904Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.1311286Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1311452Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1311625Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1311814Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1312031Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1312472Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1312651Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1312779Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1312788Z 2023-01-11T21:03:40.1313135Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2023-01-11T21:03:40.1313368Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1313555Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1313793Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1314094Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1314832Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1315243Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1315628Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1316025Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1316469Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1318192Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1319137Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1319582Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1321081Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1321488Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1321747Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.1322741Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.1322995Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.1323300Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.1324601Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.1324990Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.1326260Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1326576Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1326848Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.1327209Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1327396Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1327582Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1327758Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1327965Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1328416Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1328589Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1328702Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1328711Z 2023-01-11T21:03:40.1329064Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.1329310Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1329634Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1330088Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1330401Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1330828Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1331062Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1331381Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1331977Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1332290Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1332560Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1332844Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1333629Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1333870Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1334191Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1335299Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1335631Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1336757Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1337013Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1337303Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1338268Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1338501Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1338727Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1339146Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1339349Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1339556Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1339766Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1340024Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1340570Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1340767Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1340929Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1340939Z 2023-01-11T21:03:40.1343883Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.1344002Z ================== 2023-01-11T21:03:40.1344118Z ================== 2023-01-11T21:03:40.1344403Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1344685Z  Write of size 2 at 0x7b780000d3be by thread T2: 2023-01-11T21:03:40.1348516Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:40.1348990Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1349367Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1349842Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1350337Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1350793Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1351025Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1351407Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1351642Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1351649Z 2023-01-11T21:03:40.1351976Z  Previous write of size 2 at 0x7b780000d3be by main thread: 2023-01-11T21:03:40.1355875Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:40.1356333Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1356765Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1357251Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1357783Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1358113Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1358459Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1358841Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.1359199Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1360554Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.1360937Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.1361263Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1362611Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1362957Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1363305Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1364708Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.1365155Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.1366663Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1367028Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1367341Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.1367781Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1367953Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1368144Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1368343Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1368598Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1369129Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1369337Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1369491Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1369503Z 2023-01-11T21:03:40.1369900Z  Location is heap block of size 3024 at 0x7b780000cc00 allocated by main thread: 2023-01-11T21:03:40.1370199Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1370415Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1370665Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1370996Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1371608Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1372059Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1372428Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1372837Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1373278Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1374927Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1375823Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1376233Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1377630Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1378120Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1378377Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.1379325Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.1379599Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.1379895Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.1381055Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.1381390Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.1382701Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1383020Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1383295Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.1383726Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1383901Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1384085Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1384247Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1384451Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1384926Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1385092Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1385214Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1385223Z 2023-01-11T21:03:40.1385563Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.1385800Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1386107Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1386571Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1386815Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1387238Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1387455Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1387721Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1388321Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1388656Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1388941Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1389233Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1390093Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1390328Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1390670Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1391687Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1392030Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1393124Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1393374Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1393567Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1394443Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1394713Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1394940Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1395302Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1395470Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1395631Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1395802Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1396021Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1396460Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1396620Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1396767Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1396777Z 2023-01-11T21:03:40.1399171Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.1399319Z ================== 2023-01-11T21:03:40.1399515Z ================== 2023-01-11T21:03:40.1399761Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1400022Z  Write of size 2 at 0x7b7800011bb0 by thread T1: 2023-01-11T21:03:40.1403121Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:40.1403506Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1403831Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1404233Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1404650Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1405087Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1405337Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1405727Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1405948Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1405957Z 2023-01-11T21:03:40.1406279Z  Previous write of size 2 at 0x7b7800011bb0 by main thread: 2023-01-11T21:03:40.1410150Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:40.1410605Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1410977Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1411445Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1411953Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1412272Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1412621Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1413010Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.1413369Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1414705Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1415100Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1415475Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1416197Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1416901Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1417269Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1417619Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1418984Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1419341Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1419694Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1421009Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1421389Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1422134Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1422800Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1423261Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1424794Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1425151Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1425625Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1425917Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1426234Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1426655Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1426856Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1427055Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1427258Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1427508Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1428049Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1428246Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1428395Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1428405Z 2023-01-11T21:03:40.1428780Z  Location is heap block of size 3024 at 0x7b7800011400 allocated by main thread: 2023-01-11T21:03:40.1429064Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1429274Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1429535Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1429865Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1430622Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1431069Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1431555Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1432040Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1432599Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1434465Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1435611Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1436134Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1437822Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1438320Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1438633Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1439018Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1440665Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1441109Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1442646Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1443065Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1443433Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1445134Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1445591Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1447178Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1447579Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1447899Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1448357Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1450044Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1450526Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1452006Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1452420Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1452817Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1454566Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1455076Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1456883Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1457326Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1457601Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1457815Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1458788Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1459008Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1459275Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1459560Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1459891Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1460204Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1460745Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1461298Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1461661Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1461943Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1463087Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1463389Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1463689Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1464705Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1465037Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1465636Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1466206Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1466555Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1467751Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1468119Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1468514Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1468747Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1469026Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1469372Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1469543Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1469727Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1469881Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1470088Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1470546Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1470720Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1470866Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1470891Z 2023-01-11T21:03:40.1471284Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.1471581Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1471968Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1472488Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1472789Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1473295Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1473553Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1473875Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1474668Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1475050Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1475358Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1475743Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1476746Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1477023Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1477395Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1478562Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1478919Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1480237Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1480552Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1480774Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1481817Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1482069Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1482328Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1482751Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1483003Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1483199Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1483403Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1483655Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1484234Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1484438Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1484590Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1484601Z 2023-01-11T21:03:40.1487582Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.1487704Z ================== 2023-01-11T21:03:40.1487954Z ================== 2023-01-11T21:03:40.1488246Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1488541Z  Write of size 2 at 0x7b7800011bb2 by thread T1: 2023-01-11T21:03:40.1492322Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:40.1492789Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1493168Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1493647Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1494180Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1494806Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1495047Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1495420Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1495625Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1495634Z 2023-01-11T21:03:40.1495955Z  Previous write of size 2 at 0x7b7800011bb2 by main thread: 2023-01-11T21:03:40.1499745Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:40.1500174Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1500542Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1501014Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1501510Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1501830Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1502191Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1502598Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.1503023Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1504057Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1504411Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1504715Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1505244Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1505811Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1506119Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1506408Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1507546Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1507839Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1508110Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1509167Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1509543Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1510179Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1510709Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1511050Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1512274Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1512579Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1512972Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1513192Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1513490Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1513900Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1514079Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1514259Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1514431Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1514740Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1515206Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1515379Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1515562Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1515591Z 2023-01-11T21:03:40.1515922Z  Location is heap block of size 3024 at 0x7b7800011400 allocated by main thread: 2023-01-11T21:03:40.1516165Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1516347Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1516585Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1516911Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1517555Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1517932Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1518312Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1518682Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1519158Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1520741Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1521716Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1522233Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1523785Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1524169Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1524441Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1524826Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1526467Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1526924Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1528495Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1528915Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1529292Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1530961Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1531409Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1532980Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1533466Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1533726Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1534183Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1535850Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1536314Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1538218Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1538694Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1539157Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1541250Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1541837Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1543744Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1544234Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1544560Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1544814Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1545963Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1546213Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1546540Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1546918Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1547323Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1547732Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1548391Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1549058Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1549422Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1549770Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1551141Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1551486Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1551846Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1553145Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1553539Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1554267Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1555089Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1555496Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1556967Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1557324Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1557793Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1558096Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1558402Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1558843Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1559035Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1559233Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1559430Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1559677Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1560208Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1560389Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1560545Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1560556Z 2023-01-11T21:03:40.1560945Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.1561236Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1561597Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1562120Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1562440Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1562931Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1563228Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1563561Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1564265Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1564641Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1564957Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1565287Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1566243Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1566522Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1566918Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1568119Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1568475Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1569847Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1570162Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1570471Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1571603Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1571862Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1572117Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1572552Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1572753Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1572961Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1573176Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1573438Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1573976Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1574183Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1574469Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1574478Z 2023-01-11T21:03:40.1577564Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.1577682Z ================== 2023-01-11T21:03:40.1577795Z ================== 2023-01-11T21:03:40.1578079Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1578370Z  Write of size 2 at 0x7b7800011bb4 by thread T1: 2023-01-11T21:03:40.1582484Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:40.1582990Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1583362Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1583858Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1584382Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1584834Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1585082Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1585483Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1585712Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1585721Z 2023-01-11T21:03:40.1586044Z  Previous write of size 2 at 0x7b7800011bb4 by main thread: 2023-01-11T21:03:40.1589613Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:40.1589876Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1590164Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1590442Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1590757Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1590948Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1591147Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1591372Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.1591582Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1592295Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1592566Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1592782Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1593162Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1593544Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1593755Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1593956Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1594843Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1595105Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1595311Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1596054Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1596275Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1596701Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1597083Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1597321Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1598173Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1598397Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1598709Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1598908Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1599076Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1599327Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1609604Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1609788Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1609918Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1610073Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1610391Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1610513Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1610592Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1610600Z 2023-01-11T21:03:40.1610855Z  Location is heap block of size 3024 at 0x7b7800011400 allocated by main thread: 2023-01-11T21:03:40.1611023Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1611151Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1611313Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1611522Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1611965Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1612235Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1612500Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1612765Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1613095Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1614174Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1615158Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1615470Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1616509Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1616783Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1616968Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1617242Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1618375Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1618755Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1619815Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1620090Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1620358Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1621530Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1621849Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1623106Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1623399Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1623593Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1623890Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1625006Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1625317Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1626421Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1626720Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1626984Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1628138Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1628472Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1629551Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1629842Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1630071Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1630220Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1630916Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1631074Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1631268Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1631466Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1631699Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1631918Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1632302Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1632689Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1632903Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1633101Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1633898Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1634102Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1634305Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1635194Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1635421Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1635847Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1636235Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1636476Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1637331Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1637553Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1637832Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1638006Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1638176Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1638430Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1638545Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1638664Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1638813Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1638961Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1639273Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1639390Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1639508Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1639514Z 2023-01-11T21:03:40.1639746Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.1639913Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1640117Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1640436Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1640608Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1640911Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1641062Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1641255Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1641658Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1641878Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1642062Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1642260Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1642821Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1642984Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1643208Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1643873Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1644115Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1644912Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1645090Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1645231Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1646030Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1646284Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1646551Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1647008Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1647205Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1647398Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1647632Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1647893Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1648463Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1648669Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1648825Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1648834Z 2023-01-11T21:03:40.1651307Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.1651482Z ================== 2023-01-11T21:03:40.1651570Z ================== 2023-01-11T21:03:40.1651825Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1652092Z  Write of size 2 at 0x7b7800011bb6 by thread T1: 2023-01-11T21:03:40.1655489Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:40.1655896Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1656231Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1656653Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1657085Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1657496Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1657712Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1658039Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1658242Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1658250Z 2023-01-11T21:03:40.1658554Z  Previous write of size 2 at 0x7b7800011bb6 by main thread: 2023-01-11T21:03:40.1661995Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:40.1662450Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1662776Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1663219Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1663642Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1663943Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1664258Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1664598Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.1664940Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1666107Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1666489Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1666827Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1667423Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1668083Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1668444Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1668747Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1669929Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1670232Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1670543Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1671662Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1671995Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1672609Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1673208Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1673561Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1674958Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1675322Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1675738Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1675987Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1676267Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1676662Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1676810Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1676998Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1677164Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1677386Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1677845Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1678021Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1678162Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1678170Z 2023-01-11T21:03:40.1678535Z  Location is heap block of size 3024 at 0x7b7800011400 allocated by main thread: 2023-01-11T21:03:40.1678799Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1678988Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1679249Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1679607Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1680398Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1680840Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1681291Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1681799Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1682386Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1684259Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1685350Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1685875Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1687658Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1688151Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1688504Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1688966Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1690942Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1691463Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1693335Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1693811Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1694273Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1696494Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1697090Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1699002Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1699493Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1699822Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1700333Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1702265Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1702878Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1704691Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1705158Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1705616Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1707646Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1708201Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1710134Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1710692Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1711030Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1711302Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1712540Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1712804Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1713129Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1713413Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1713735Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1714043Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1714643Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1715191Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1715488Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1715848Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1716994Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1717295Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1717590Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1718640Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1718963Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1719565Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1720113Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1720456Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1721681Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1722039Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1722447Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1722728Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1722999Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1723378Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1723527Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1723726Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1723921Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1724159Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1724633Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1724814Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1724922Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1724948Z 2023-01-11T21:03:40.1725266Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.1725523Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1725834Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1726301Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1726538Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1726961Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1727165Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1727448Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1728030Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1728342Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1728602Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1728887Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1729696Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1729995Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1730364Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1731445Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1731807Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1732914Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1733237Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1733446Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1734496Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1734732Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1734935Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1735312Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1735483Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1735660Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1735837Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1736060Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1736530Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1736796Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1736929Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1736939Z 2023-01-11T21:03:40.1739549Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.1739668Z ================== 2023-01-11T21:03:40.1739869Z ================== 2023-01-11T21:03:40.1740118Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1740381Z  Write of size 4 at 0x7b8800017760 by thread T2: 2023-01-11T21:03:40.1743648Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:40.1744045Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1744381Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1744790Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1745218Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1745698Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1745927Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1746359Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1746594Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1746603Z 2023-01-11T21:03:40.1746923Z  Previous write of size 4 at 0x7b8800017760 by main thread: 2023-01-11T21:03:40.1750639Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:40.1751092Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1751481Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1751960Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1752444Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1752787Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1753117Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1753514Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.1753866Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1755225Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1755660Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1756029Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1756678Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1757322Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1757692Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1758027Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1759423Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1759765Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1760129Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1761453Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1761880Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1762616Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1763319Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1763729Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1765224Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1765584Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1766050Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1766346Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1766649Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1767086Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1767280Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1767483Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1767690Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1767937Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1768466Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1768670Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1768814Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1768822Z 2023-01-11T21:03:40.1769204Z  Location is heap block of size 6048 at 0x7b8800016800 allocated by main thread: 2023-01-11T21:03:40.1769494Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1769692Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1770003Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1770346Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1771123Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1771577Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1772025Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1772475Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1773043Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1775044Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1776118Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1776637Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1778595Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1779132Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1779463Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1779920Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1781513Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1781961Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1783483Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1783987Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1784375Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1786004Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1786466Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1788031Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1788445Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1788717Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1789181Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1790896Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1791352Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1792908Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1793306Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1793685Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1795517Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1796028Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1797641Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1798122Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1798417Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1798637Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1799638Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1799866Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1800155Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1800437Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1800777Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1801172Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1801769Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1802330Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1802633Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1802925Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1804044Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1804346Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1804634Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1805679Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1805984Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1806618Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1807165Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1807555Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1808784Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1809098Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1809490Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1809724Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1809995Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1810355Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1810529Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1810695Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1810856Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1811044Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1811495Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1811654Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1811785Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1811796Z 2023-01-11T21:03:40.1812146Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.1812396Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1812694Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1813155Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1813413Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1813934Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1814246Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1814721Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1815496Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1815872Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1816185Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1816520Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1817472Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1817749Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1818130Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1819285Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1819641Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1820962Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1821279Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1821515Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1822574Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1822891Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1823180Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1823603Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1823788Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1823990Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1824189Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1824440Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1824967Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1825176Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1825314Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1825341Z 2023-01-11T21:03:40.1828280Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.1828406Z ================== 2023-01-11T21:03:40.1828662Z ================== 2023-01-11T21:03:40.1828958Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1829254Z  Write of size 4 at 0x7b8800017764 by thread T2: 2023-01-11T21:03:40.1833101Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:40.1833591Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1834001Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1834481Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1835062Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1835530Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1835771Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1836145Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1836371Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1836379Z 2023-01-11T21:03:40.1836701Z  Previous write of size 4 at 0x7b8800017764 by main thread: 2023-01-11T21:03:40.1840423Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:40.1840893Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1841274Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1841764Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1842308Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1842623Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1843012Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1843390Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.1843740Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1845041Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1845465Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1845858Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1846556Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1847233Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1847578Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1847879Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1849025Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1849364Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1849688Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1850852Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1851201Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1851850Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1852405Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1852756Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1854046Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1854463Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1854860Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1855100Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1855377Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1855736Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1855966Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1856134Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1856316Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1856532Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1857023Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1857205Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1857357Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1857367Z 2023-01-11T21:03:40.1857759Z  Location is heap block of size 6048 at 0x7b8800016800 allocated by main thread: 2023-01-11T21:03:40.1858034Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1858214Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1858445Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1858739Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1859397Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1859783Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1860157Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1860523Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1860976Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1862523Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1863519Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1863968Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1865595Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1866024Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1866302Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1866694Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1868314Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1868809Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1870384Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1870788Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1871177Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1872815Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1873259Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1874978Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1875435Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1875719Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1876131Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1877699Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1878122Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1879663Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1880162Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1880683Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1882704Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1883252Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1885136Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1885652Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1885975Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1886220Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1887472Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1887725Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1888055Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1888393Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1888794Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1889166Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1889808Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1890439Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1890801Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1891139Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1892503Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1892863Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1893214Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1894617Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1895135Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1895884Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1896564Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1896988Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1898478Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1898843Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1899316Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1899613Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1899926Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1900359Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1900557Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1900756Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1900956Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1901204Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1901742Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1901991Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1902150Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1902159Z 2023-01-11T21:03:40.1902553Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.1902845Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1903247Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1903792Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1904084Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1904574Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1904830Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1905138Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1905836Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1906212Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1906525Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1906855Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1907836Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1908114Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1908497Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1909656Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1910020Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1911465Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1911778Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1912033Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1913171Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1913429Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1913676Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1914115Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1914318Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1914525Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1914827Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1915092Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1915668Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1915877Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1916026Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1916052Z 2023-01-11T21:03:40.1919161Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.1919291Z ================== 2023-01-11T21:03:40.1919407Z ================== 2023-01-11T21:03:40.1919689Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1920054Z  Write of size 4 at 0x7b8800017768 by thread T2: 2023-01-11T21:03:40.1924076Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:40.1924561Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1924956Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1925466Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1925982Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1926435Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.1926678Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.1927075Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.1927316Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.1927324Z 2023-01-11T21:03:40.1927638Z  Previous write of size 4 at 0x7b8800017768 by main thread: 2023-01-11T21:03:40.1931747Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:40.1932230Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.1932602Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.1933105Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.1933631Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.1933970Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.1934452Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.1934863Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.1935244Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.1936501Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.1936929Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.1937322Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1938023Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1938699Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1939155Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1939511Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1940998Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1941369Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1941719Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1943077Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1943477Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1944255Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1944919Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1945350Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1946915Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1947361Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1947837Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1948132Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1948460Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1948918Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1949120Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1949329Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1949544Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1949801Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1950375Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1950588Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1950743Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1950751Z 2023-01-11T21:03:40.1951121Z  Location is heap block of size 6048 at 0x7b8800016800 allocated by main thread: 2023-01-11T21:03:40.1951414Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.1951631Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.1951917Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.1952288Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.1953088Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.1953574Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.1954030Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.1954486Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.1955128Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.1957173Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.1958302Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.1958848Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.1960704Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.1961193Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.1961524Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.1962012Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.1964300Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.1964862Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1966800Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1967294Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1967778Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1969880Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1970539Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1972538Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1972978Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1973203Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1973505Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.1974834Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.1975148Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.1976352Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.1976631Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.1976903Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.1978060Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.1978396Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.1979526Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.1979841Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.1980035Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.1980187Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.1980880Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.1981036Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.1981218Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.1981416Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.1981652Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.1981869Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.1982257Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.1982644Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.1982858Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.1983057Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.1983888Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.1984120Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.1984324Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.1985068Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.1985290Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.1985717Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.1986102Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.1986337Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.1987204Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.1987414Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.1987690Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.1987892Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.1988074Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.1988352Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1988455Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1988574Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1988694Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1988842Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1989158Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1989277Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1989371Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1989378Z 2023-01-11T21:03:40.1989615Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.1989786Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.1990005Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.1990319Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.1990495Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.1990789Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.1990928Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.1991121Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.1991527Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.1991749Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.1991933Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.1992129Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.1992689Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.1992880Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.1993106Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.1993801Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.1994017Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.1994851Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.1995029Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.1995174Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.1995784Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.1995930Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.1996080Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.1996335Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.1996451Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.1996569Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.1996676Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.1996826Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.1997134Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.1997254Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.1997347Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.1997383Z 2023-01-11T21:03:40.1999119Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.1999233Z ================== 2023-01-11T21:03:40.1999333Z ================== 2023-01-11T21:03:40.1999631Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.1999939Z  Write of size 4 at 0x7b880001776c by thread T2: 2023-01-11T21:03:40.2003357Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:40.2003732Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2004065Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2004473Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2004902Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2005283Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2005493Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2005849Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2006039Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2006046Z 2023-01-11T21:03:40.2006308Z  Previous write of size 4 at 0x7b880001776c by main thread: 2023-01-11T21:03:40.2009475Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:40.2009910Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2010269Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2010678Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2011093Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2011387Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2011665Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2011999Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.2012294Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2013341Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2013734Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2014082Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2014994Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2015479Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2015710Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2015918Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2016711Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2017021Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2017246Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2017992Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2018220Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2018662Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2019188Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2019468Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2020321Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2020532Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2020810Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2020987Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2021169Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2021422Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2021541Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2021663Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2021783Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2021919Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2022228Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2022350Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2022442Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2022450Z 2023-01-11T21:03:40.2022712Z  Location is heap block of size 6048 at 0x7b8800016800 allocated by main thread: 2023-01-11T21:03:40.2022882Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2023010Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2023171Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2023376Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2023820Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2024123Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2024411Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2024678Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2025005Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2026510Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2027634Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2028140Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2029996Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2030491Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2030786Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2031225Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2033112Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2033617Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2035363Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2035812Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2036177Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2037924Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2038445Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2040373Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2040973Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2041231Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2041655Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2043433Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2043972Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2045371Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2045653Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2045922Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2047109Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2047496Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2048601Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2048887Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2049078Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2049223Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2049894Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2050049Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2050243Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2050443Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2050678Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2050894Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2051277Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2051725Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2051937Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2052138Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2052924Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2053127Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2053334Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2054091Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2054313Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2054885Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2055273Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2055514Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2056448Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2056659Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2056938Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2057112Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2057298Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2057552Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2057666Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2057785Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2057909Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2058056Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2058365Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2058482Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2058565Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2058583Z 2023-01-11T21:03:40.2058815Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.2058983Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2059203Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2059521Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2059696Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2059991Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2060145Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2060336Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2060741Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2060992Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2061174Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2061398Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2061959Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2062122Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2062347Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2063012Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2063224Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2063987Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2064168Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2064309Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2064936Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2065109Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2065244Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2065495Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2065608Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2065751Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2065872Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2066020Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2066328Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2066450Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2066543Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2066549Z 2023-01-11T21:03:40.2068203Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.2068296Z ================== 2023-01-11T21:03:40.2068483Z ================== 2023-01-11T21:03:40.2068755Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2069021Z  Write of size 8 at 0x7b9800028ec0 by thread T1: 2023-01-11T21:03:40.2072360Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:40.2072785Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2073229Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2073742Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2074218Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2074744Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2074990Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2075361Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2075575Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2075583Z 2023-01-11T21:03:40.2075924Z  Previous write of size 8 at 0x7b9800028ec0 by main thread: 2023-01-11T21:03:40.2079047Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:40.2079475Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2079771Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2080228Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2080711Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2081106Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2081430Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2081846Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:40.2082232Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2083511Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.2083845Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.2084166Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2085286Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2085637Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2085975Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2087389Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.2087716Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.2089049Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2089269Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2089455Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.2089712Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2089832Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2089953Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2090076Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2090211Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2090520Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2090639Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2090733Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2090740Z 2023-01-11T21:03:40.2090981Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2023-01-11T21:03:40.2091148Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2091273Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2091434Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2091639Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2092077Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2092348Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2092617Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2092880Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2093237Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2094450Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2095095Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2095399Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2096421Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2096709Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2096884Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.2097653Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.2097834Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.2098041Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.2098855Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.2099096Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.2099964Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2100172Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2100358Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.2100612Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2100716Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2100837Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2100956Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2101104Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2101414Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2101563Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2101656Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2101663Z 2023-01-11T21:03:40.2101877Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2102045Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2102294Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2102609Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2102781Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2103077Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2103216Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2103409Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2103813Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2104031Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2104217Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2104411Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2104973Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2105136Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2105361Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2106022Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2106243Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2107064Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2107242Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2107383Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2107992Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2108138Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2108286Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2108539Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2108655Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2108773Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2108881Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2109030Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2109341Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2109461Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2109558Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2109563Z 2023-01-11T21:03:40.2111354Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:40.2111464Z ================== 2023-01-11T21:03:40.2111663Z ================== 2023-01-11T21:03:40.2111847Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2112133Z  Write of size 8 at 0x7b9800028ec8 by thread T1: 2023-01-11T21:03:40.2116011Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:40.2116463Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2116835Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2117314Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2117792Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2118296Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2118556Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2118899Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2119089Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2119114Z 2023-01-11T21:03:40.2119408Z  Previous write of size 8 at 0x7b9800028ec8 by main thread: 2023-01-11T21:03:40.2123239Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:40.2123759Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2124143Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2124674Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2124990Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2125182Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2125382Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2125680Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:40.2125999Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2127120Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.2127429Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.2127769Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2129035Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2129423Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2129731Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2130842Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.2131112Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.2132019Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2132247Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2132417Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.2132675Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2132793Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2132913Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2133037Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2133183Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2133497Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2133615Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2133711Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2133717Z 2023-01-11T21:03:40.2133958Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2023-01-11T21:03:40.2134158Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2134284Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2134540Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2134746Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2135292Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2135566Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2135837Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2136105Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2136427Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2137513Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2138137Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2138438Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2139540Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2139816Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2139991Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.2140678Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.2140863Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.2141070Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.2141891Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.2142133Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.2143007Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2143248Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2143431Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.2143682Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2143800Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2143918Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2144037Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2144183Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2144493Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2144614Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2144694Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2144699Z 2023-01-11T21:03:40.2144914Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2145081Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2145302Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2145616Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2145789Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2146083Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2146233Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2146422Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2146825Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2147046Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2147232Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2147426Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2147983Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2148209Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2148435Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2149098Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2149315Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2150080Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2150255Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2150396Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2151003Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2151150Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2151297Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2151552Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2151665Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2151784Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2151901Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2152047Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2152383Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2152500Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2152592Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2152598Z 2023-01-11T21:03:40.2154285Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:40.2154358Z ================== 2023-01-11T21:03:40.2154475Z ================== 2023-01-11T21:03:40.2154710Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2154888Z  Write of size 8 at 0x7b9800028ed0 by thread T1: 2023-01-11T21:03:40.2157036Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:40.2157299Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2157523Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2157806Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2158093Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2158394Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2158532Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2158786Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2158924Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2158930Z 2023-01-11T21:03:40.2159117Z  Previous write of size 8 at 0x7b9800028ed0 by main thread: 2023-01-11T21:03:40.2161237Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:40.2161496Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2161719Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2161995Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2162281Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2162470Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2162667Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2162892Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:40.2163104Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2163909Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.2164147Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.2164345Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2165146Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2165348Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2165556Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2166367Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.2166608Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.2167465Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2167720Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2167905Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.2168184Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2168304Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2168423Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2168542Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2168692Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2169005Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2169125Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2169218Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2169224Z 2023-01-11T21:03:40.2169449Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2023-01-11T21:03:40.2169617Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2169730Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2169891Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2170101Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2170548Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2170818Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2171084Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2171350Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2171674Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2172780Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2173430Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2173750Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2174873Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2175151Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2175330Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.2176014Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.2176191Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.2176463Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.2177310Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.2177556Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.2178840Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2179181Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2179481Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.2179887Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2180062Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2180262Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2180451Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2180639Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2181106Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2181302Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2181427Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2181449Z 2023-01-11T21:03:40.2181856Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2182129Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2182486Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2182978Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2183368Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2183863Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2184123Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2184417Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2185139Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2185538Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2185843Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2186202Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2187186Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2187485Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2187892Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2189065Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2189449Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2190815Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2191185Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2191417Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2192620Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2192862Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2193138Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2193569Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2193780Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2193997Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2194211Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2194483Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2195103Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2195301Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2195453Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2195462Z 2023-01-11T21:03:40.2198554Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:40.2198682Z ================== 2023-01-11T21:03:40.2198871Z ================== 2023-01-11T21:03:40.2199180Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2199496Z  Write of size 8 at 0x7b9800028f78 by thread T1: 2023-01-11T21:03:40.2201774Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:40.2202063Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2202288Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2202569Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2202858Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2203127Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2203269Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2203491Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2203626Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2203632Z 2023-01-11T21:03:40.2203820Z  Previous write of size 8 at 0x7b9800028f78 by main thread: 2023-01-11T21:03:40.2205948Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:40.2206222Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2206471Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2206777Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2207062Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2207252Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2207442Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2207668Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:40.2207882Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2208672Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.2208892Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.2209093Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2209879Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2210088Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2210292Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2211123Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.2211406Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.2212270Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2212478Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2212664Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.2212915Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2213030Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2213150Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2213258Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2213405Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2213712Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2213832Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2213924Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2213930Z 2023-01-11T21:03:40.2214150Z  Location is heap block of size 12096 at 0x7b9800027000 allocated by main thread: 2023-01-11T21:03:40.2214314Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2214541Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2214703Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2214903Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2215342Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2215661Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2215959Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2216223Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2216548Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2217616Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2218251Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2218554Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2219577Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2219915Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2220097Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.2220780Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.2220964Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.2221168Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.2221972Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.2222212Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.2223066Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2223288Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2223498Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0aec) 2023-01-11T21:03:40.2223737Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2223852Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2223969Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2224113Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2224260Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2224570Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2224688Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2224782Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2224787Z 2023-01-11T21:03:40.2225000Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2225164Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2225373Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2225688Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2225859Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2226151Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2226304Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2226492Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2226894Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2227112Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2227296Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2227493Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2228053Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2228218Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2228442Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2229158Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2229367Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2230138Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2230318Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2230460Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2231071Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2231217Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2231367Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2231620Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2231734Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2231854Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2231961Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2232108Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2232416Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2232537Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2232630Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2232636Z 2023-01-11T21:03:40.2234322Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:40.2234416Z ================== 2023-01-11T21:03:40.2240725Z ================== 2023-01-11T21:03:40.2241128Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2241475Z  Write of size 8 at 0x7b980004cec0 by thread T3: 2023-01-11T21:03:40.2244855Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:40.2245130Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2245354Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2245638Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2245931Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2246227Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2246356Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2246581Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2246720Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2246824Z 2023-01-11T21:03:40.2247018Z  Previous write of size 8 at 0x7b980004cec0 by main thread: 2023-01-11T21:03:40.2249182Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:40.2249463Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2249683Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2249963Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2250251Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2250446Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2250648Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2250873Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:40.2251072Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2251801Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2252055Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2253793Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2254716Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2255399Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2255740Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2256081Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2257341Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2257685Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2258072Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2258905Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2259132Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2259564Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2259946Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2260244Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2261131Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2261343Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2261621Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2261798Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2261981Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2262238Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2262354Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2262474Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2262595Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2262743Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2263054Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2263171Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2263265Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2263274Z 2023-01-11T21:03:40.2263520Z  Location is heap block of size 12096 at 0x7b980004b000 allocated by main thread: 2023-01-11T21:03:40.2263688Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2263812Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2263973Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2264180Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2264619Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2264917Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2265245Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2265544Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2265904Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2267658Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2268520Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2268939Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2270482Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2270986Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2271278Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2271671Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2273439Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2273888Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2275608Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2276052Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2276362Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2278049Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2278521Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2280170Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2280608Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2280899Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2281351Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2283140Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2283516Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2284791Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2285190Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2285591Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2287314Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2287860Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2289547Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2289979Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2290270Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2290489Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2291492Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2291720Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2292014Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2292324Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2292672Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2292990Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2293586Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2294156Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2294598Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2295002Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2296290Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2296616Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2296944Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2298136Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2298492Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2299160Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2299670Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2299913Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2300803Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2301132Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2301556Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2301851Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2302110Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2302506Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2302682Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2302878Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2303068Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2303271Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2303719Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2303919Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2304062Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2304071Z 2023-01-11T21:03:40.2304449Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.2304716Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2305050Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2305577Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2305858Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2306327Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2306547Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2306840Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2307377Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2307716Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2308061Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2308393Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2309185Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2309439Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2309792Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2310822Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2311166Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2312385Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2312671Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2312920Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2313815Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2314068Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2314329Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2314841Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2315115Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2315275Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2315441Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2315631Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2316061Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2316247Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2316403Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2316412Z 2023-01-11T21:03:40.2319300Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:40.2319415Z ================== 2023-01-11T21:03:40.2319605Z ================== 2023-01-11T21:03:40.2319880Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2320186Z  Write of size 8 at 0x7b980004cec8 by thread T3: 2023-01-11T21:03:40.2324039Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:40.2324535Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2324922Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2325500Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2326001Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2326449Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2326704Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2327101Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2327309Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2327333Z 2023-01-11T21:03:40.2327666Z  Previous write of size 8 at 0x7b980004cec8 by main thread: 2023-01-11T21:03:40.2331705Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883160c) 2023-01-11T21:03:40.2332199Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2332583Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2332862Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2333148Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2333335Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2333533Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2333797Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:40.2334008Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2334892Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2335134Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2335351Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2335738Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2336121Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2336335Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2336535Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2337321Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2337529Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2337730Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2338481Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2338762Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2339192Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2339576Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2339815Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2340665Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2340875Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2341147Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2341319Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2341500Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2341754Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2341867Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2341989Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2342109Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2342254Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2342563Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2342709Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2342800Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2342807Z 2023-01-11T21:03:40.2343025Z  Location is heap block of size 12096 at 0x7b980004b000 allocated by main thread: 2023-01-11T21:03:40.2343188Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2343308Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2343503Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2343709Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2344151Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2344416Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2344675Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2344939Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2345264Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2346436Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2347060Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2347388Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2348455Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2348729Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2348912Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2349181Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2350319Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2350641Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2351729Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2352031Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2352299Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2353467Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2353787Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2354959Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2355276Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2355493Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2355791Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2356887Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2357206Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2358265Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2358539Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2358807Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2360036Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2360481Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2362005Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2362379Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2362634Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2362781Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2363647Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2363932Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2364171Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2364434Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2364789Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2365013Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2365439Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2365924Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2366200Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2366483Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2367452Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2367801Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2368165Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2369520Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2369925Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2370755Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2371502Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2371929Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2373345Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2373744Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2374259Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2374664Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2374876Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2375194Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2375311Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2375416Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2375586Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2375759Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2376151Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2376308Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2376410Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2376417Z 2023-01-11T21:03:40.2376728Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.2376980Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2377315Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2377837Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2378213Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2378807Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2379080Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2379392Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2380148Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2380565Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2380844Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2381127Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2381972Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2382298Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2382630Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2383310Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2383524Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2384541Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2384904Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2385133Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2386221Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2386406Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2386674Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2387139Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2387343Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2387564Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2387795Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2387993Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2388495Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2388675Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2388835Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2388843Z 2023-01-11T21:03:40.2390531Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883160c) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:40.2390623Z ================== 2023-01-11T21:03:40.2390675Z ================== 2023-01-11T21:03:40.2390847Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2391026Z  Write of size 8 at 0x7b980004ced0 by thread T3: 2023-01-11T21:03:40.2393218Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:40.2393527Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2393748Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2394030Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2394315Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2394698Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2394848Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2395061Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2395197Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2395204Z 2023-01-11T21:03:40.2395394Z  Previous write of size 8 at 0x7b980004ced0 by main thread: 2023-01-11T21:03:40.2397540Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831652) 2023-01-11T21:03:40.2397817Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2398074Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2398385Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2398671Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2398861Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2399065Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2399289Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:40.2399502Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2400216Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2400514Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2400734Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2401116Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2401517Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2401729Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2401916Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2402742Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2402974Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2403180Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2403927Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2404152Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2404574Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2404959Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2405195Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2406062Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2406270Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2406543Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2406739Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2406920Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2407197Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2407300Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2407417Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2407535Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2407679Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2407994Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2408111Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2408203Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2408208Z 2023-01-11T21:03:40.2408431Z  Location is heap block of size 12096 at 0x7b980004b000 allocated by main thread: 2023-01-11T21:03:40.2408599Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2408720Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2408866Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2409067Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2409511Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2409789Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2410052Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2410315Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2410640Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2411735Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2412395Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2412701Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2413722Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2413992Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2414180Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2414551Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2415770Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2416118Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2417189Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2417465Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2417733Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2418890Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2419224Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2420360Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2420650Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2420841Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2421137Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2422254Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2422559Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2423646Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2423957Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2424226Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2425375Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2425708Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2426786Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2427101Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2427290Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2427436Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2428136Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2428293Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2428485Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2428685Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2428918Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2429133Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2429518Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2429902Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2430111Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2430309Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2431324Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2431624Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2431994Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2433377Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2433771Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2434612Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2435297Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2435719Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2437284Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2437680Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2438167Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2438487Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2438787Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2439223Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2439431Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2439687Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2439879Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2440146Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2440742Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2440960Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2441125Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2441136Z 2023-01-11T21:03:40.2441539Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.2441805Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2442206Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2442755Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2443058Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2443585Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2443867Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2444218Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2444958Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2445357Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2445688Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2446038Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2447054Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2447340Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2447738Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2448926Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2449369Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2450785Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2451104Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2451358Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2452461Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2452724Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2452989Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2453449Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2453640Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2453837Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2454037Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2454289Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2454967Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2455187Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2455356Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2455366Z 2023-01-11T21:03:40.2458465Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831652) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:40.2458666Z ================== 2023-01-11T21:03:40.2458876Z ================== 2023-01-11T21:03:40.2459171Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2459542Z  Write of size 8 at 0x7b980004cf78 by thread T3: 2023-01-11T21:03:40.2463568Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:40.2463859Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2464078Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2464361Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2464648Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2464915Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2465055Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2465277Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2465412Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2465418Z 2023-01-11T21:03:40.2465603Z  Previous write of size 8 at 0x7b980004cf78 by main thread: 2023-01-11T21:03:40.2467859Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88316bf) 2023-01-11T21:03:40.2468144Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2468367Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2468645Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2468934Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2469128Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2469325Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2469552Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:40.2469762Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2470473Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2470713Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2470931Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2471314Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2471763Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2471978Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2472163Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2472965Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2473168Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2473374Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2474118Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2474340Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2474839Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2475224Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2475462Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2476390Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2476601Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2476880Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2477053Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2477234Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2477490Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2477591Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2477709Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2477832Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2477979Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2478290Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2478408Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2478503Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2478510Z 2023-01-11T21:03:40.2478736Z  Location is heap block of size 12096 at 0x7b980004b000 allocated by main thread: 2023-01-11T21:03:40.2478901Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2479025Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2479172Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2479380Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2479820Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2480098Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2480358Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2480653Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2481003Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2482074Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2482709Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2483015Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2484041Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2484343Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2484529Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2484824Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2485967Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2486274Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2487354Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2487632Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2487898Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2489078Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2489447Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2490541Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2490830Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2491021Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2491317Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2492428Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2492795Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2493856Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2494143Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2518987Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2520394Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2520748Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2522003Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2522297Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2522493Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2522643Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2523318Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2523475Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2523671Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2523870Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2524104Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2524320Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2524702Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2525086Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2525296Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2525525Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2526357Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2526566Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2526770Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2527514Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2527737Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2528159Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2528539Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2528776Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2529627Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2529873Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2530173Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e833f) 2023-01-11T21:03:40.2530348Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2530516Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutTailNull_Test::TestBody() (test_lazy+0x2d0e00) 2023-01-11T21:03:40.2530767Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2530883Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2531001Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2531121Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2531268Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2531581Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2531699Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2531790Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2531797Z 2023-01-11T21:03:40.2532043Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.2532203Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2532423Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2532738Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2532909Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2533200Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2533354Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2533543Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2533948Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2534167Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2534475Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2534673Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2535274Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2535468Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2535720Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2536385Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2536611Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2537377Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2537555Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2537696Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2538300Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2538446Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2538596Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2538850Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2538964Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2539080Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2539186Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2539368Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2539676Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2539794Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2539884Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2539890Z 2023-01-11T21:03:40.2541571Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88316bf) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:40.2541643Z ================== 2023-01-11T21:03:40.2541858Z [ OK ] LazyOpsTest.TestMultiIndexPutTailNull (275 ms) 2023-01-11T21:03:40.2542072Z [ RUN ] LazyOpsTest.TestMultiIndexPutMiddleBroadcast 2023-01-11T21:03:40.2629590Z ================== 2023-01-11T21:03:40.2629978Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2630297Z  Write of size 4 at 0x7b94000479f8 by thread T1: 2023-01-11T21:03:40.2634118Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:40.2634619Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2634996Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2635471Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2636081Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2636592Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2636835Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2637204Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2637458Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2637473Z 2023-01-11T21:03:40.2637796Z  Previous write of size 4 at 0x7b94000479f8 by main thread: 2023-01-11T21:03:40.2641658Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:40.2642117Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2642483Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2642974Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2643473Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2643796Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2644136Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2644522Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.2644937Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2646211Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2646613Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2646986Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2647638Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2648300Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2648668Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2649004Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2650343Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2650687Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2651024Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2652297Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2652723Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2653504Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2654162Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2654727Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2656195Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2656564Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2657068Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2657369Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2657719Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2658178Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2658378Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2658586Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2658792Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2659048Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2659601Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2659794Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2659954Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2660070Z 2023-01-11T21:03:40.2660583Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2023-01-11T21:03:40.2660866Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2661081Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2661347Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2661755Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2662402Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2662803Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2663194Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2663555Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2664022Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2665601Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2666465Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2666889Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2668462Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2668869Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2669130Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2669514Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2671175Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2671682Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2673326Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2673779Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2674179Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2675964Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2676450Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2678043Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2678538Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2678815Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2679283Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2680957Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2681439Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2682989Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2683393Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2683788Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2685562Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2686055Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2687619Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2688044Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2688313Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2688524Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2689497Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2689734Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2690025Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2690354Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2690680Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2691046Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2691601Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2692133Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2692454Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2706549Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2708001Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2708393Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2708754Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2710067Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2710457Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2711204Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2712048Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2712470Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2713950Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2714325Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2714905Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2715212Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2715533Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2715968Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2716160Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2716357Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2716567Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2716817Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2717341Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2717548Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2717705Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2717714Z 2023-01-11T21:03:40.2718101Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2718392Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2718734Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2719271Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2719609Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2720104Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2720356Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2720719Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2721444Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2721812Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2722137Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2722473Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2723438Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2723710Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2724087Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2725283Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2725674Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2727051Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2727325Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2727548Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2728197Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2728347Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2728496Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2728753Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2728870Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2728988Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2729095Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2729242Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2729557Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2729676Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2729768Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2729776Z 2023-01-11T21:03:40.2731459Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.2731539Z ================== 2023-01-11T21:03:40.2731687Z ================== 2023-01-11T21:03:40.2731855Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2732019Z  Write of size 4 at 0x7b9400047a00 by thread T1: 2023-01-11T21:03:40.2734210Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:40.2734615Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2734838Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2735122Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2735413Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2735680Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2735820Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2736044Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2736181Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2736187Z 2023-01-11T21:03:40.2736376Z  Previous write of size 4 at 0x7b9400047a00 by main thread: 2023-01-11T21:03:40.2738493Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:40.2738750Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2739019Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2739298Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2739616Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2739811Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2740012Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2740238Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.2740451Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2741167Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2741402Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2741626Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2742008Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2742396Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2742608Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2742807Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2743605Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2743861Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2744065Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2744808Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2745038Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2745462Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2745847Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2746086Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2746941Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2747163Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2747458Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2747658Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2747843Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2748097Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2748237Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2748358Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2748481Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2748629Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2748940Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2749061Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2749154Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2749159Z 2023-01-11T21:03:40.2749380Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2023-01-11T21:03:40.2749547Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2749659Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2749818Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2750023Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2750551Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2750821Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2751086Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2751349Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2751675Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2752755Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2753439Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2753744Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2754844Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2755120Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2755306Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2755577Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2756724Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2757086Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2758652Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2759092Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2759533Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2761323Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2761824Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2763525Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2763966Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2764239Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2764621Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2766111Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2766539Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2768422Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2769004Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2769512Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2771314Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2771841Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2773841Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2774458Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2774903Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2775164Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2776396Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2776642Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2776990Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2777364Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2777804Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2778168Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2778845Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2779564Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2779932Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2780267Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2781683Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2782060Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2782449Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2783855Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2784254Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2785043Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2785729Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2786171Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2787743Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2788148Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2788689Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2788991Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2789361Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2789764Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2789881Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2790001Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2790157Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2790305Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2790616Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2790734Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2790853Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2790860Z 2023-01-11T21:03:40.2791105Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2791261Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2791480Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2791795Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2791968Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2792261Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2792413Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2792603Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2793006Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2793227Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2793414Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2793611Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2794169Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2794337Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2794626Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2795297Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2795538Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2796341Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2796522Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2796663Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2797280Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2797425Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2797574Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2797828Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2797943Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2798050Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2798169Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2798316Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2798625Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2798746Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2798839Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2798845Z 2023-01-11T21:03:40.2800501Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.2800602Z ================== 2023-01-11T21:03:40.2800748Z ================== 2023-01-11T21:03:40.2800906Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2801081Z  Write of size 4 at 0x7b9400047a04 by thread T1: 2023-01-11T21:03:40.2803259Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:40.2803522Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2803748Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2804032Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2804315Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2804582Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2804723Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2804946Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2805082Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2805087Z 2023-01-11T21:03:40.2805264Z  Previous write of size 4 at 0x7b9400047a04 by main thread: 2023-01-11T21:03:40.2807433Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:40.2807722Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2807943Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2808222Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2808509Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2808702Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2808901Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2809126Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.2809337Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2810053Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2810294Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2810511Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2810893Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2811305Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2811551Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2811752Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2812538Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2812756Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2812948Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2813703Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2813926Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2814474Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2814952Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2815191Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2816093Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2816335Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2816628Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2816800Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2816996Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2817251Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2817366Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2817484Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2817606Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2817756Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2818122Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2818302Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2818411Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2818418Z 2023-01-11T21:03:40.2818735Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2023-01-11T21:03:40.2819005Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2819193Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2819462Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2819830Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2820588Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2820965Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2821380Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2821789Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2822328Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2823733Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2824819Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2825330Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2827048Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2827503Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2827883Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2828388Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2830457Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2831049Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2833004Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2833504Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2834004Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2836181Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2836773Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2838807Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2839339Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2839693Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2840251Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2842260Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2842940Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2844881Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2845358Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2845858Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2848062Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2848653Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2849938Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2850268Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2850465Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2850617Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2851387Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2851549Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2851746Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2851947Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2852180Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2852396Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2852781Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2853168Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2853380Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2853617Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2854554Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2854764Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2854972Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2855728Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2855955Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2856386Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2856770Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2857012Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2857872Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2858116Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2858440Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2858617Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2858815Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2859068Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2859187Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2859305Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2859426Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2859575Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2859889Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2860008Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2860091Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2860098Z 2023-01-11T21:03:40.2860341Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2860510Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2860733Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2861050Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2861225Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2861519Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2861670Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2861862Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2862268Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2862493Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2862678Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2862876Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2863437Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2863659Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2863885Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2864551Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2864767Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2865531Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2865710Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2865855Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2866482Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2866630Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2866766Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2867025Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2867140Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2867259Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2867381Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2867528Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2867870Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2867988Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2868082Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2868088Z 2023-01-11T21:03:40.2869772Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.2869850Z ================== 2023-01-11T21:03:40.2869995Z ================== 2023-01-11T21:03:40.2870167Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2870344Z  Write of size 4 at 0x7b9400047a08 by thread T1: 2023-01-11T21:03:40.2872499Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:40.2872778Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2873006Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2873287Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2873573Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2873885Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2874015Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2874264Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2874405Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2874411Z 2023-01-11T21:03:40.2874691Z  Previous write of size 4 at 0x7b9400047a08 by main thread: 2023-01-11T21:03:40.2876844Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:40.2877117Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2877342Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2877747Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2878241Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2878600Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2878965Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2879341Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.2879731Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2881073Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2881535Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2881935Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2882621Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2883322Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2883722Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2884084Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2885474Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2885814Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2886180Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2887527Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2887983Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2888786Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2889486Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2889897Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2891454Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2891844Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2892370Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2892664Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2893012Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2893445Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2893654Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2893875Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2894095Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2894476Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2895073Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2895287Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2895434Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2895441Z 2023-01-11T21:03:40.2895843Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2023-01-11T21:03:40.2896146Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2896456Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2896743Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2897122Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2897952Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2898454Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2898950Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2899401Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2899973Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2901880Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2902957Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2903488Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2905436Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2905945Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2906288Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2906794Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2908899Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2909488Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2910818Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2911161Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2911431Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2912599Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2912918Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2914029Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2914319Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2914539Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2914898Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2916028Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2916356Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2917409Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2917685Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2917955Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2919157Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2919500Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2920600Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2920888Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2921079Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2921227Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2921899Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2922054Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2922247Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2922446Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2922677Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2922922Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2923334Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2923721Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2923936Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2924139Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2924923Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2925129Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2925337Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2926079Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2926301Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2926732Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2927129Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2927394Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2928288Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2928503Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2928795Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2928969Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2929167Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2929422Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2929535Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2929654Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2929774Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2929910Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2930219Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2930335Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2930429Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2930437Z 2023-01-11T21:03:40.2930676Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2930846Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2931066Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2931387Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2931561Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2931862Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2932061Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2932253Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2932704Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2932926Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2933112Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2933307Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2933866Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2934028Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2934254Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2935142Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2935358Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2936125Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2936307Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2936452Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2937069Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2937304Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2937460Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2937717Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2937836Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2937959Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2938086Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2938233Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2938544Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2938665Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2938744Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2938766Z 2023-01-11T21:03:40.2940415Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.2940488Z ================== 2023-01-11T21:03:40.2940627Z ================== 2023-01-11T21:03:40.2940801Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.2940982Z  Write of size 4 at 0x7b9400047a0c by thread T1: 2023-01-11T21:03:40.2943143Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:40.2943463Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2943714Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2943994Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2944283Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2944553Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.2944693Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.2944914Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.2945050Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.2945056Z 2023-01-11T21:03:40.2945248Z  Previous write of size 4 at 0x7b9400047a0c by main thread: 2023-01-11T21:03:40.2947496Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:40.2947761Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.2947982Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.2948262Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.2948586Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.2948808Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.2949007Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.2949232Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.2949446Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.2950162Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.2950412Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.2950632Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2951013Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2951398Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2951610Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2951808Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2952597Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2952842Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2953047Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2953814Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2954041Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2954473Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2954924Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2955184Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2956040Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2956251Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2956548Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2956724Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2956924Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2957334Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2957454Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2957573Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2957679Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2957870Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2958181Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2958300Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2958395Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2958403Z 2023-01-11T21:03:40.2958632Z  Location is heap block of size 10080 at 0x7b9400046000 allocated by main thread: 2023-01-11T21:03:40.2958799Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.2958923Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.2959083Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.2959287Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.2959733Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.2960002Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.2960264Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.2960528Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.2960850Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.2961916Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.2962607Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.2962908Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.2963939Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.2964224Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.2964397Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.2964666Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.2965813Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.2966147Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2967263Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2967540Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2967805Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2968965Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2969298Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2970421Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2970732Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2970925Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2971222Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.2972325Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.2972630Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.2973703Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.2974010Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.2974301Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.2975649Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.2975985Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.2977075Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.2977371Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.2977563Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.2977771Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.2978496Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.2978653Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.2978834Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.2979035Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.2979271Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.2979490Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.2979876Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.2980265Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.2980482Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.2980683Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.2981487Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.2981693Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.2981899Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.2982668Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.2982915Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.2983343Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.2983728Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.2983967Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.2984833Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.2985047Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.2985339Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.2985515Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.2985714Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.2985967Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2986070Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2986191Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2986312Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2986458Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2986770Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2986918Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2987010Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2987016Z 2023-01-11T21:03:40.2987240Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.2987408Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.2987657Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.2987976Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.2988151Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.2988442Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.2988582Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.2988773Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.2989182Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.2989400Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.2989586Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.2989779Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.2990339Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.2990502Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.2990728Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.2991406Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.2991615Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.2992434Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.2992611Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.2992756Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.2993369Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.2993515Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.2993663Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.2993919Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.2994036Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.2994154Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.2994273Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.2994409Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.2994806Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.2994931Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.2995026Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.2995031Z 2023-01-11T21:03:40.2996691Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.2996766Z ================== 2023-01-11T21:03:40.3140377Z ================== 2023-01-11T21:03:40.3140761Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.3141129Z  Write of size 1 at 0x7b740003a7be by thread T3: 2023-01-11T21:03:40.3145029Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:40.3145602Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3145919Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3146209Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3146526Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3146904Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.3147106Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.3147473Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.3147689Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.3147718Z 2023-01-11T21:03:40.3148032Z  Previous write of size 1 at 0x7b740003a7be by main thread: 2023-01-11T21:03:40.3151652Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:40.3151970Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3152202Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3152485Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3152777Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3152970Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.3153176Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.3153405Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.3153616Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.3154403Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.3154699Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.3154906Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3155694Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3155960Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3156166Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3156994Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.3157239Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.3158095Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3158308Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3158510Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d1de5) 2023-01-11T21:03:40.3158767Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3158883Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3159002Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3159122Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3159273Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3159584Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3159701Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3159814Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3159850Z 2023-01-11T21:03:40.3160064Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:40.3160230Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.3160352Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.3160512Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.3160746Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.3161192Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.3161462Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.3161729Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.3161997Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.3162324Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.3163408Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.3164031Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.3164329Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.3165416Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.3165690Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.3165863Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.3166548Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.3166725Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.3166933Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.3167739Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.3167996Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.3168871Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3169104Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3169303Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d1de5) 2023-01-11T21:03:40.3169557Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3171812Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3172001Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3172204Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3172427Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3172753Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3172859Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3172954Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3172964Z 2023-01-11T21:03:40.3173264Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.3173441Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.3173664Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.3174038Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.3174216Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.3174633Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.3174851Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.3175047Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.3175469Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.3175732Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.3175921Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.3176119Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.3176868Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.3177036Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.3177307Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.3177987Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.3178200Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.3179040Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.3179221Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.3179365Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.3179992Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.3180142Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.3180282Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.3180536Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3180652Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3180795Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3180947Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3181143Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3181451Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3181569Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3181660Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3181704Z 2023-01-11T21:03:40.3183374Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.3183450Z ================== 2023-01-11T21:03:40.3338749Z ================== 2023-01-11T21:03:40.3339264Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.3339549Z  Write of size 1 at 0x7b740003a619 by thread T3: 2023-01-11T21:03:40.3343009Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:40.3343462Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3343862Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3344335Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3344927Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3345364Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.3345667Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.3346020Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.3346228Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.3346238Z 2023-01-11T21:03:40.3346564Z  Previous write of size 1 at 0x7b740003a619 by main thread: 2023-01-11T21:03:40.3350155Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:40.3350621Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3350972Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3351408Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3351792Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3352076Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.3352398Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.3352775Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.3353069Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.3354435Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.3354792Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.3355127Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3356372Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3356716Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3356927Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3357740Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.3357999Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.3358856Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3359111Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3359340Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d1de5) 2023-01-11T21:03:40.3359600Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3359716Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3359836Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3359958Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3360092Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3360403Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3360521Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3360614Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3360622Z 2023-01-11T21:03:40.3360868Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:40.3361035Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.3361160Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.3361324Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.3361529Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.3361974Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.3362242Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.3362539Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.3362805Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.3363130Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.3364240Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.3364889Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.3365190Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.3366227Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.3366504Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.3366680Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.3367359Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.3367564Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.3367769Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.3368598Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.3368840Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.3369702Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3369912Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3370111Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d1de5) 2023-01-11T21:03:40.3370364Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3370478Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3370585Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3370707Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3370852Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3371164Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3371285Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3371377Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3371383Z 2023-01-11T21:03:40.3371596Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.3371763Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.3371983Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.3372326Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.3372499Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.3372814Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.3372968Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.3373160Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.3373568Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.3373775Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.3373961Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.3374162Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.3375142Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.3375325Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.3375540Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.3376215Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.3376425Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.3377193Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.3377444Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.3377585Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.3378233Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.3378382Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.3378532Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.3378786Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3378901Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3379022Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3379143Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3379291Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3379602Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3379709Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3379804Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3379810Z 2023-01-11T21:03:40.3381476Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.3381560Z ================== 2023-01-11T21:03:40.3476029Z ================== 2023-01-11T21:03:40.3476528Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.3476840Z  Write of size 1 at 0x7b740003d9be by thread T2: 2023-01-11T21:03:40.3480573Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:40.3481073Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3481405Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3481826Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3482290Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3482719Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.3482948Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.3483298Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.3483487Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.3483498Z 2023-01-11T21:03:40.3483706Z  Previous write of size 1 at 0x7b740003d9be by main thread: 2023-01-11T21:03:40.3486776Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c405) 2023-01-11T21:03:40.3487196Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3487488Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3487942Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3488338Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3488683Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.3489021Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.3489449Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.3489803Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.3490911Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.3491263Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.3491574Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.3492096Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.3492689Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.3492978Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.3493347Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3495023Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3495428Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3495798Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3497161Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.3497543Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.3498380Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.3499062Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.3499498Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.3501058Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3501413Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3501987Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.3502281Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.3502678Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.3503126Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3503331Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3503544Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3503732Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3503988Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3504548Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3504766Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3504935Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3504944Z 2023-01-11T21:03:40.3505380Z  Location is heap block of size 2520 at 0x7b740003d400 allocated by main thread: 2023-01-11T21:03:40.3505686Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.3505913Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.3506205Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.3506562Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.3507010Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.3507276Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.3507538Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.3507802Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.3508127Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.3509227Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.3509892Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.3510194Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.3511217Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.3511501Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.3511688Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.3511958Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.3513109Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.3513438Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.3514512Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.3514848Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.3515120Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.3516292Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.3516657Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.3517778Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.3518087Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.3518279Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.3518572Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.3519676Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.3519985Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.3521098Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.3521400Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.3521667Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.3522835Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.3523152Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.3524243Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.3524574Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.3524791Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.3524926Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.3525615Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.3525773Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.3525968Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.3526169Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.3526390Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.3526609Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.3526993Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.3527390Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.3527604Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.3527803Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3528593Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3528824Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3529027Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3529794Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.3530019Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.3530446Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.3530829Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.3531070Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.3531933Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3532143Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3532441Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.3532613Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.3532811Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.3533063Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3533207Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3533314Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3533459Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3533606Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3533940Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3534059Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3534155Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3534161Z 2023-01-11T21:03:40.3534482Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.3534660Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.3534878Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.3535196Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.3535370Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.3535661Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.3535818Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.3536006Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.3536410Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.3536630Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.3536814Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.3536995Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.3537779Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.3538037Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.3538340Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.3539347Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.3539762Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.3540745Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.3540929Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.3541074Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.3541878Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.3542121Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.3542372Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.3542783Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3542921Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3543110Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3543302Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3543541Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3544055Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3544237Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3544372Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3544383Z 2023-01-11T21:03:40.3547014Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c405) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.3547191Z ================== 2023-01-11T21:03:40.3547322Z ================== 2023-01-11T21:03:40.3547525Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.3547703Z  Write of size 1 at 0x7b740003d9bf by thread T2: 2023-01-11T21:03:40.3550764Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:40.3551034Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3551264Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3551549Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3551838Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3552112Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.3552305Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.3552580Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.3552719Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.3552725Z 2023-01-11T21:03:40.3552915Z  Previous write of size 1 at 0x7b740003d9bf by main thread: 2023-01-11T21:03:40.3555973Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c47d) 2023-01-11T21:03:40.3556509Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3556874Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3557158Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3557449Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3557644Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.3557850Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.3558080Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.3558292Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.3559252Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.3559681Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.3560080Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.3560794Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.3561556Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.3561922Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.3562278Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3563728Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3564073Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3564435Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3565780Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.3566165Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.3566957Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.3567649Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.3568153Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.3569558Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3569776Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3570071Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.3570247Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.3570446Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.3570700Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3570818Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3570923Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3571043Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3571189Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3571500Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3571624Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3571715Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3571722Z 2023-01-11T21:03:40.3571957Z  Location is heap block of size 2520 at 0x7b740003d400 allocated by main thread: 2023-01-11T21:03:40.3572126Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.3572237Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.3572397Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.3572600Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.3573042Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.3573366Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.3573658Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.3573950Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.3574276Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.3575449Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.3576085Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.3576385Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.3577409Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.3577734Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.3577954Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.3578223Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.3579370Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.3579681Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.3580753Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.3581027Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.3581297Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.3582509Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.3582847Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.3583929Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.3584217Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.3584408Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.3584700Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.3585833Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.3586161Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.3587230Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.3587505Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.3587776Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.3588934Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.3589270Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.3590418Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.3590709Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.3590903Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.3591053Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.3591728Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.3591897Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.3592079Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.3592279Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.3592513Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.3592732Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.3593119Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.3593507Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.3593748Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.3593953Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3594873Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3595084Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3595291Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3596033Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.3596261Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.3596687Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.3597070Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.3597309Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.3598239Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3598520Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3598816Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.3598991Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.3599193Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.3599448Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3599551Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3599670Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3599794Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3599941Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3600254Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3600376Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3600471Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3600477Z 2023-01-11T21:03:40.3600706Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.3600877Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.3601099Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.3601414Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.3601588Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.3601870Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.3602023Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.3602214Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.3602628Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.3602849Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.3603033Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.3603266Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.3603851Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.3604013Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.3604235Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.3604908Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.3605133Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.3605895Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.3606072Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.3606217Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.3606827Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.3606975Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.3607126Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.3607380Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3607494Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3607646Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3607752Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3607898Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3608230Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3608348Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3608438Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3608444Z 2023-01-11T21:03:40.3610116Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c47d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.3610189Z ================== 2023-01-11T21:03:40.3619980Z ================== 2023-01-11T21:03:40.3620305Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.3620579Z  Write of size 1 at 0x7b740003da7a by thread T2: 2023-01-11T21:03:40.3623904Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:40.3624334Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3624701Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3625100Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3625636Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3626078Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.3626308Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.3626685Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.3626901Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.3626912Z 2023-01-11T21:03:40.3627279Z  Previous write of size 1 at 0x7b740003da7a by main thread: 2023-01-11T21:03:40.3631297Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c4c4) 2023-01-11T21:03:40.3631732Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3632142Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3632646Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3633161Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3633497Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.3633872Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.3634265Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.3634672Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.3635789Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.3636196Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.3636569Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.3637186Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.3637891Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.3638274Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.3638645Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3639928Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3640139Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3640374Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3641363Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.3641787Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.3642504Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.3643144Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.3643489Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.3644916Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3645239Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3645712Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.3645992Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.3646318Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.3646702Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3646871Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3647041Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3647203Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3647415Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3647844Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3648024Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3648239Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3648249Z 2023-01-11T21:03:40.3648618Z  Location is heap block of size 2520 at 0x7b740003d400 allocated by main thread: 2023-01-11T21:03:40.3648861Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.3649042Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.3649292Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.3649663Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.3650379Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.3650804Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.3651216Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.3651636Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.3652127Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.3653820Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.3654984Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.3655549Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.3657292Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.3657748Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.3658022Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.3658422Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.3660319Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.3660860Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.3662829Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.3663351Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.3663815Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.3665678Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.3666219Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.3668022Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.3668596Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.3668907Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.3669425Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.3671342Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.3671888Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.3673814Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.3674273Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.3674774Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.3676493Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.3677039Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.3678641Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.3679070Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.3679252Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.3679402Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.3680111Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.3680328Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.3680638Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.3680831Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.3681067Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.3681312Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.3681698Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.3682099Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.3682312Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.3682509Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3683291Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3683534Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3683738Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3684480Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.3684707Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.3685135Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.3685600Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.3685841Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.3686699Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3686910Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3687203Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.3687379Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.3687576Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.3687830Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3687944Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3688062Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3688169Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3688316Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3688627Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3688744Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3688836Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3688843Z 2023-01-11T21:03:40.3689083Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.3689253Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.3689472Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.3689786Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.3689988Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.3690281Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.3690460Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.3690651Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.3691055Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.3691278Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.3691462Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.3691641Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.3692213Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.3692379Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.3692601Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.3693267Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.3693482Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.3694246Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.3694524Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.3694717Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.3695360Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.3695508Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.3695657Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.3695915Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3696029Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3696147Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3696267Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3696416Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3696729Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3696848Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3696929Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3696937Z 2023-01-11T21:03:40.3698644Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c4c4) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.3698717Z ================== 2023-01-11T21:03:40.3758869Z ================== 2023-01-11T21:03:40.3759261Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.3759585Z  Write of size 1 at 0x7b740003d819 by thread T2: 2023-01-11T21:03:40.3763352Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:40.3763911Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3764337Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3764775Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3765294Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3765799Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.3765967Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.3766206Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.3766411Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.3766421Z 2023-01-11T21:03:40.3766720Z  Previous write of size 1 at 0x7b740003d819 by main thread: 2023-01-11T21:03:40.3770032Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:40.3770402Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.3770750Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.3771086Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.3771537Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.3771850Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.3772105Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.3772457Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:40.3772790Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.3773794Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.3774041Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.3774503Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.3775012Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.3775567Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.3775881Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.3776207Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3777640Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3778171Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3778538Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3779909Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.3780320Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.3781024Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.3781744Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.3782184Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.3783796Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3784182Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3784701Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.3785061Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.3785420Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.3785880Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3786082Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3786288Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3786480Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3786714Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3787293Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3787508Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3787675Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3787686Z 2023-01-11T21:03:40.3788121Z  Location is heap block of size 2520 at 0x7b740003d400 allocated by main thread: 2023-01-11T21:03:40.3788426Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.3788640Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.3788839Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.3789044Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.3789484Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.3789756Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.3790020Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.3790286Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.3790614Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.3791732Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.3792393Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.3792698Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.3793725Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.3794012Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.3794199Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.3794465Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.3795718Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.3796057Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.3797135Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.3797412Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.3797679Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.3798849Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.3799166Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.3800311Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.3800616Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.3800808Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.3801100Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.3802203Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.3802507Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.3803609Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.3803909Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.3804178Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.3805347Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.3805668Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.3806757Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.3807056Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.3807325Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.3807459Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.3808169Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.3808326Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.3808519Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.3808720Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.3808941Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.3809156Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.3809541Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.3809943Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.3810152Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.3810352Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.3811139Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.3811342Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.3811576Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.3812353Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.3812577Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.3813005Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.3813388Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.3813627Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.3814620Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.3814839Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.3815133Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.3815307Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.3815504Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.3815756Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3815872Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3816031Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3816152Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3816299Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3816608Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3816760Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3816855Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3816861Z 2023-01-11T21:03:40.3817120Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.3817288Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.3817508Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.3817824Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.3817996Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.3818286Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.3818438Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.3818631Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.3819040Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.3819256Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.3819442Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.3819623Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.3820192Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.3820360Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.3820586Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.3821248Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.3821494Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.3822285Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.3822466Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.3822612Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.3823230Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.3823378Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.3823527Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.3823777Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.3823894Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.3824014Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.3824134Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.3824279Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.3824587Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.3824707Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.3824787Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.3824793Z 2023-01-11T21:03:40.3826937Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:40.3828023Z ================== 2023-01-11T21:03:40.4238738Z ================== 2023-01-11T21:03:40.4239364Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.4240199Z  Write of size 1 at 0x7b740003edbe by thread T3: 2023-01-11T21:03:40.4243963Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:40.4246438Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4247067Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4247738Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4249340Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4250346Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.4251080Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.4251735Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.4252407Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.4252704Z 2023-01-11T21:03:40.4253068Z  Previous write of size 1 at 0x7b740003edbe by main thread: 2023-01-11T21:03:40.4257665Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:40.4260502Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4261332Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4262223Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4263229Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4264073Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.4264798Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.4265585Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:40.4267665Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.4268596Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.4269523Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.4270028Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.4270638Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.4271449Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.4272028Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.4272446Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4273437Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4274399Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4274896Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4275858Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.4276854Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.4277508Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.4278309Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.4278931Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.4280072Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4281098Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4281607Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.4282067Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.4282452Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.4282918Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4283293Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4283532Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4283791Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4284075Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4284551Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4284972Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4285204Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4285381Z 2023-01-11T21:03:40.4285637Z  Location is heap block of size 2520 at 0x7b740003e800 allocated by main thread: 2023-01-11T21:03:40.4285970Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.4286220Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.4286585Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.4286967Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.4287626Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.4288317Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.4288846Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.4289376Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.4289995Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.4291386Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.4293141Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.4294020Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.4295539Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.4296894Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.4297353Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.4297888Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.4299293Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.4300806Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.4302177Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.4303936Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.4304887Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.4307517Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.4310100Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.4312673Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.4315302Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.4316212Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.4317101Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.4319627Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.4322293Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.4324755Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.4327239Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.4328211Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.4330841Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.4333561Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.4335122Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.4336573Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.4337052Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.4337391Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.4338236Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.4339042Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.4339407Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.4339855Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.4340300Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.4340757Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.4341355Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.4342119Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.4342719Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.4343138Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4344163Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4345118Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4345536Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4346498Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.4347424Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.4348078Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.4348925Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.4349537Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.4350641Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4351670Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4352195Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.4352670Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.4353052Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.4353520Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4353900Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4354142Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4354401Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4354759Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4355241Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4355667Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4355900Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4356032Z 2023-01-11T21:03:40.4356289Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.4356612Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.4356972Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.4357521Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.4358052Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.4358530Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.4358977Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.4359325Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.4359934Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.4360430Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.4360845Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.4361236Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.4362003Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.4362723Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.4363132Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.4364035Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.4364877Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.4366199Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.4367837Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.4368475Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.4369802Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.4371100Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.4371670Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.4372456Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4373122Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4373516Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4373986Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4374600Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4375459Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4376234Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4376641Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4376859Z 2023-01-11T21:03:40.4380118Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:40.4381931Z ================== 2023-01-11T21:03:40.4382401Z ================== 2023-01-11T21:03:40.4382858Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.4383444Z  Write of size 1 at 0x7b740003edbf by thread T3: 2023-01-11T21:03:40.4387748Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:40.4390669Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4391508Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4392412Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4393448Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4394460Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.4395271Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.4395987Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.4396357Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.4396520Z 2023-01-11T21:03:40.4396723Z  Previous write of size 1 at 0x7b740003edbf by main thread: 2023-01-11T21:03:40.4399063Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:40.4400711Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4401267Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4401776Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4402342Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4402807Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.4403205Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.4403647Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:40.4404096Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.4405065Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.4405993Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.4406451Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.4407058Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.4407823Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.4408413Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.4408817Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4409825Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4410821Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4411224Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4412196Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.4413131Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.4413817Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.4414733Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.4415348Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.4416472Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4417502Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4418016Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.4418526Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.4418907Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.4419366Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4419740Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4419995Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4420241Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4420531Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4421014Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4421453Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4421672Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4421798Z 2023-01-11T21:03:40.4422028Z  Location is heap block of size 2520 at 0x7b740003e800 allocated by main thread: 2023-01-11T21:03:40.4422356Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.4422602Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.4422904Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.4423292Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.4423982Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.4424682Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.4425209Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.4425737Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.4426314Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.4427714Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.4441828Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.4442768Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.4444198Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.4445593Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.4446058Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.4446530Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.4447949Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.4449481Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.4450870Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.4452263Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.4452807Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.4454229Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.4455925Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.4457432Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.4458889Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.4459370Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.4459859Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.4461310Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.4462774Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.4464147Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.4465573Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.4466111Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.4467577Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.4469112Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.4470528Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.4471957Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.4472463Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.4472813Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.4473650Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.4474452Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.4474900Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.4475309Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.4475743Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.4476205Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.4476847Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.4477622Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.4478210Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.4478631Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4479632Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4480569Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4480989Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4481975Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.4482915Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.4483567Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.4484367Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.4485026Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.4486127Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4487154Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4487667Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.4488133Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.4488519Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.4488991Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4489357Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4489615Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4489901Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4490188Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4490654Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4491094Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4491325Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4491456Z 2023-01-11T21:03:40.4491720Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.4492041Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.4492404Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.4492951Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.4493444Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.4493920Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.4494467Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.4494834Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.4495492Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.4495980Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.4496395Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.4496773Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.4497540Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.4498250Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.4498656Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.4499557Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.4500454Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.4501435Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.4502345Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.4502670Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.4503469Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.4504201Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.4504517Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.4504942Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4505306Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4505557Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4505814Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4506103Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4506634Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4507066Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4507299Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4507425Z 2023-01-11T21:03:40.4509104Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:40.4510166Z ================== 2023-01-11T21:03:40.4510327Z ================== 2023-01-11T21:03:40.4510583Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.4510901Z  Write of size 1 at 0x7b740003edc6 by thread T3: 2023-01-11T21:03:40.4513216Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:40.4514947Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4515430Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4515930Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4516506Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4517063Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.4517474Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.4517851Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.4518216Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.4518368Z 2023-01-11T21:03:40.4518560Z  Previous write of size 1 at 0x7b740003edc6 by main thread: 2023-01-11T21:03:40.4520875Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:40.4522529Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4523007Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4523509Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4524102Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4524584Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.4524972Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.4525412Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:40.4525855Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.4526791Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.4527715Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.4528171Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.4528783Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.4529580Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.4530172Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.4530586Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4531576Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4532529Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4532974Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4533936Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.4534982Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.4535651Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.4536462Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.4537091Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.4539703Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4540808Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4541333Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.4541807Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.4542191Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.4542655Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4543017Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4543316Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4543581Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4543861Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4544339Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4544771Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4545003Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4545121Z 2023-01-11T21:03:40.4545374Z  Location is heap block of size 2520 at 0x7b740003e800 allocated by main thread: 2023-01-11T21:03:40.4545716Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.4545983Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.4546292Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.4546661Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.4547324Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.4548021Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.4548556Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.4549118Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.4549702Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.4551145Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.4552916Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.4553803Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.4555226Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.4556590Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.4557115Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.4557580Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.4559033Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.4560532Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.4561896Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.4563310Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.4563852Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.4565314Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.4566887Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.4568291Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.4569731Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.4570212Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.4570709Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.4572117Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.4573611Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.4575133Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.4576552Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.4577096Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.4578531Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.4580090Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.4581605Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.4583085Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.4583561Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.4583908Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.4584745Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.4585546Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.4585897Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.4586299Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.4586746Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.4587201Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.4587814Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.4588581Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.4589170Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.4589611Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4590638Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4591580Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4591988Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4592958Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.4593891Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.4594548Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.4595422Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.4596031Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.4597468Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4599098Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4599925Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.4600709Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.4601381Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.4602124Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4602735Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4603135Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4603526Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4603985Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4604766Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4605543Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4605965Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4606208Z 2023-01-11T21:03:40.4606571Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.4607062Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.4607637Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.4608449Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.4609222Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.4609924Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.4610613Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.4611243Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.4612295Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.4613127Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.4613760Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.4614546Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.4615813Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.4617142Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.4617811Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.4619481Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.4620930Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.4622485Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.4623923Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.4624342Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.4625122Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.4625859Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.4626161Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.4626585Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4626965Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4627220Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4627469Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4627757Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4628309Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4628751Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4628970Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4629102Z 2023-01-11T21:03:40.4630846Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:40.4631883Z ================== 2023-01-11T21:03:40.4632121Z ================== 2023-01-11T21:03:40.4632375Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.4632696Z  Write of size 1 at 0x7b740003ec19 by thread T3: 2023-01-11T21:03:40.4635108Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:40.4636735Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4637218Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4637730Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4638291Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4638883Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.4639295Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.4639675Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.4640044Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.4640208Z 2023-01-11T21:03:40.4640417Z  Previous write of size 1 at 0x7b740003ec19 by main thread: 2023-01-11T21:03:40.4642749Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:40.4644386Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4644863Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4645378Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4645950Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4646431Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.4646821Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.4647259Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:40.4647706Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.4648639Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.4649610Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.4650073Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.4650683Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.4651450Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.4652048Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.4652469Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4653466Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4654539Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4654959Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4655919Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.4656922Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.4657578Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.4658433Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.4659062Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.4660167Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4661188Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4661699Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.4662165Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.4662364Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.4662618Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4662735Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4662842Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4662964Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4663114Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4663425Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4663544Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4663638Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4663644Z 2023-01-11T21:03:40.4663875Z  Location is heap block of size 2520 at 0x7b740003e800 allocated by main thread: 2023-01-11T21:03:40.4664044Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.4664199Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.4664359Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.4664563Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.4665008Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.4665303Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.4665572Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.4665837Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.4666162Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.4667233Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.4667870Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.4668173Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.4669253Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.4669527Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.4669712Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.4669981Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.4671126Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.4671434Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.4672518Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.4672816Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.4673109Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.4674277Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.4674679Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.4675768Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.4676057Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.4676283Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.4676582Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.4677732Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.4678039Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.4679286Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.4679567Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.4679835Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.4681067Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.4681438Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.4682532Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.4682838Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.4683032Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.4683167Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.4683853Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.4684009Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.4684201Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.4684403Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.4684678Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.4684883Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.4685279Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.4685692Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.4685906Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.4686105Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4686898Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4687104Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4687309Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4688053Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.4688279Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.4688710Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.4689096Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.4689370Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.4690265Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4690481Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4690776Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.4690951Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.4691153Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.4691408Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4691523Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4691628Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4691751Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4691900Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4692212Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4692331Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4692428Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4692434Z 2023-01-11T21:03:40.4692667Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.4692835Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.4693053Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.4693369Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.4693545Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.4693838Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.4694020Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.4694210Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.4694708Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.4694979Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.4695167Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.4695367Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.4695927Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.4696094Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.4696321Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.4697002Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.4697215Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.4697978Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.4698155Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.4698303Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.4698915Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.4699096Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.4699246Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.4699529Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4699646Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4699769Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4699892Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4700039Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4700335Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4700454Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4700547Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4700553Z 2023-01-11T21:03:40.4702224Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882ddc1) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:40.4702309Z ================== 2023-01-11T21:03:40.4781772Z ================== 2023-01-11T21:03:40.4782208Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.4782544Z  Write of size 2 at 0x7b8400016100 by thread T2: 2023-01-11T21:03:40.4786639Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:40.4787322Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4787731Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4788292Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4788837Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4789319Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.4789573Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.4789961Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.4790192Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.4790206Z 2023-01-11T21:03:40.4790539Z  Previous write of size 2 at 0x7b8400016100 by main thread: 2023-01-11T21:03:40.4794522Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:40.4795100Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4795509Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4796001Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4796572Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4796914Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.4797307Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.4797775Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.4798153Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.4799639Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.4800029Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.4800329Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4801542Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4801875Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4802203Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4803473Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.4803917Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.4805329Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4805678Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4805998Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d1de5) 2023-01-11T21:03:40.4806404Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4806591Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4806762Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4806942Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4807174Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4807676Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4807855Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4807999Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4808006Z 2023-01-11T21:03:40.4808398Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2023-01-11T21:03:40.4808663Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.4808868Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.4809124Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.4809452Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.4810072Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.4810349Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.4810670Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.4811078Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.4811577Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.4813299Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.4814317Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.4814978Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.4816609Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.4817140Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.4817411Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.4818426Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.4818710Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.4819030Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.4820289Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.4820666Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.4821994Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4822323Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4822642Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d1de5) 2023-01-11T21:03:40.4823062Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4823231Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4823455Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4823639Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4823890Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4824379Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4824562Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4824708Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4824715Z 2023-01-11T21:03:40.4825115Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.4825374Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.4825716Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.4826165Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.4826342Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.4826637Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.4826795Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.4826988Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.4827516Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.4827851Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.4828114Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.4828453Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.4829453Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.4829734Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.4830156Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.4831394Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.4831803Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.4833241Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.4833567Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.4833828Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.4835017Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.4835255Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.4835531Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.4835962Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4836172Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4836372Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4836589Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4836863Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4837463Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4837653Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4837824Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4837834Z 2023-01-11T21:03:40.4840917Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.4841097Z ================== 2023-01-11T21:03:40.4841208Z ================== 2023-01-11T21:03:40.4841496Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.4841784Z  Write of size 2 at 0x7b8400016106 by thread T2: 2023-01-11T21:03:40.4845774Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:40.4846234Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4846634Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4847130Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4847671Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4848170Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.4848424Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.4848823Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.4849067Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.4849076Z 2023-01-11T21:03:40.4849406Z  Previous write of size 2 at 0x7b8400016106 by main thread: 2023-01-11T21:03:40.4852348Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:40.4852648Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.4852869Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.4853148Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.4853435Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.4853624Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.4853826Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.4854051Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.4854259Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.4855142Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:40.4855356Z #10 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.4855561Z #11 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.4856393Z #12 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.4856629Z #13 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.4856840Z #14 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.4857665Z #15 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.4857908Z #16 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.4858757Z #17 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4858971Z #18 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4859168Z #19 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d1de5) 2023-01-11T21:03:40.4859417Z #20 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4859531Z #21 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4859651Z #22 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4859774Z #23 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4859920Z #24 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4860266Z #25 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4860383Z #26 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4860476Z #27 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4860482Z 2023-01-11T21:03:40.4860696Z  Location is heap block of size 5040 at 0x7b8400015400 allocated by main thread: 2023-01-11T21:03:40.4860860Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.4860984Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.4861171Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.4861376Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.4861819Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.4862084Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.4862349Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.4862643Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.4862967Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.4864046Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.4864668Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.4864996Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.4866055Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.4866330Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.4866506Z #14 at::native::clone(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x191fa09) 2023-01-11T21:03:40.4867186Z #15 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__clone(at::Tensor const&, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional) (libtorch_cpu.so+0x2f261c4) 2023-01-11T21:03:40.4867364Z #16 at::_ops::clone::call(at::Tensor const&, c10::optional) (libtorch_cpu.so+0x22d26c2) 2023-01-11T21:03:40.4867569Z #17 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1851386) 2023-01-11T21:03:40.4868390Z #18 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2edd777) 2023-01-11T21:03:40.4868660Z #19 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290de97) 2023-01-11T21:03:40.4869541Z #20 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.4869751Z #21 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.4869949Z #22 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d1de5) 2023-01-11T21:03:40.4870202Z #23 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4870316Z #24 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4870433Z #25 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4870553Z #26 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4870700Z #27 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4871011Z #28 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4871116Z #29 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4871207Z #30 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4871212Z 2023-01-11T21:03:40.4871423Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.4871586Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.4871803Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.4872118Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.4872290Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.4872583Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.4872736Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.4872923Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.4873327Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.4873545Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.4873756Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.4873951Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.4874535Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.4874779Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.4875009Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.4875677Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.4875887Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.4876656Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.4876834Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.4876978Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.4877587Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.4877738Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.4877888Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.4878171Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.4878287Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.4878409Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.4878528Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.4878674Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.4878984Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.4879126Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.4879220Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.4879225Z 2023-01-11T21:03:40.4880912Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.4880987Z ================== 2023-01-11T21:03:40.5023260Z ================== 2023-01-11T21:03:40.5023693Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5024011Z  Write of size 2 at 0x7b8400019cfc by thread T1: 2023-01-11T21:03:40.5027515Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:40.5028138Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5028560Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5029217Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5029512Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5029833Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5029979Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5030220Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5030357Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5030364Z 2023-01-11T21:03:40.5030564Z  Previous write of size 2 at 0x7b8400019cfc by main thread: 2023-01-11T21:03:40.5032715Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:40.5032976Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5033201Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5033478Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5033763Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5033953Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5034153Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5034409Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.5034686Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5035525Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5035909Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5036248Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5036893Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5037543Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5037942Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5038310Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5039198Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5039435Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5039639Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5040385Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5040668Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5041144Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5041529Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5041764Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5042624Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5042837Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5043133Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5043310Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5043508Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5043763Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5043878Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5043996Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5044115Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5044252Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5044560Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5044705Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5044797Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5044803Z 2023-01-11T21:03:40.5045038Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2023-01-11T21:03:40.5045207Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5045330Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5045490Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5045726Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5046172Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5046440Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5046702Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5046966Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5047288Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5048358Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5048997Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5049328Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5050728Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5051191Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5051485Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5051914Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5053506Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5053973Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5055999Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5056515Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5056956Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5058863Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5059385Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5061166Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5061636Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5061834Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5062177Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5063944Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5064441Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5066178Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5066640Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5067082Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5069008Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5069342Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5070460Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5070938Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5071255Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5071487Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5072644Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5072934Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5073277Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5073585Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5073964Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5074388Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5075076Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5075708Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5076054Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5076385Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5077662Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5077997Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5078340Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5079562Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5079913Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5080644Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5081320Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5081725Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5083117Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5083460Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5083929Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5084213Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5084540Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5084942Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5085128Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5085315Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5085512Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5085735Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5086229Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5086418Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5086550Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5086559Z 2023-01-11T21:03:40.5086873Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.5087049Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5087269Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5087631Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5087874Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5088217Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5088401Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5088708Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5089381Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5089736Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5090040Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5090326Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5091162Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5091405Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5091740Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5092676Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5092973Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5094110Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5094532Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5094720Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5095727Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5095959Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5096189Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5096609Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5096808Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5097011Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5097221Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5097486Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5098085Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5098270Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5098366Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5098375Z 2023-01-11T21:03:40.5101381Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.5101513Z ================== 2023-01-11T21:03:40.5101653Z ================== 2023-01-11T21:03:40.5101825Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5102003Z  Write of size 2 at 0x7b8400019d00 by thread T1: 2023-01-11T21:03:40.5104222Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:40.5104524Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5104842Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5105291Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5105773Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5106218Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5106455Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5106864Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5107105Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5107116Z 2023-01-11T21:03:40.5107476Z  Previous write of size 2 at 0x7b8400019d00 by main thread: 2023-01-11T21:03:40.5110765Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332c9) 2023-01-11T21:03:40.5111186Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5111502Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5111936Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5112466Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5112756Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5113091Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5113471Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.5113814Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5114714Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5115009Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5115325Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5115926Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5116552Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5116896Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5117228Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5118494Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5118938Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5119280Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5120506Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5120857Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5121551Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5122182Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5122580Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5123988Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5124334Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5124863Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5125148Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5125467Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5125874Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5126038Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5126160Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5126266Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5126416Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5126858Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5127045Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5127200Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5127210Z 2023-01-11T21:03:40.5127589Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2023-01-11T21:03:40.5127860Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5128068Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5128324Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5128636Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5129357Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5129777Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5130207Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5130643Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5131167Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5132910Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5133704Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5134012Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5135376Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5135773Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5136054Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5136439Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5138116Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5138707Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5140355Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5140775Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5141176Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5142884Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5143401Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5145035Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5145485Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5145771Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5146213Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5147861Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5148310Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5149476Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5149815Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5150138Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5151913Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5152465Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5154258Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5154857Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5155170Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5155362Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5156158Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5156395Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5156622Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5156932Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5157309Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5157622Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5158054Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5158473Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5158751Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5159057Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5160241Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5160561Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5160838Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5161958Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5162307Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5162860Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5163404Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5163741Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5164941Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5165244Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5165712Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5166004Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5166327Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5166628Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5166798Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5166919Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5167042Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5167178Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5167489Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5167639Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5167786Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5167794Z 2023-01-11T21:03:40.5168108Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.5168396Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5168800Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5169361Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5169688Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5170208Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5170494Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5170861Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5171613Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5172012Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5172339Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5172694Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5173484Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5173733Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5174032Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5175126Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5175587Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5176881Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5177163Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5177402Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5178366Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5178572Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5178764Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5179101Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5179242Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5179409Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5179535Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5179685Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5179995Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5180113Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5180195Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5180202Z 2023-01-11T21:03:40.5181893Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332c9) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.5182024Z ================== 2023-01-11T21:03:40.5182161Z ================== 2023-01-11T21:03:40.5182336Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5182511Z  Write of size 2 at 0x7b8400019d02 by thread T1: 2023-01-11T21:03:40.5185350Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:40.5185761Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5186088Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5186549Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5187019Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5187462Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5187685Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5188033Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5188249Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5188258Z 2023-01-11T21:03:40.5188578Z  Previous write of size 2 at 0x7b8400019d02 by main thread: 2023-01-11T21:03:40.5192210Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88332ee) 2023-01-11T21:03:40.5192681Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5193045Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5193501Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5193975Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5194239Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5194442Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5194752Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.5195081Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5196245Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5196647Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5197000Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5197683Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5198303Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5198666Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5198983Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5200276Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5200611Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5200946Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5201879Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5202112Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5202539Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5203097Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5203526Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5204974Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5205317Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5205768Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5206051Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5206365Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5206777Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5206966Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5207150Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5207335Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5207554Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5208058Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5208244Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5208389Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5208398Z 2023-01-11T21:03:40.5208780Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2023-01-11T21:03:40.5209051Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5209251Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5209506Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5209827Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5210552Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5210981Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5211453Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5211892Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5212404Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5214200Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5215332Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5215833Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5217507Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5218045Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5218326Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5218765Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5220132Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5220613Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5222445Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5222857Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5223296Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5225555Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5226157Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5228170Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5228734Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5229091Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5229635Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5231724Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5232359Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5234349Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5234905Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5235354Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5237123Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5237633Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5239425Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5239914Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5240236Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5240454Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5241575Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5241816Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5242122Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5242447Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5242740Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5243071Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5243708Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5244352Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5244757Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5245076Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5246459Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5246845Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5247198Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5248298Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5248642Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5249271Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5249657Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5249899Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5250768Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5251022Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5251345Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5251522Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5251723Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5251977Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5252091Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5252197Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5252317Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5252462Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5252774Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5252891Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5252987Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5252994Z 2023-01-11T21:03:40.5253237Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.5253405Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5253622Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5253939Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5254113Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5254505Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5254660Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5254852Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5255256Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5255464Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5255648Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5255901Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5256464Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5256677Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5256893Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5257569Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5257782Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5258967Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5259255Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5259490Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5260469Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5260709Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5260949Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5261344Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5261528Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5261772Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5261964Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5262204Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5262712Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5262896Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5263035Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5263046Z 2023-01-11T21:03:40.5265888Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88332ee) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.5266021Z ================== 2023-01-11T21:03:40.5266223Z ================== 2023-01-11T21:03:40.5266494Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5266779Z  Write of size 2 at 0x7b8400019d1e by thread T1: 2023-01-11T21:03:40.5270032Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:40.5270454Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5270812Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5271278Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5271805Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5272244Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5272472Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5272860Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5273081Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5273091Z 2023-01-11T21:03:40.5273402Z  Previous write of size 2 at 0x7b8400019d1e by main thread: 2023-01-11T21:03:40.5276422Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883333a) 2023-01-11T21:03:40.5276817Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5277179Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5277629Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5278098Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5278406Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5278734Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5279111Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.5279503Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5280710Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5281099Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5281440Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5282069Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5282715Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5283049Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5283367Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5284650Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5284987Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5285323Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5286527Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5286943Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5287693Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5288311Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5288709Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5290140Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5290477Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5290943Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5291217Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5291544Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5291961Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5292143Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5292317Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5292509Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5292659Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5292972Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5293089Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5293185Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5293227Z 2023-01-11T21:03:40.5293479Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2023-01-11T21:03:40.5293744Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5293931Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5294150Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5294553Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5295336Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5295851Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5296300Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5296745Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5297324Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5299230Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5300033Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5300594Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5302401Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5302906Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5303210Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5303716Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5305402Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5305978Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5307949Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5308367Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5308833Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5310585Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5310976Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5312731Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5313165Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5313520Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5313931Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5315712Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5316165Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5317875Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5318267Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5318679Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5320537Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5321005Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5322573Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5322945Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5323143Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5323294Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5323972Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5324126Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5324323Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5324567Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5324802Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5325020Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5325443Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5325831Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5326047Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5326244Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5327025Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5327229Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5327434Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5328192Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5328417Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5328847Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5329257Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5329493Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5330372Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5330586Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5330881Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5331056Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5331252Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5331509Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5331623Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5331743Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5331862Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5332015Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5332324Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5332443Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5332523Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5332530Z 2023-01-11T21:03:40.5332773Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.5332942Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5333162Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5333481Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5333683Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5333975Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5334128Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5334488Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5334953Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5335177Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5335365Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5335563Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5336125Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5336290Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5336520Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5337187Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5337397Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5338170Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5338348Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5338535Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5339144Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5339302Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5339464Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5339717Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5339833Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5339952Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5340072Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5340220Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5340527Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5340645Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5340739Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5340746Z 2023-01-11T21:03:40.5342410Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883333a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.5342482Z ================== 2023-01-11T21:03:40.5342621Z ================== 2023-01-11T21:03:40.5342790Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5342964Z  Write of size 2 at 0x7b8400019818 by thread T1: 2023-01-11T21:03:40.5345111Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:40.5345440Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5345651Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5345933Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5346226Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5346501Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5346630Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5346851Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5346989Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5346995Z 2023-01-11T21:03:40.5347181Z  Previous write of size 2 at 0x7b8400019818 by main thread: 2023-01-11T21:03:40.5349317Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8833314) 2023-01-11T21:03:40.5349592Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5349861Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5350141Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5350428Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5350658Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5350860Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5351088Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:40.5351286Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5352016Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5352251Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5352466Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5352852Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5353235Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5353446Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5353646Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5354432Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5354740Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5354949Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5355725Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5355967Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5356395Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5356778Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5357017Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5357871Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5358083Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5358376Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5358577Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5358776Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5359030Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5359145Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5359264Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5359386Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5359535Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5359876Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5359985Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5360077Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5360083Z 2023-01-11T21:03:40.5360305Z  Location is heap block of size 5040 at 0x7b8400019000 allocated by main thread: 2023-01-11T21:03:40.5360469Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5360594Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5360754Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5360959Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5361399Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5361668Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5361932Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5362196Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5362520Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5363593Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5364282Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5364584Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5365617Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5365891Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5366077Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5366351Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5367485Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5367816Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5368920Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5369198Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5369465Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5370638Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5370959Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5372111Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5372418Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5372610Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5372905Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5374002Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5374309Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5375488Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5375806Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5376110Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5377288Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5377609Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5378696Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5379002Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5379222Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5379367Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5380075Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5380230Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5380425Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5380625Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5380862Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5381080Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5381466Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5381852Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5382066Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5382267Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5383050Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5383259Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5383463Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5384256Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5384483Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5384913Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5385298Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5385553Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5386410Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5386621Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5386914Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5387085Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5387282Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5387533Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5387651Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5387771Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5387877Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5388051Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5388361Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5388480Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5388571Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5388578Z 2023-01-11T21:03:40.5388799Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.5388965Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5389212Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5389531Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5389704Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5389996Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5390150Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5390343Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5390749Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5390970Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5391155Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5391337Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5391910Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5392074Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5392297Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5392963Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5393199Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5393990Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5394168Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5394308Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5395021Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5395172Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5395325Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5395580Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5395697Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5395817Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5395938Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5396087Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5396401Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5396522Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5396603Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5396608Z 2023-01-11T21:03:40.5398280Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8833314) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:40.5398383Z ================== 2023-01-11T21:03:40.5600994Z ================== 2023-01-11T21:03:40.5601359Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5601649Z  Write of size 4 at 0x7b940004c9f8 by thread T2: 2023-01-11T21:03:40.5605253Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:40.5605690Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5606052Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5606515Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5606988Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5607420Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5607651Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5608012Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5608224Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5608234Z 2023-01-11T21:03:40.5608517Z  Previous write of size 4 at 0x7b940004c9f8 by main thread: 2023-01-11T21:03:40.5611958Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:40.5612377Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5612604Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5613001Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5613451Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5613724Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5614054Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5614545Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.5614816Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5615896Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5616256Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5616551Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5617065Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5617670Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5618021Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5618340Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5619699Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5620015Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5620327Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5621364Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5621693Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5622276Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5622871Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5623251Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5624586Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5625029Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5625498Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5625750Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5626059Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5626455Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5626619Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5626809Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5626965Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5627136Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5627630Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5627831Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5627970Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5627979Z 2023-01-11T21:03:40.5628377Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2023-01-11T21:03:40.5628698Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5628920Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5629212Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5629505Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5630331Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5630741Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5631010Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5631335Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5631661Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5632775Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5633415Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5633722Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5634824Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5635116Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5635342Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5635611Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5636767Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5637077Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5638152Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5638432Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5638698Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5639896Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5640242Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5641327Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5641625Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5641818Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5642111Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5643210Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5643539Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5644636Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5644916Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5645265Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5646441Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5646760Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5647881Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5648208Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5648399Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5648533Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5649219Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5649372Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5649565Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5649764Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5649987Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5650206Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5650590Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5650993Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5651209Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5651435Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5652245Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5652454Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5652660Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5653402Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5653628Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5654054Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5654536Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5654777Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5655645Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5655906Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5656198Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5656371Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5656569Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5656852Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5656972Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5657078Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5657198Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5657345Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5657654Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5657774Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5657866Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5657872Z 2023-01-11T21:03:40.5658107Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.5658274Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5658493Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5658807Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5658979Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5659276Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5659428Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5659609Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5660014Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5660234Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5660418Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5660615Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5661175Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5661368Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5661592Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5662332Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5662544Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5663312Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5663550Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5663761Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5664605Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5664829Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5665064Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5665446Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5665626Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5665813Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5666005Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5666235Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5666718Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5666947Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5667084Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5667093Z 2023-01-11T21:03:40.5669690Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.5669813Z ================== 2023-01-11T21:03:40.5669971Z ================== 2023-01-11T21:03:40.5670230Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5670415Z  Write of size 4 at 0x7b940004ca00 by thread T2: 2023-01-11T21:03:40.5673047Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:40.5673319Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5673543Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5673878Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5674344Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5674957Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5675138Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5675452Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5675592Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5675599Z 2023-01-11T21:03:40.5675905Z  Previous write of size 4 at 0x7b940004ca00 by main thread: 2023-01-11T21:03:40.5679435Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:40.5679835Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5680081Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5680511Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5680991Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5681301Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5681614Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5681969Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.5682286Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5683369Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5683793Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5684120Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5684711Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5685230Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5685507Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5685786Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5686737Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5687064Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5687358Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5688570Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5688946Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5689650Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5690342Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5690630Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5691917Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5692308Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5692838Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5693146Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5693495Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5693977Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5694182Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5694490Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5694725Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5695002Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5695339Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5695460Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5695540Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5695547Z 2023-01-11T21:03:40.5695800Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2023-01-11T21:03:40.5695968Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5696094Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5696327Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5696532Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5696974Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5697289Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5697558Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5697819Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5698140Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5699224Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5699846Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5700152Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5701221Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5701523Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5701709Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5701978Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5703121Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5703442Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5704503Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5704803Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5705107Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5706278Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5706602Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5707707Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5707998Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5708189Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5708509Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5709631Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5709944Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5711013Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5711288Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5711556Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5712723Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5713092Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5714192Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5714492Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5714836Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5714986Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5715665Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5715817Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5716011Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5716211Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5716446Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5716693Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5717076Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5717489Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5717704Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5717903Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5718693Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5718896Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5719101Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5719842Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5720067Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5720495Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5720918Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5721183Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5722065Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5722277Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5722574Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5722812Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5723070Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5723491Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5723652Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5723845Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5724025Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5724259Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5724740Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5724914Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5725055Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5725068Z 2023-01-11T21:03:40.5725428Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.5725700Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5726045Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5726564Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5726839Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5727329Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5727642Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5727954Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5728655Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5729009Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5729405Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5729765Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5730677Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5730886Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5731199Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5732272Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5732587Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5733746Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5734032Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5734191Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5735126Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5786651Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5786982Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5787370Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5787644Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5787821Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5788006Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5788254Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5788761Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5788927Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5789067Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5789078Z 2023-01-11T21:03:40.5791542Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.5791653Z ================== 2023-01-11T21:03:40.5791873Z ================== 2023-01-11T21:03:40.5792174Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5792492Z  Write of size 4 at 0x7b940004ca04 by thread T2: 2023-01-11T21:03:40.5796126Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:40.5796739Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5797061Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5797591Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5798036Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5798474Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5798695Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5799068Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5799302Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5799312Z 2023-01-11T21:03:40.5799614Z  Previous write of size 4 at 0x7b940004ca04 by main thread: 2023-01-11T21:03:40.5803021Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:40.5803428Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5803802Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5804255Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5804807Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5805122Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5805456Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5805863Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.5806195Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5807253Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5807618Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5807975Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5808496Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5809088Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5809439Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5809765Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5810899Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5811193Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5811413Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5812627Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5812985Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5813656Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5814251Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5814793Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5816135Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5816466Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5816911Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5817168Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5817473Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5817869Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5818133Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5818323Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5818513Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5818744Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5819235Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5819471Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5819611Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5819622Z 2023-01-11T21:03:40.5819986Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2023-01-11T21:03:40.5820261Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5820519Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5820827Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5821162Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5821748Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5839073Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5839560Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5839971Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5840493Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5842139Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5843247Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5843733Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5844971Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5845257Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5845442Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5845714Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5847354Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5847946Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5849958Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5850459Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5850914Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5852899Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5853386Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5855398Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5855933Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5856217Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5856543Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5858165Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5858526Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5860269Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5860893Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5861248Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5863265Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5863881Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5865795Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5866121Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5866327Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5866520Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5867481Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5867732Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5868077Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5868388Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5868752Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5869036Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5869599Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5870073Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5870397Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5870662Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5871781Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5872105Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5872354Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5873526Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5873905Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5874463Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5875072Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5875335Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5876265Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5876480Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5876775Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5876951Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5877150Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5877403Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5877517Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5877637Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5877743Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5877891Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5878204Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5878371Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5878463Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5878470Z 2023-01-11T21:03:40.5878719Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.5878887Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5879110Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5879453Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5879631Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5879926Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5880079Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5880271Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5880675Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5880896Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5881071Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5881268Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5881836Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5881998Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5882223Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5882886Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5883093Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5883890Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5884091Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5884232Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5884844Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5884986Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5885137Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5885391Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5885506Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5885625Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5885745Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5885892Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5886200Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5886317Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5886398Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5886406Z 2023-01-11T21:03:40.5888066Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.5888137Z ================== 2023-01-11T21:03:40.5888189Z ================== 2023-01-11T21:03:40.5888388Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5888561Z  Write of size 4 at 0x7b940004ca08 by thread T2: 2023-01-11T21:03:40.5890704Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:40.5890978Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5891204Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5891485Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5891772Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5892038Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5892181Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5892404Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5892527Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5892533Z 2023-01-11T21:03:40.5892720Z  Previous write of size 4 at 0x7b940004ca08 by main thread: 2023-01-11T21:03:40.5894969Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:40.5895330Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5895553Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5895838Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5896126Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5896317Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5896522Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5896744Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.5896956Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5897671Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5897909Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5898129Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5898513Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5898897Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5899134Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5899335Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5900146Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5900352Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5900558Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5901313Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5901535Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5901961Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5902345Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5902584Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5903505Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5903757Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5904074Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5904251Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5904450Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5904700Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5904815Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5904935Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5905054Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5905200Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5905511Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5905634Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5905715Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5905720Z 2023-01-11T21:03:40.5905948Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2023-01-11T21:03:40.5906113Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5906360Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5906519Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5906723Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5907164Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5907433Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5907696Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5907959Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5908282Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5909414Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5910043Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5910345Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5911384Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5911658Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5911845Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5912113Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5913302Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5913619Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5914919Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5915200Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5915471Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5916643Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5917023Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5918121Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5918416Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5918605Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5918900Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5920000Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5920351Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5921431Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5921705Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5921971Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5923136Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5923453Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5924545Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5924880Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5925074Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5925219Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5925893Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5926046Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5926240Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5926436Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5926667Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5926886Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5927270Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5927653Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5927864Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5928066Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5928850Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5929081Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5929308Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5930051Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5930289Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5930714Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5931099Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5931340Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5932193Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5932407Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5932727Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5932897Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5933095Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5933348Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5933462Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5933610Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5933731Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5933876Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5934188Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5934293Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5934514Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5934521Z 2023-01-11T21:03:40.5934753Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.5934920Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5935141Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5935459Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5935629Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5935920Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5936072Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5936264Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5936671Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5936891Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5937078Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5937275Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5937834Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5938050Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5938273Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5938966Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5939179Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5939947Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5940126Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5940270Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5940880Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5941028Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5941181Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5941430Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5941545Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5941664Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5941782Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5941926Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5942236Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5942354Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5942484Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5942490Z 2023-01-11T21:03:40.5944157Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.5944231Z ================== 2023-01-11T21:03:40.5944294Z ================== 2023-01-11T21:03:40.5944466Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.5944628Z  Write of size 4 at 0x7b940004ca0c by thread T2: 2023-01-11T21:03:40.5946766Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:40.5947027Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5947250Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5947529Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5947821Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5948087Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.5948255Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.5948474Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.5948609Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.5948614Z 2023-01-11T21:03:40.5948800Z  Previous write of size 4 at 0x7b940004ca0c by main thread: 2023-01-11T21:03:40.5950955Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:40.5951215Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.5951438Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.5951713Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.5952002Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.5952189Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.5952387Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.5952610Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:40.5952817Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.5953535Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.5953802Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.5954021Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5954430Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5954879Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5955094Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5955293Z #15 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5956079Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5956297Z #17 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5956504Z #18 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5957249Z #19 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5957476Z #20 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5957902Z #21 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5958317Z #22 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5958555Z #23 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5959433Z #24 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5959663Z #25 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5959942Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5960119Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5960317Z #28 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5960567Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5960679Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5960797Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5960917Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5961066Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5961374Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5961490Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5961583Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5961588Z 2023-01-11T21:03:40.5961808Z  Location is heap block of size 10080 at 0x7b940004b000 allocated by main thread: 2023-01-11T21:03:40.5961959Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.5962080Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.5962240Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.5962444Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.5962909Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.5963173Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.5963459Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.5963725Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.5964050Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.5965128Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.5965755Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.5966059Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.5967096Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.5967436Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.5967622Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.5967889Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.5969038Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.5969350Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5970410Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5970710Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5970990Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5972171Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5972492Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5973594Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5973884Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5974076Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5974529Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.5975715Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.5976034Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.5977099Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.5977374Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.5977642Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.5978811Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.5979161Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.5980285Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.5980574Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.5980765Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.5980912Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.5981587Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.5981740Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.5981931Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.5982131Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.5982361Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.5982579Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.5982990Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.5983373Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.5983606Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.5983807Z #47 at::native::index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x1854f40) 2023-01-11T21:03:40.5984592Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put_(at::Tensor&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x2eddf8d) 2023-01-11T21:03:40.5984796Z #49 at::_ops::index_put_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290d4b4) 2023-01-11T21:03:40.5985002Z #50 at::native::index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x185139a) 2023-01-11T21:03:40.5985769Z #51 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__index_put(at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2edd849) 2023-01-11T21:03:40.5985991Z #52 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:40.5986411Z #53 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:40.5986791Z #54 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x29eecd0) 2023-01-11T21:03:40.5987025Z #55 at::_ops::index_put::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290ded8) 2023-01-11T21:03:40.5987923Z #56 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool), &(torch::autograd::VariableType::(anonymous namespace)::index_put(c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x5880518) 2023-01-11T21:03:40.5988133Z #57 at::_ops::index_put::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool) (libtorch_cpu.so+0x290db2d) 2023-01-11T21:03:40.5988428Z #58 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3e93a1) 2023-01-11T21:03:40.5988603Z #59 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.5988801Z #60 torch::lazy::LazyOpsTest_TestMultiIndexPutMiddleBroadcast_Test::TestBody() (test_lazy+0x2d203e) 2023-01-11T21:03:40.5989051Z #61 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5989165Z #62 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5989287Z #63 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5989409Z #64 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5989556Z #65 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5989874Z #66 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5989992Z #67 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5990073Z #68 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5990078Z 2023-01-11T21:03:40.5990300Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.5990469Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.5990689Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.5991006Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.5991177Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.5991465Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.5991618Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.5991810Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.5992251Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.5992469Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.5992654Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.5992848Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.5993431Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.5993598Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.5993825Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.5994488Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.5994772Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.5995543Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.5995723Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.5995865Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.5996486Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.5996663Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.5996799Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.5997052Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.5997167Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.5997286Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.5997407Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.5997581Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.5997892Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.5998014Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.5998107Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.5998113Z 2023-01-11T21:03:40.5999768Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:40.5999841Z ================== 2023-01-11T21:03:40.8767399Z [ OK ] LazyOpsTest.TestMultiIndexPutMiddleBroadcast (624 ms) 2023-01-11T21:03:40.8767626Z [ RUN ] LazyOpsTest.TestMultiIndexPutTailBroadcast 2023-01-11T21:03:40.9004397Z [ OK ] LazyOpsTest.TestMultiIndexPutTailBroadcast (23 ms) 2023-01-11T21:03:40.9004805Z [ RUN ] LazyOpsTest.TestMaskIndexPut 2023-01-11T21:03:40.9314074Z [ OK ] LazyOpsTest.TestMaskIndexPut (30 ms) 2023-01-11T21:03:40.9314439Z [ RUN ] LazyOpsTest.TestIndexPutImpl 2023-01-11T21:03:40.9510909Z ================== 2023-01-11T21:03:40.9511679Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.9512436Z  Write of size 4 at 0x7b9400058b58 by thread T3: 2023-01-11T21:03:40.9516975Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:40.9520302Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.9521275Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.9522251Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.9523683Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.9524662Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.9525428Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.9526082Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.9526716Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.9526973Z 2023-01-11T21:03:40.9527315Z  Previous write of size 4 at 0x7b9400058b58 by main thread: 2023-01-11T21:03:40.9531533Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:40.9538196Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.9539082Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.9540126Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.9541164Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.9542063Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.9542856Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.9543673Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.9544501Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.9546238Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.9547903Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.9548723Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.9549352Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.9550159Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.9550761Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.9551200Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:40.9552260Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:40.9553323Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:40.9553801Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:40.9555002Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:40.9556047Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9557148Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:40.9558204Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9559330Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:40.9560356Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.9560872Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:40.9561299Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.9561647Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:40.9562081Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9562481Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9562728Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9562988Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9563276Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9563757Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9564200Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9564419Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9564548Z 2023-01-11T21:03:40.9564795Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:40.9565130Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.9565381Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.9565690Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.9566081Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.9566739Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.9567440Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.9567974Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.9568557Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.9569150Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.9570535Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.9572658Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.9574131Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.9576615Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.9579105Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.9579675Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.9580140Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.9581549Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.9583188Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.9584566Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.9585977Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.9586520Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.9588456Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.9591064Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.9593589Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.9596098Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.9596865Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.9597735Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.9599458Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.9600957Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.9602561Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.9604051Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.9604772Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.9607128Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.9609282Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.9610693Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.9612183Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.9612652Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.9613007Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.9613880Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.9614790Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.9615158Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.9615565Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.9616010Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.9616458Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.9617067Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.9617837Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.9618433Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.9618871Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:40.9619930Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:40.9620992Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:40.9621467Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:40.9622588Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:40.9623638Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9624731Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:40.9625768Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9626873Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:40.9627908Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.9628392Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:40.9628867Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.9629220Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:40.9629653Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9630017Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9630273Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9630531Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9630836Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9631316Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9631756Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9632026Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9632155Z 2023-01-11T21:03:40.9632390Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:40.9632730Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.9633091Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.9633640Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.9634133Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.9634767Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.9635437Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.9636015Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.9637133Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.9637749Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.9638368Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.9638845Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.9639857Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.9640764Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.9641483Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.9642972Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.9644345Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.9646154Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.9647789Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.9648333Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.9649592Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.9650838Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.9651380Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.9652095Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9652759Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9653186Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9653627Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9654089Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9654948Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9655649Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9655953Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9656150Z 2023-01-11T21:03:40.9659112Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.9660927Z ================== 2023-01-11T21:03:40.9661376Z ================== 2023-01-11T21:03:40.9661813Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.9662342Z  Write of size 4 at 0x7b9400058b58 by thread T1: 2023-01-11T21:03:40.9665774Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:40.9667563Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.9668260Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.9668998Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.9669759Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.9670549Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.9671115Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.9671669Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.9672260Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.9672494Z 2023-01-11T21:03:40.9672756Z  Previous write of size 4 at 0x7b9400058b58 by main thread: 2023-01-11T21:03:40.9676303Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:40.9678694Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.9679389Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.9680123Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.9680983Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.9681735Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.9682329Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.9682983Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.9683635Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.9684974Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.9686374Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.9687027Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.9687948Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.9689030Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.9689877Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.9690488Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:40.9692046Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:40.9693502Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:40.9694168Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:40.9695852Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:40.9697459Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9699509Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:40.9701341Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9703249Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:40.9705040Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.9705894Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:40.9706633Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.9707201Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:40.9707942Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9708584Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9709012Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9709443Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9709929Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9710740Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9711500Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9711878Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9712098Z 2023-01-11T21:03:40.9712515Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:40.9713125Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.9713566Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.9714126Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.9714836Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.9715970Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.9717194Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.9718119Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.9719034Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.9720049Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.9722382Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.9725370Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.9726877Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.9729227Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.9730667Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.9731128Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.9731595Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.9733088Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.9734697Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.9736068Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.9737535Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.9738119Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.9739547Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.9741093Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.9742499Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.9743946Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.9744427Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.9744942Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.9746388Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.9747853Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.9749234Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.9750624Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.9751170Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.9752607Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.9754198Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.9755691Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.9757105Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.9757583Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.9757934Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.9758778Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.9759570Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.9759931Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.9760339Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.9760768Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.9761257Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.9761867Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.9762712Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.9763563Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.9764264Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:40.9765971Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:40.9767581Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:40.9768342Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:40.9770010Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:40.9771690Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9773514Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:40.9775600Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9777453Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:40.9779257Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.9780039Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:40.9780745Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.9781294Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:40.9781977Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9782573Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9782975Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9783410Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9783854Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9784663Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9785399Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9785831Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9786040Z 2023-01-11T21:03:40.9786429Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:40.9786873Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.9787367Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.9788180Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.9789115Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.9789878Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.9790650Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.9791304Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.9792299Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.9793054Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.9793629Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.9794243Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.9795793Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.9796847Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.9797253Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.9798152Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.9799004Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.9799992Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.9800905Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.9801296Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.9802070Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.9802838Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.9803154Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.9803586Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9803952Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9804209Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9804469Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9804749Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9805228Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9805665Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9805899Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9806034Z 2023-01-11T21:03:40.9807709Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.9808738Z ================== 2023-01-11T21:03:40.9808905Z ================== 2023-01-11T21:03:40.9809160Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.9809481Z  Write of size 4 at 0x7b9400058b58 by thread T2: 2023-01-11T21:03:40.9811777Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:40.9813462Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.9813943Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.9814544Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.9815116Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.9815672Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.9816086Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.9816470Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.9816835Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.9816985Z 2023-01-11T21:03:40.9817174Z  Previous write of size 4 at 0x7b9400058b58 by main thread: 2023-01-11T21:03:40.9819477Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837498) 2023-01-11T21:03:40.9821101Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.9821628Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.9822135Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.9822702Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.9823230Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.9823624Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.9824063Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.9824692Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.9826102Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.9827583Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.9828377Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.9829348Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.9830714Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.9831781Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.9832488Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:40.9834389Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:40.9836332Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:40.9837157Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:40.9839188Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:40.9840965Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9843012Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:40.9844947Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9847011Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:40.9848818Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.9849611Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:40.9850320Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.9850899Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:40.9851681Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9852298Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9852713Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9853101Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9853579Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9854509Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9855316Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9855718Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9855940Z 2023-01-11T21:03:40.9856389Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:40.9856974Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.9857239Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.9857534Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.9857915Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.9858569Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.9859267Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.9859803Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.9860334Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.9860921Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.9862395Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.9864197Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.9865077Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.9866402Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.9867755Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.9868209Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.9868677Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.9870220Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.9871748Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.9873110Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.9874506Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.9875108Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.9876555Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.9878144Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.9879774Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.9882267Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.9883104Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.9883973Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:40.9886603Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:40.9888917Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:40.9891330Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:40.9893823Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:40.9894859Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:40.9897019Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:40.9899370Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:40.9901577Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:40.9903933Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:40.9904716Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:40.9905290Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:40.9906867Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:40.9908182Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:40.9908793Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:40.9909522Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:40.9909973Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:40.9910425Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.9911038Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.9911811Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.9912411Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.9912848Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:40.9913912Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:40.9915060Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:40.9915539Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:40.9916658Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:40.9917710Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9918807Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:40.9919863Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9920970Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:40.9921983Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.9922502Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:40.9922943Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.9923294Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:40.9923715Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9924091Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9924372Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9924633Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9924907Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9925385Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9925821Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9926051Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9926180Z 2023-01-11T21:03:40.9926410Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:40.9926747Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:40.9927110Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:40.9927650Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:40.9928142Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:40.9928607Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:40.9929058Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:40.9929421Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:40.9930028Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:40.9930808Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:40.9931202Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:40.9931599Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:40.9932369Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:40.9933110Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:40.9933515Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:40.9934573Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:40.9935417Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:40.9936402Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:40.9937310Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:40.9937644Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:40.9938428Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:40.9939171Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:40.9939488Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:40.9939917Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9940344Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9940660Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9941051Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9941482Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9942270Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9943021Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9943500Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9943697Z 2023-01-11T21:03:40.9946478Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837498) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:40.9948191Z ================== 2023-01-11T21:03:40.9948462Z ================== 2023-01-11T21:03:40.9948916Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:40.9949452Z  Write of size 4 at 0x7b9400058b60 by thread T3: 2023-01-11T21:03:40.9953484Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:40.9956270Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.9957099Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.9957992Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.9958999Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.9959869Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:40.9960541Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:40.9961247Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:40.9961800Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:40.9962063Z 2023-01-11T21:03:40.9962391Z  Previous write of size 4 at 0x7b9400058b60 by main thread: 2023-01-11T21:03:40.9966498Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:40.9969287Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:40.9970061Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:40.9970969Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:40.9972033Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:40.9972738Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:40.9973131Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:40.9973568Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:40.9974012Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:40.9975055Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:40.9976061Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:40.9976519Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:40.9977170Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:40.9977944Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:40.9978534Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:40.9978969Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:40.9980031Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:40.9981049Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:40.9981523Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:40.9982608Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:40.9983632Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9984792Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:40.9985860Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:40.9986967Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:40.9987997Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:40.9988478Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:40.9988914Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:40.9989250Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:40.9989687Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:40.9990068Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:40.9990321Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:40.9990566Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:40.9990712Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:40.9991021Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:40.9991140Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:40.9991233Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:40.9991240Z 2023-01-11T21:03:40.9991487Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:40.9991658Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:40.9991816Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:40.9991978Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:40.9992185Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:40.9992626Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:40.9992923Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:40.9993191Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:40.9993455Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:40.9993781Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:40.9994927Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:40.9995570Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:40.9995875Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:40.9996951Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:40.9997229Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:40.9997416Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:40.9997686Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:40.9998838Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:40.9999146Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0000220Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0000640Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0001051Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0002930Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0003541Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0005410Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0005928Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0006332Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0006878Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0008815Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0009353Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0011253Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0011762Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0012216Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0014437Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0015108Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0017126Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0017663Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0017989Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0018237Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0019413Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0019720Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0020055Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0020425Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0020852Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0021231Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0021919Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0022667Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0023044Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0023435Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0024948Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0025351Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0025822Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0027299Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0027730Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0029273Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0029827Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0031420Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0031811Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0032295Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0032617Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0032917Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0033388Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0033597Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0033815Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0034028Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0034306Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0034916Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0035140Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0035294Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0035326Z 2023-01-11T21:03:41.0035674Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.0035848Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0036074Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0036394Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0036626Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0036920Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0037073Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0037290Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0037700Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0037922Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0038111Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0038307Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0038873Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0039041Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0039267Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0039932Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0040147Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0040916Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0041140Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0041270Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0041922Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0042069Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0042209Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0042462Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0042576Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0042697Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0042817Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0042965Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0043277Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0043395Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0043490Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0043497Z 2023-01-11T21:03:41.0045157Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0045228Z ================== 2023-01-11T21:03:41.0045294Z ================== 2023-01-11T21:03:41.0045462Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0045637Z  Write of size 4 at 0x7b9400058b60 by thread T1: 2023-01-11T21:03:41.0047819Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:41.0048103Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0048326Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0048605Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0048893Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0049162Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0049307Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0049530Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0049665Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0049671Z 2023-01-11T21:03:41.0049855Z  Previous write of size 4 at 0x7b9400058b60 by main thread: 2023-01-11T21:03:41.0051962Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:41.0052250Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0052468Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0052748Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0053061Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0053255Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0053458Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0053684Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0053893Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0054790Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0055033Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0055253Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0055640Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0056027Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0056242Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0056458Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0057312Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0057623Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0057880Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0059184Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0059629Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0061134Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0061583Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0063117Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0063575Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0064046Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0064360Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0064703Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0065164Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0065375Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0065583Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0065786Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0066040Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0066574Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0066772Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0066915Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0066948Z 2023-01-11T21:03:41.0067341Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0067648Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0067870Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0068136Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0068509Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0069316Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0069750Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0070198Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0070672Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0071273Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0073257Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0074436Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0075057Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0076944Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0077424Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0077754Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0078232Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0080360Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0080939Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0082828Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0083346Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0083829Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0085902Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0086496Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0088555Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0089102Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0089459Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0090005Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0092101Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0092676Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0094774Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0095074Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0095344Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0096512Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0096837Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0097942Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0098268Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0098483Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0098631Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0099309Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0099462Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0099659Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0099859Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0100093Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0100308Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0100690Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0101075Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0101290Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0101505Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0102346Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0102606Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0102880Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0103711Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0103956Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0104806Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0105057Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0105933Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0106145Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0106437Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0106610Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0106774Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0107028Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0107167Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0107288Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0107398Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0107546Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0107859Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0107978Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0108071Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0108077Z 2023-01-11T21:03:41.0108313Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.0108482Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0108706Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0109030Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0109203Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0109496Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0109647Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0109841Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0110247Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0110470Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0110642Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0110839Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0111416Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0111610Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0111835Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0112543Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0112757Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0113522Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0113701Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0113844Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0114457Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0114672Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0114826Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0115082Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0115198Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0115317Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0115437Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0115585Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0115897Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0116049Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0116145Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0116151Z 2023-01-11T21:03:41.0117853Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0117979Z ================== 2023-01-11T21:03:41.0118061Z ================== 2023-01-11T21:03:41.0118339Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0118632Z  Write of size 4 at 0x7b9400058b60 by thread T2: 2023-01-11T21:03:41.0122340Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:41.0122788Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0123150Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0123622Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0124078Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0124529Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0124867Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0125231Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0125431Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0125442Z 2023-01-11T21:03:41.0125779Z  Previous write of size 4 at 0x7b9400058b60 by main thread: 2023-01-11T21:03:41.0129580Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x88374f8) 2023-01-11T21:03:41.0130024Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0130370Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0130827Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0131315Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0131658Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0132022Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0132393Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0132732Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0133896Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0134474Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0134851Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0135614Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0136250Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0136607Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0136845Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0138149Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0138519Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0138910Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0140211Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0140686Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0142157Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0142607Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0144025Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0144392Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0144841Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0145144Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0145441Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0145870Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0146087Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0146270Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0146479Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0146755Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0147252Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0147442Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0147582Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0147592Z 2023-01-11T21:03:41.0147992Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0148315Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0148457Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0148656Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0148935Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0149636Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0150036Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0150437Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0150822Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0151297Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0152802Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0153733Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0154188Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0155820Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0156204Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0156511Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0156954Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0158679Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0159140Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0160686Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0161218Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0161618Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0163390Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0163955Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0165648Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0166081Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0166424Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0166848Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0168534Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0169002Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0170581Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0170979Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0171360Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0173089Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0173614Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0175355Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0175783Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0176063Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0176277Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0177236Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0177449Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0177730Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0178114Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0178518Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0178902Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0179629Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0180283Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0180650Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0181016Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0182488Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0182853Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0183283Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0184708Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0185138Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0186727Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0187142Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0188612Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0188972Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0189409Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0189703Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0189978Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0190403Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0190595Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0190807Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0191012Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0191263Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0191819Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0192016Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0192155Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0192182Z 2023-01-11T21:03:41.0192571Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.0192870Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0193246Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0193836Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0194126Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0194681Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0194987Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0195314Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0196022Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0196403Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0196716Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0197058Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0198026Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0198300Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0198677Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0199822Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0200185Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0201502Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0201859Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0202080Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0203188Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0203442Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0203692Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0204125Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0204299Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0204503Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0204703Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0204957Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0205498Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0205699Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0205854Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0205865Z 2023-01-11T21:03:41.0208791Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x88374f8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0208910Z ================== 2023-01-11T21:03:41.0209020Z ================== 2023-01-11T21:03:41.0209306Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0209610Z  Write of size 4 at 0x7b9400058b64 by thread T3: 2023-01-11T21:03:41.0212349Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:41.0212661Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0212888Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0213168Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0213458Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0213722Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0213869Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0214095Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0214233Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0214240Z 2023-01-11T21:03:41.0214541Z  Previous write of size 4 at 0x7b9400058b64 by main thread: 2023-01-11T21:03:41.0216681Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:41.0216994Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0217217Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0217497Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0217822Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0218018Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0218218Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0218447Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0218660Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0219377Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0219618Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0219835Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0220214Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0220611Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0220820Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0221023Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0221903Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0222162Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0222410Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0223243Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0223486Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0224355Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0224598Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0225455Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0225691Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0225949Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0226150Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0226316Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0226570Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0226685Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0226803Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0226924Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0227070Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0227380Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0227496Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0227576Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0227585Z 2023-01-11T21:03:41.0227807Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0227973Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0228140Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0228313Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0228651Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0229121Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0229426Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0229717Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0230008Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0230360Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0231555Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0232243Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0232572Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0233683Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0233986Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0234200Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0234505Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0235857Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0236258Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0237342Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0237648Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0237943Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0239182Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0239557Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0240945Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0266049Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0266438Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0266915Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0268754Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0269158Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0270727Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0271222Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0271677Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0273680Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0274263Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0276249Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0276791Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0277122Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0277369Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0278606Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0278898Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0279236Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0279563Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0279943Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0280296Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0280924Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0281538Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0281878Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0282214Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0283252Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0283536Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0283830Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0285178Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0285578Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0286962Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0287372Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0288785Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0289185Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0289601Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0289885Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0290152Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0290611Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0290804Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0290991Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0291179Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0291408Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0291916Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0292098Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0292239Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0292250Z 2023-01-11T21:03:41.0292640Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.0292914Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0293278Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0293779Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0294059Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0294660Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0294902Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0295191Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0295826Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0296171Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0296442Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0296742Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0297562Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0297892Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0298213Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0298930Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0299145Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0300014Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0300295Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0300525Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0301548Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0301806Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0302052Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0302460Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0302676Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0302897Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0303105Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0303334Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0303823Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0304081Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0304213Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0304242Z 2023-01-11T21:03:41.0307155Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0307283Z ================== 2023-01-11T21:03:41.0308290Z ================== 2023-01-11T21:03:41.0308617Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0308917Z  Write of size 4 at 0x7b9400058b64 by thread T1: 2023-01-11T21:03:41.0312294Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:41.0312710Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0313069Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0313540Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0314049Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0314671Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0314918Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0315291Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0315536Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0315546Z 2023-01-11T21:03:41.0315886Z  Previous write of size 4 at 0x7b9400058b64 by main thread: 2023-01-11T21:03:41.0319898Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:41.0320380Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0320789Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0321306Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0321832Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0322185Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0322552Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0322978Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0323357Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0324635Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0325096Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0325536Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0326222Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0326961Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0327337Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0327740Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0329254Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0329640Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0330101Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0331650Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0332140Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0333692Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0334143Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0335884Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0336293Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0336774Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0337099Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0337376Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0337846Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0338056Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0338278Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0338502Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0338770Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0339345Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0339499Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0339652Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0339673Z 2023-01-11T21:03:41.0339910Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0340080Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0340206Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0340369Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0340575Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0341056Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0341327Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0341590Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0341854Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0342185Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0343267Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0343891Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0344232Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0345290Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0345568Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0345755Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0346025Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0347159Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0347474Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0348531Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0348857Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0349129Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0350301Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0350659Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0351759Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0352076Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0352267Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0352561Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0353689Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0354010Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0355148Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0355428Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0355698Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0356904Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0357250Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0358344Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0358635Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0358827Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0358981Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0359655Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0359809Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0360003Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0360228Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0360512Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0360751Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0361180Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0361573Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0361787Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0362001Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0362842Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0363064Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0363314Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0364157Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0364403Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0365323Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0365569Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0366775Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0367147Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0367576Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0367878Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0368129Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0368543Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0368725Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0368915Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0369115Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0369363Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0369892Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0370082Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0370228Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0370237Z 2023-01-11T21:03:41.0370634Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.0370898Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0371322Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0371847Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0372132Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0372667Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0372937Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0373263Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0374017Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0374689Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0375032Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0375401Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0376445Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0376739Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0377144Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0378364Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0378751Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0380195Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0380597Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0380816Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0381780Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0382034Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0382287Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0382735Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0382945Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0383149Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0383357Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0383625Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0384200Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0384423Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0384584Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0384597Z 2023-01-11T21:03:41.0387671Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0387801Z ================== 2023-01-11T21:03:41.0387926Z ================== 2023-01-11T21:03:41.0388204Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0388496Z  Write of size 4 at 0x7b9400058b64 by thread T2: 2023-01-11T21:03:41.0392368Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:41.0392890Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0393282Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0393766Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0394271Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0394805Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0395022Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0395394Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0395624Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0395633Z 2023-01-11T21:03:41.0395988Z  Previous write of size 4 at 0x7b9400058b64 by main thread: 2023-01-11T21:03:41.0399936Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883751b) 2023-01-11T21:03:41.0400506Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0400890Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0401439Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0401944Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0402288Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0402622Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0403031Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0403414Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0404625Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0405037Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0405453Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0406060Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0406745Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0407146Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0407381Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0408302Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0408526Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0408774Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0409622Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0409865Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0410712Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0410952Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0411823Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0412065Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0412353Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0412530Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0412684Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0412935Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0413048Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0413167Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0413287Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0413433Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0413745Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0413866Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0413959Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0413966Z 2023-01-11T21:03:41.0414209Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0414480Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0414594Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0414755Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0414960Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0415403Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0415674Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0415940Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0416207Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0416533Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0417712Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0418339Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0418656Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0419684Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0419958Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0420145Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0420417Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0421613Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0421919Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0422982Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0423276Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0423545Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0424707Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0425079Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0426182Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0426471Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0426663Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0426957Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0428073Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0428407Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0429490Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0429779Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0430046Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0431203Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0431523Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0432621Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0432960Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0433156Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0433303Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0433980Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0434132Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0434325Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0434522Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0434823Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0435045Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0435431Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0435818Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0436031Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0436251Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0437087Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0437379Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0437630Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0438461Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0438709Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0439556Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0439803Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0440674Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0440915Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0441175Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0441351Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0441538Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0441793Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0441909Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0442028Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0442134Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0442280Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0442589Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0442707Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0442801Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0442807Z 2023-01-11T21:03:41.0443029Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.0443198Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0443416Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0443733Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0443904Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0444198Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0444351Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0444545Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0444947Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0445167Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0445338Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0445536Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0446109Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0446310Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0446519Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0447226Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0447438Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0448201Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0448381Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0448527Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0449138Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0449286Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0449435Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0449685Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0449800Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0449921Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0450040Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0450182Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0450534Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0450639Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0450732Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0450737Z 2023-01-11T21:03:41.0452414Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883751b) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0452494Z ================== 2023-01-11T21:03:41.0452547Z ================== 2023-01-11T21:03:41.0452715Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0452889Z  Write of size 4 at 0x7b9400058b68 by thread T3: 2023-01-11T21:03:41.0455108Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:41.0455386Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0455607Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0455889Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0456181Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0456493Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0456633Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0456843Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0456978Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0456984Z 2023-01-11T21:03:41.0457203Z  Previous write of size 4 at 0x7b9400058b68 by main thread: 2023-01-11T21:03:41.0459391Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:41.0459648Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0459866Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0460148Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0460439Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0460634Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0460835Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0461090Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0461356Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0462068Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0462366Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0462586Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0462973Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0463359Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0463571Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0463785Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0464624Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0464840Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0465085Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0465924Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0466193Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0467066Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0467314Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0468187Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0468402Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0468662Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0468837Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0469002Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0469255Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0469356Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0469476Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0469595Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0469741Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0470052Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0470200Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0470292Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0470298Z 2023-01-11T21:03:41.0470525Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0470689Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0470812Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0470958Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0471163Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0471636Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0471920Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0472184Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0472449Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0472770Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0473843Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0474478Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0474882Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0475938Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0476212Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0476401Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0476675Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0477822Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0478126Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0479231Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0479533Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0479803Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0480957Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0481292Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0482380Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0482693Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0482885Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0483205Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0484318Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0484625Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0485687Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0485975Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0486244Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0487454Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0487787Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0488869Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0489160Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0489353Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0489498Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0490172Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0490350Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0490542Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0490741Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0490975Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0491194Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0491602Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0491993Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0492204Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0492420Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0493263Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0493486Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0493736Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0494667Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0494961Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0495842Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0496100Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0496957Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0497173Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0497435Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0497614Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0497781Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0498038Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0498154Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0498275Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0498394Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0498528Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0498836Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0498957Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0499050Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0499056Z 2023-01-11T21:03:41.0499304Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.0499469Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0499689Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0500008Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0500181Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0500502Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0500696Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0500888Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0501293Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0501512Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0501704Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0501900Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0502463Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0502626Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0502854Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0503515Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0503727Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0504490Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0504697Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0504839Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0505476Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0505626Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0505775Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0506026Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0506142Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0506262Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0506385Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0506534Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0506840Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0506959Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0507038Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0507056Z 2023-01-11T21:03:41.0508719Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0508791Z ================== 2023-01-11T21:03:41.0508854Z ================== 2023-01-11T21:03:41.0509009Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0509184Z  Write of size 4 at 0x7b9400058b68 by thread T1: 2023-01-11T21:03:41.0511335Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:41.0511632Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0511850Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0512132Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0512421Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0512690Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0512829Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0513049Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0513184Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0513190Z 2023-01-11T21:03:41.0513364Z  Previous write of size 4 at 0x7b9400058b68 by main thread: 2023-01-11T21:03:41.0515586Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:41.0515876Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0516091Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0516394Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0516684Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0516876Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0517076Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0517302Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0517514Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0518233Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0518470Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0518689Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0519074Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0519464Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0519677Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0519920Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0520796Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0521031Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0521278Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0522109Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0522353Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0523197Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0523436Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0524308Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0524551Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0524835Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0525012Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0525178Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0525428Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0525541Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0525647Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0525769Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0525917Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0526228Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0526349Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0526442Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0526448Z 2023-01-11T21:03:41.0526674Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0526841Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0526965Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0527125Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0527331Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0527772Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0528041Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0528304Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0528569Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0528922Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0530010Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0530643Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0530947Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0531970Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0532243Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0532428Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0532722Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0533886Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0534192Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0535358Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0535637Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0535906Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0537073Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0537489Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0538581Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0538870Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0539064Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0539363Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0540477Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0540819Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0541922Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0542201Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0542468Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0543632Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0543965Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0545079Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0545392Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0545584Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0545729Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0546404Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0546570Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0546749Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0546945Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0547176Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0547394Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0547779Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0548169Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0548381Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0548598Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0549495Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0549714Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0549962Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0550789Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0551033Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0551899Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0552145Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0553005Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0553251Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0553511Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0553709Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0553876Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0554135Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0554247Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0554370Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0554488Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0554704Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0555021Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0555128Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0555221Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0555229Z 2023-01-11T21:03:41.0555449Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.0555617Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0555835Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0556151Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0556324Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0556620Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0556774Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0556964Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0557368Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0557588Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0557775Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0557969Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0558556Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0558718Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0558969Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0559636Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0559848Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0560612Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0560791Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0560934Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0561549Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0561722Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0561928Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0562182Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0562298Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0562419Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0562609Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0562782Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0563094Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0563212Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0563304Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0563309Z 2023-01-11T21:03:41.0565021Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0565095Z ================== 2023-01-11T21:03:41.0565160Z ================== 2023-01-11T21:03:41.0565330Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0565495Z  Write of size 4 at 0x7b9400058b68 by thread T2: 2023-01-11T21:03:41.0567647Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:41.0567909Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0568130Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0568409Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0568727Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0568995Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0569134Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0569356Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0569515Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0569521Z 2023-01-11T21:03:41.0569707Z  Previous write of size 4 at 0x7b9400058b68 by main thread: 2023-01-11T21:03:41.0571840Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883753f) 2023-01-11T21:03:41.0572092Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0572310Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0572589Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0572880Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0573073Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0573273Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0573502Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0573714Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0574548Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0574830Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0575054Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0575439Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0575828Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0576040Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0576256Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0577109Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0577325Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0577570Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0578402Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0578679Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0579552Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0579816Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0580680Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0580897Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0581154Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0581332Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0581496Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0581748Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0581862Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0581984Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0582105Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0582241Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0582551Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0582699Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0582791Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0582797Z 2023-01-11T21:03:41.0583022Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0583187Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0583312Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0583473Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0583705Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0584146Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0584414Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0584679Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0584943Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0585269Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0586337Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0586972Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0587300Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0588346Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0588635Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0588823Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0589094Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0590235Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0590540Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0591651Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0591954Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0592220Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0593392Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0593714Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0594877Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0595212Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0595408Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0595730Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0596831Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0597140Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0598212Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0598488Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0598762Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0599986Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0600308Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0601390Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0601691Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0601872Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0602022Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0602712Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0602899Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0603090Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0603274Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0603505Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0603745Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0604131Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0604533Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0604746Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0604959Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0605798Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0606018Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0606267Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0607091Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0607358Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0608234Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0608480Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0609335Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0609549Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0609809Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0609983Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0610149Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0610403Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0610517Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0610636Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0610756Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0610901Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0611213Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0611333Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0611440Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0611446Z 2023-01-11T21:03:41.0611661Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.0611828Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0612047Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0612362Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0612568Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0612864Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0613018Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0613209Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0613614Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0613835Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0614020Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0614217Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0614885Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0615049Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0615274Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0615937Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0616149Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0616920Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0617145Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0617323Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0617949Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0618095Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0618233Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0618490Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0618604Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0618728Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0618851Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0618997Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0619305Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0619423Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0619516Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0619523Z 2023-01-11T21:03:41.0621172Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883753f) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0621246Z ================== 2023-01-11T21:03:41.0621311Z ================== 2023-01-11T21:03:41.0621478Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0621653Z  Write of size 4 at 0x7b9400058b6c by thread T3: 2023-01-11T21:03:41.0623837Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:41.0624096Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0624316Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0624597Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0624888Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0625151Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0625295Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0625521Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0625656Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0625664Z 2023-01-11T21:03:41.0625850Z  Previous write of size 4 at 0x7b9400058b6c by main thread: 2023-01-11T21:03:41.0627967Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:41.0628250Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0628498Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0628779Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0629067Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0629258Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0629459Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0629688Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0629901Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0630618Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0630855Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0631079Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0631468Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0631855Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0632096Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0632308Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0633184Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0633404Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0633654Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0634493Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0634807Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0635676Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0635923Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0636777Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0637052Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0637315Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0637493Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0637658Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0637911Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0638027Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0638147Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0638270Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0638419Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0638717Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0638834Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0638926Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0638931Z 2023-01-11T21:03:41.0639153Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0639319Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0639445Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0639608Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0639813Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0640255Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0640521Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0640785Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0641050Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0641405Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0642495Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0643134Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0643436Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0644460Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0644747Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0644958Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0645228Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0646380Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0646692Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0647763Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0648042Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0648307Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0649500Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0649844Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0650933Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0651235Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0651426Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0651723Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0652821Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0653154Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0654253Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0654620Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0654890Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0656063Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0656385Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0657509Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0657859Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0658053Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0658198Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0658875Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0659027Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0659219Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0659416Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0659651Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0659872Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0660257Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0660641Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0660852Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0661067Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0661962Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0662186Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0662434Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0663271Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0663531Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0664376Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0664621Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0665478Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0665726Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0666011Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0666189Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0666355Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0666607Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0666721Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0666841Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0666962Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0667109Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0667431Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0667550Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0667630Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0667635Z 2023-01-11T21:03:41.0667849Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.0668015Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0668232Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0668546Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0668718Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0669009Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0669164Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0669355Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0669753Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0669974Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0670158Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0670380Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0670942Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0671137Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0671362Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0672020Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0672231Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0672993Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0673173Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0673315Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0673924Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0674070Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0674218Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0674474Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0674650Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0674805Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0674923Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0675070Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0675378Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0675495Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0675589Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0675594Z 2023-01-11T21:03:41.0677302Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0677378Z ================== 2023-01-11T21:03:41.0677444Z ================== 2023-01-11T21:03:41.0677612Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0677777Z  Write of size 4 at 0x7b9400058b6c by thread T1: 2023-01-11T21:03:41.0679910Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:41.0680171Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0680396Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0680675Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0680993Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0681260Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0681399Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0681650Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0681789Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0681797Z 2023-01-11T21:03:41.0681985Z  Previous write of size 4 at 0x7b9400058b6c by main thread: 2023-01-11T21:03:41.0684121Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:41.0684376Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0684599Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0684882Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0685169Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0685360Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0685563Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0685792Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0686031Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0686775Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0687013Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0687232Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0687618Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0688005Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0688220Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0688434Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0689496Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0689715Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0689963Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0690789Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0691064Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0691952Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0692201Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0693060Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0693275Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0693536Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0693711Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0693875Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0694130Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0694246Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0694454Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0694577Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0694771Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0695068Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0695187Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0695280Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0695285Z 2023-01-11T21:03:41.0695511Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0695677Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0695804Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0695999Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0696206Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0696651Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0696919Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0697187Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0697454Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0697777Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0698842Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0699478Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0699818Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0700865Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0701154Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0701339Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0701605Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0702742Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0703049Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0704174Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0704447Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0704716Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0705889Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0706203Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0707294Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0707618Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0707835Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0708130Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0709226Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0709533Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0710603Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0710879Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0711185Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0712381Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0712701Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0713794Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0714100Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0714290Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0714435Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0715176Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0715364Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0715562Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0715762Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0716022Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0716240Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0716624Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0717007Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0717217Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0717434Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0718274Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0718493Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0718738Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0719564Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0719849Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0720726Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0720971Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0721827Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0722040Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0722300Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0722475Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0722639Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0722893Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0723009Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0723128Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0723246Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0723392Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0723705Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0723849Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0723940Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0723946Z 2023-01-11T21:03:41.0724152Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.0724318Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0724532Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0724877Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0725049Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0725343Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0725495Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0725683Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0726085Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0726306Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0726490Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0726685Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0727245Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0727406Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0727631Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0728293Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0728502Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0729327Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0729528Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0729669Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0730283Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0730428Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0730578Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0730832Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0730936Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0731054Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0731172Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0731319Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0731630Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0731748Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0731840Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0731846Z 2023-01-11T21:03:41.0733504Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0733574Z ================== 2023-01-11T21:03:41.0733637Z ================== 2023-01-11T21:03:41.0733803Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.0734007Z  Write of size 4 at 0x7b9400058b6c by thread T2: 2023-01-11T21:03:41.0736271Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:41.0736533Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0736757Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0737039Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0737326Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0737592Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.0737732Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.0737956Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.0738116Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.0738122Z 2023-01-11T21:03:41.0738312Z  Previous write of size 4 at 0x7b9400058b6c by main thread: 2023-01-11T21:03:41.0740427Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8837563) 2023-01-11T21:03:41.0740744Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.0740963Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.0741241Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.0741524Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.0741715Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.0741917Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.0742142Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015fb) 2023-01-11T21:03:41.0742353Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.0743065Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.0743308Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.0743523Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0743905Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0744304Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0744542Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0744742Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0745615Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0745837Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0746082Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0746907Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0747155Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0748013Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0748256Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0749162Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0749372Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0749633Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0749805Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0749969Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0750221Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0750336Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0750455Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0750574Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0750722Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0751031Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0751150Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0751229Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0751234Z 2023-01-11T21:03:41.0751453Z  Location is heap block of size 10080 at 0x7b9400057800 allocated by main thread: 2023-01-11T21:03:41.0751618Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.0751743Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.0751903Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.0752109Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.0752548Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.0752818Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.0753081Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.0753375Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.0753695Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.0754857Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.0755484Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.0755788Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.0756835Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.0757107Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.0757322Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.0757590Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.0758747Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.0759072Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0760131Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0760404Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0760669Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0761870Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0762216Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0763324Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0763610Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0763804Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0764094Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.0765195Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.0765540Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.0766618Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.0766891Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.0767156Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.0768321Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.0768641Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.0769772Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.0770084Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.0770272Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.0770418Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.0771090Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.0771245Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.0771437Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.0771633Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.0771867Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.0772082Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.0772467Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.0772851Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.0773061Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.0773302Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.0774170Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.0774493Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.0774740Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.0775579Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.0775828Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0776677Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.0776921Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.0777778Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.0778050Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.0778346Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.0778525Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.0778678Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.0778935Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0779051Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0779172Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0779293Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0779442Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0779752Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0779873Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0779966Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0779971Z 2023-01-11T21:03:41.0780193Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.0780347Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.0780567Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.0780884Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.0781060Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.0781354Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.0781507Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.0781698Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.0782105Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.0782324Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.0782537Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.0782733Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.0783318Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.0783481Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.0783708Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.0784371Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.0784581Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.0785364Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.0785542Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.0785688Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.0786298Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.0786441Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.0786593Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.0786844Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.0786994Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.0787101Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.0787219Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.0787363Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.0787671Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.0787788Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.0787910Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.0787917Z 2023-01-11T21:03:41.0789569Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8837563) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda5'()::oper 2023-01-11T21:03:41.0789640Z ================== 2023-01-11T21:03:41.1219100Z ================== 2023-01-11T21:03:41.1219871Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.1220223Z  Write of size 1 at 0x7b740003a6eb by main thread: 2023-01-11T21:03:41.1224622Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:41.1225077Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.1225437Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.1226100Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.1226545Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.1226841Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.1227240Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.1227632Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x88015b8) 2023-01-11T21:03:41.1227989Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.1229213Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.1229639Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.1229898Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.1230413Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.1230853Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.1231199Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.1231550Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.1233113Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.1233622Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.1234066Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.1235505Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.1235921Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.1237290Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.1237688Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.1239086Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.1239468Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.1239967Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.1240306Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.1240589Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.1241015Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.1241201Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.1241488Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.1241668Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.1241927Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.1242449Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.1242671Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.1242831Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.1242840Z 2023-01-11T21:03:41.1243194Z  Previous write of size 1 at 0x7b740003a6eb by thread T3: 2023-01-11T21:03:41.1247036Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882c531) 2023-01-11T21:03:41.1247510Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.1247882Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.1248371Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.1248831Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.1249339Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.1249560Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.1249907Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.1250135Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.1250143Z 2023-01-11T21:03:41.1250532Z  Location is heap block of size 2520 at 0x7b740003a200 allocated by main thread: 2023-01-11T21:03:41.1250874Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.1251084Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.1251350Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.1251707Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.1252457Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.1252901Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.1253363Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.1253812Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.1254561Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.1256259Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.1256890Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.1257363Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.1258411Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.1258731Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.1258920Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.1259187Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.1260319Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.1260680Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.1261830Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.1262103Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.1262373Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.1263539Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.1263856Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.1265023Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.1265365Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.1265558Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.1265851Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.1266951Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.1267259Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.1268334Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.1268651Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.1268955Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.1270129Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.1270451Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.1271605Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.1271894Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.1272083Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.1272230Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.1272901Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.1273081Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.1273273Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.1273510Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.1273742Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.1273960Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.1274343Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.1274786Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.1274999Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.1275214Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.1276055Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.1276276Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.1276524Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.1277359Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.1277629Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.1278503Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.1278751Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.1279620Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.1279835Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.1280094Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.1280269Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.1280430Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.1280680Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.1280795Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.1280901Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.1281022Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.1281169Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.1281505Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.1281623Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.1281714Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.1281721Z 2023-01-11T21:03:41.1281956Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.1282124Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.1282343Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.1282685Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.1282862Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.1283153Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.1283304Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.1283482Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.1283895Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.1284114Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.1284300Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.1284497Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.1285139Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.1285307Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.1285529Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.1286211Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.1286461Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.1287249Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.1287427Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.1287571Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.1288185Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.1288331Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.1288482Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.1288737Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.1288851Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.1288970Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.1289090Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.1289224Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.1289532Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.1289650Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.1289742Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.1289749Z 2023-01-11T21:03:41.1291409Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882c531) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'la 2023-01-11T21:03:41.1291508Z ================== 2023-01-11T21:03:41.1976262Z ================== 2023-01-11T21:03:41.1977282Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.1977622Z  Write of size 1 at 0x7b740002d279 by thread T1: 2023-01-11T21:03:41.1982061Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.1982490Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.1982832Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.1983278Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.1983735Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.1984177Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.1984403Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.1984763Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.1984986Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.1985000Z 2023-01-11T21:03:41.1985251Z  Previous write of size 1 at 0x7b740002d279 by main thread: 2023-01-11T21:03:41.1988633Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.1989153Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.1989527Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.1990025Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.1990504Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.1990849Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.1991193Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.1991584Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.1991936Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.1993393Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:41.1993822Z #10 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.1995479Z #11 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.1995982Z #12 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.1996927Z #13 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.1997166Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.1997430Z #15 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ebf33) 2023-01-11T21:03:41.1997604Z #16 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.1997757Z #17 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.1998012Z #18 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.1998128Z #19 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.1998247Z #20 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.1998370Z #21 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.1998518Z #22 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.1998833Z #23 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.1998954Z #24 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.1999049Z #25 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.1999056Z 2023-01-11T21:03:41.1999291Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:41.1999462Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.1999574Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.1999735Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.1999939Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2000381Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2000678Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:41.2000947Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:41.2001246Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:41.2001589Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:41.2002717Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:41.2003370Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:41.2003705Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:41.2004778Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:41.2005122Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:41.2005315Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:41.2005590Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:41.2005856Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:41.2006094Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:41.2006424Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:41.2007457Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:41.2008032Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:41.2008310Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:41.2009312Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:41.2009566Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:41.2009721Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:41.2009879Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:41.2010141Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec635) 2023-01-11T21:03:41.2010319Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2010470Z #28 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2010723Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2010837Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2010953Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2011071Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2011217Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2011531Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2011648Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2011740Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2011746Z 2023-01-11T21:03:41.2011962Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.2012116Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2012334Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2012652Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2012827Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2013119Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2013315Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2013506Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2013909Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2014126Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2014507Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2014708Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2015268Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2015433Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2015755Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2016803Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2017154Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2017940Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2018120Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2018264Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2018990Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2019303Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2019527Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2020000Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2020185Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2020406Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2020592Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2020825Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2021384Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2021540Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2021690Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2021698Z 2023-01-11T21:03:41.2023892Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2023966Z ================== 2023-01-11T21:03:41.2024029Z ================== 2023-01-11T21:03:41.2024216Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2024395Z  Write of size 1 at 0x7b740002d279 by thread T3: 2023-01-11T21:03:41.2027342Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2027718Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2027989Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2028366Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2028768Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2029132Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2029329Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2029618Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2029764Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2029776Z 2023-01-11T21:03:41.2030023Z  Previous write of size 1 at 0x7b740002d279 by main thread: 2023-01-11T21:03:41.2036209Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2036504Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2036759Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2037041Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2037439Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2037634Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2037834Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2038098Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2038317Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2039097Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:41.2039346Z #10 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2040198Z #11 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2040446Z #12 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2041317Z #13 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2041561Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2041821Z #15 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ebf33) 2023-01-11T21:03:41.2041994Z #16 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2042200Z #17 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2042456Z #18 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2042572Z #19 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2042690Z #20 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2042799Z #21 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2042947Z #22 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2043260Z #23 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2043377Z #24 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2043474Z #25 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2043481Z 2023-01-11T21:03:41.2043712Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:41.2043880Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2044006Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2044165Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2044368Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2044811Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2045071Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:41.2045340Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:41.2045609Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:41.2045945Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:41.2047083Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:41.2047771Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:41.2048084Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:41.2049158Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:41.2049459Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:41.2049649Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:41.2049921Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:41.2050221Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:41.2050459Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:41.2050792Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:41.2051831Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:41.2052405Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:41.2052687Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:41.2053636Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:41.2053888Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:41.2054067Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:41.2054224Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:41.2054642Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec635) 2023-01-11T21:03:41.2097124Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2097439Z #28 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2098009Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2098223Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2098442Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2098670Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2099097Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2099814Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2100105Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2100610Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2100623Z 2023-01-11T21:03:41.2101333Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.2101629Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2101994Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2102533Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2102799Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2103298Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2103549Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2103877Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2104594Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2104962Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2105257Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2105642Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2106595Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2106998Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2107361Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2108549Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2108893Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2110246Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2110601Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2111149Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2112267Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2112550Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2112814Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2113217Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2113401Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2113599Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2113788Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2114022Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2114529Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2114860Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2115017Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2115026Z 2023-01-11T21:03:41.2118069Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2118390Z ================== 2023-01-11T21:03:41.2118508Z ================== 2023-01-11T21:03:41.2118813Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2119115Z  Write of size 1 at 0x7b740002d279 by thread T2: 2023-01-11T21:03:41.2121909Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2122179Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2122401Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2122682Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2122971Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2123301Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2123444Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2123667Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2123802Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2123809Z 2023-01-11T21:03:41.2123999Z  Previous write of size 1 at 0x7b740002d279 by main thread: 2023-01-11T21:03:41.2126186Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2126450Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2126666Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2126946Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2127235Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2127428Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2127629Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2127854Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2128069Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2128850Z #9 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2bc2f67) 2023-01-11T21:03:41.2129167Z #10 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2130019Z #11 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2130266Z #12 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2131125Z #13 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2131340Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2131602Z #15 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ebf33) 2023-01-11T21:03:41.2131775Z #16 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2131939Z #17 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2132190Z #18 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2132310Z #19 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2132431Z #20 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2132550Z #21 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2132728Z #22 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2133038Z #23 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2133155Z #24 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2133248Z #25 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2133253Z 2023-01-11T21:03:41.2133461Z  Location is heap block of size 2520 at 0x7b740002d000 allocated by main thread: 2023-01-11T21:03:41.2133627Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2133802Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2133964Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2134173Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2134766Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2135028Z #5 at::TensorBase at::detail::_empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optional) (libtorch_cpu.so+0xc28a11) 2023-01-11T21:03:41.2135296Z #6 at::detail::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc2796f) 2023-01-11T21:03:41.2135569Z #7 at::native::empty_cpu(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1908ff9) 2023-01-11T21:03:41.2135905Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aa9be6) 2023-01-11T21:03:41.2137031Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU_memory_format_empty(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb6377) 2023-01-11T21:03:41.2137681Z #10 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x261e134) 2023-01-11T21:03:41.2138066Z #11 at::_ops::empty_memory_format::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ebd0f) 2023-01-11T21:03:41.2139216Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_memory_format(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a736be) 2023-01-11T21:03:41.2139508Z #13 at::_ops::empty_memory_format::call(c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24eb7f0) 2023-01-11T21:03:41.2139698Z #14 at::empty(c10::ArrayRef, c10::TensorOptions, c10::optional) (libtorch_cpu.so+0xcf338b) 2023-01-11T21:03:41.2139968Z #15 at::native::randint(long, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1911672) 2023-01-11T21:03:41.2140243Z #16 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19113d9) 2023-01-11T21:03:41.2140483Z #17 at::native::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x19111c0) 2023-01-11T21:03:41.2140817Z #18 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2e1d276) 2023-01-11T21:03:41.2141847Z #19 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2efe605) 2023-01-11T21:03:41.2142468Z #20 at::Tensor c10::Dispatcher::redispatch, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26401cb) 2023-01-11T21:03:41.2142751Z #21 at::_ops::randint::redispatch(c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x25148f2) 2023-01-11T21:03:41.2143700Z #22 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::randint(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a7e357) 2023-01-11T21:03:41.2143955Z #23 at::_ops::randint::call(long, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2514393) 2023-01-11T21:03:41.2144113Z #24 at::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4a0f62) 2023-01-11T21:03:41.2144272Z #25 torch::randint(long, c10::ArrayRef, c10::TensorOptions) (test_lazy+0x4914b9) 2023-01-11T21:03:41.2144530Z #26 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec635) 2023-01-11T21:03:41.2144703Z #27 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2144851Z #28 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2145104Z #29 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2145218Z #30 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2145335Z #31 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2145455Z #32 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2145601Z #33 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2145938Z #34 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2146055Z #35 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2146147Z #36 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2146153Z 2023-01-11T21:03:41.2146366Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.2146532Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2146740Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2147080Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2147255Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2147546Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2147697Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2147886Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2148292Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2148513Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2148696Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2148891Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2149452Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2149617Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2149839Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2150497Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2150733Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2151535Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2151714Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2151855Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2152463Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2152611Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2152759Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2153014Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2153127Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2153232Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2153350Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2153494Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2153804Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2153923Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2154015Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2154023Z 2023-01-11T21:03:41.2155751Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2155855Z ================== 2023-01-11T21:03:41.2439729Z ================== 2023-01-11T21:03:41.2440238Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2440529Z  Write of size 1 at 0x7b7400043076 by thread T2: 2023-01-11T21:03:41.2444359Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:41.2444823Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2445192Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2445601Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2445994Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2446426Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2446615Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2446995Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2447245Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2447253Z 2023-01-11T21:03:41.2447539Z  Previous write of size 1 at 0x7b7400043076 by main thread: 2023-01-11T21:03:41.2451656Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:41.2452156Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2452519Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2452960Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2453429Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2453731Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2454035Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2454562Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2454891Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2455960Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.2456269Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.2456640Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2457265Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2457999Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2458336Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2458673Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2460050Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2460395Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2460776Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2462234Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2462637Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2464076Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2464557Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2466000Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2466330Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2466734Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2467021Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2467243Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2467642Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2467828Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2467989Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2468186Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2468433Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2468879Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2469153Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2469299Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2469309Z 2023-01-11T21:03:41.2469702Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.2469976Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2470174Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2470430Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2470751Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2471458Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2471857Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.2472362Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.2472780Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.2473358Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.2475162Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.2476179Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.2476670Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.2477948Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.2478414Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.2478719Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.2479156Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.2480983Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.2481482Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2483250Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2483698Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2484148Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2485552Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2485881Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2487436Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2487919Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2488208Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2488685Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.2490473Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.2491081Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2492845Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2493292Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2493720Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2495696Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2496223Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2498122Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2498613Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2498908Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2499141Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.2500244Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.2500504Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.2500818Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.2501145Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.2501527Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.2501873Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2502474Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2502865Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2503119Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2503353Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2504482Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2504813Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2505219Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2506408Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2506806Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2508117Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2508532Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2509882Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2510271Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2510643Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2510884Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2511156Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2511451Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2511625Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2511829Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2512018Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2512256Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2512762Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2512958Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2513116Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2513126Z 2023-01-11T21:03:41.2513475Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.2513667Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2513951Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2514399Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2514678Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2515138Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2515373Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2515605Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2516139Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2516518Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2516813Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2517116Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2517976Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2518250Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2518581Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2519529Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2519866Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2521026Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2521303Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2521463Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2522423Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2522630Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2522911Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2523235Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2523369Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2523485Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2523673Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2523885Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2524330Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2524514Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2524669Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2524679Z 2023-01-11T21:03:41.2527428Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2527525Z ================== 2023-01-11T21:03:41.2527706Z ================== 2023-01-11T21:03:41.2527989Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2528290Z  Write of size 1 at 0x7b7400043076 by thread T1: 2023-01-11T21:03:41.2531820Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:41.2532238Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2532650Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2533021Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2533452Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2533893Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2534086Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2534499Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2534709Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2534718Z 2023-01-11T21:03:41.2535029Z  Previous write of size 1 at 0x7b7400043076 by main thread: 2023-01-11T21:03:41.2538413Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:41.2538842Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2539187Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2539709Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2540224Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2540564Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2541003Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2541374Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2541693Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2543087Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.2543517Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.2543866Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2544285Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2544875Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2545235Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2545605Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2546955Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2547390Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2547811Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2549215Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2549687Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2550894Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2551180Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2552124Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2552586Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2552989Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2553242Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2553532Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2553961Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2554237Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2554455Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2554752Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2555044Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2555582Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2555806Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2556046Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2556058Z 2023-01-11T21:03:41.2556468Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.2556726Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2556954Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2557247Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2557611Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2558380Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2558820Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.2559275Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.2559720Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.2560257Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.2562032Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.2563087Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.2563664Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.2565401Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.2565842Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.2566176Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.2566659Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.2568143Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.2568551Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2569946Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2570571Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2570948Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2572792Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2573252Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2574833Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2575364Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2575751Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2576153Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.2577475Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.2577876Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2579059Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2579500Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2579837Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2581732Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2582410Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2584041Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2584430Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2584814Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2585097Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.2586308Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.2586659Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.2587054Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.2587458Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.2587953Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.2588380Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2589099Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2589820Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2590257Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2590693Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2592323Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2592763Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2593259Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2594881Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2595442Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2597078Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2597508Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2599147Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2599578Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2600093Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2600428Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2600626Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2600950Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2601099Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2619682Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2620030Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2620194Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2620516Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2620638Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2620718Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2620725Z 2023-01-11T21:03:41.2621020Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.2621255Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2621525Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2621847Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2622023Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2622319Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2622474Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2622654Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2623061Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2623285Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2623471Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2623667Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2624232Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2624398Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2624624Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2625296Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2625552Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2626345Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2626523Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2626665Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2627280Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2627426Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2627575Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2627827Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2627939Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2628057Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2628176Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2628309Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2628619Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2628740Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2628830Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2628836Z 2023-01-11T21:03:41.2630488Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2630585Z ================== 2023-01-11T21:03:41.2630647Z ================== 2023-01-11T21:03:41.2630815Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2630987Z  Write of size 1 at 0x7b7400043076 by thread T3: 2023-01-11T21:03:41.2634227Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:41.2634725Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2635083Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2635514Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2635963Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2636387Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2636597Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2636921Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2637126Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2637134Z 2023-01-11T21:03:41.2637417Z  Previous write of size 1 at 0x7b7400043076 by main thread: 2023-01-11T21:03:41.2640648Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dc95) 2023-01-11T21:03:41.2641108Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2641360Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2641697Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2642160Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2642421Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2642711Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2643088Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2643418Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2644485Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.2644854Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.2645157Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2645692Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2646363Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2646714Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2647121Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2648408Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2648737Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2649067Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2650394Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2650781Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2651964Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2652373Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2653694Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2654022Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2654534Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2654817Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2655083Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2655487Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2655636Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2655836Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2656034Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2656267Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2656700Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2656894Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2657033Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2657043Z 2023-01-11T21:03:41.2657407Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.2657674Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2657867Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2658114Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2658427Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2659037Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2659546Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.2659892Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.2660287Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.2660767Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.2662208Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.2663053Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.2663474Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.2664838Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.2665249Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.2665508Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.2665921Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.2667442Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.2667885Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2669422Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2669817Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2670187Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2671885Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2672334Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2673832Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2674228Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2674510Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2675049Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.2676675Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.2677222Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2678690Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2679064Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2679465Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2681076Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2681558Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2683022Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2683433Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2683691Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2683921Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.2684815Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.2685010Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.2685282Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.2685577Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.2685952Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.2686256Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2686847Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2687382Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2687721Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2688026Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2689242Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2689572Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2690009Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2691472Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2691896Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2693361Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2693790Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2695494Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2695917Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2696354Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2696630Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2696917Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2697353Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2697553Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2697763Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2697965Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2698214Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2698766Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2698959Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2699111Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2699122Z 2023-01-11T21:03:41.2699522Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.2699794Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2700163Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2700709Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2701004Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2701509Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2701769Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2702096Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2702903Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2703287Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2703603Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2703939Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2704953Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2705240Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2705632Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2706785Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2707153Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2708513Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2708812Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2709057Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2710120Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2710406Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2710659Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2711106Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2711297Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2711485Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2711685Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2711980Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2712530Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2712730Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2712885Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2712894Z 2023-01-11T21:03:41.2715840Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dc95) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2715967Z ================== 2023-01-11T21:03:41.2716267Z ================== 2023-01-11T21:03:41.2716546Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2716852Z  Write of size 1 at 0x7b7400043077 by thread T2: 2023-01-11T21:03:41.2720677Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2721175Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2721557Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2722032Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2722593Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2723079Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2723323Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2723713Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2723939Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2723947Z 2023-01-11T21:03:41.2724242Z  Previous write of size 1 at 0x7b7400043077 by main thread: 2023-01-11T21:03:41.2726431Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2726695Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2726918Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2727203Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2727494Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2727731Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2727931Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2728157Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2728368Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2729128Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.2729372Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.2729591Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2729973Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2730372Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2730586Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2730801Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2731641Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2731858Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2732145Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2733017Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2733265Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2734120Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2734507Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2735364Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2735581Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2735843Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2736018Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2736184Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2736487Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2736603Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2736722Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2736843Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2736990Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2737335Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2737456Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2737538Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2737545Z 2023-01-11T21:03:41.2737770Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.2737936Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2738059Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2738219Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2738424Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2738867Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2739135Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.2739395Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.2739659Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.2739986Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.2741068Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.2741750Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.2742052Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.2743084Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.2743355Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.2743541Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.2743811Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.2744947Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.2745290Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2746374Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2746649Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2746921Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2748092Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2748411Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2749535Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2749849Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2750040Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2750334Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.2751434Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.2751752Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2752817Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2753115Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2753410Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2754885Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2755400Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2757175Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2757659Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2757972Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2758268Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.2759353Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.2759654Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.2759916Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.2760195Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.2760565Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.2760828Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2761405Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2761967Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2762335Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2762634Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2763971Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2764310Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2764709Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2766050Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2766441Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2767715Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2768128Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2769475Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2769805Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2770175Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2770395Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2770659Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2771019Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2771242Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2771357Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2771541Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2771771Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2772227Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2772409Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2772548Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2772558Z 2023-01-11T21:03:41.2772986Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.2773284Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2773630Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2774016Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2774296Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2774782Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2774948Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2775263Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2775969Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2776343Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2776593Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2776857Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2777759Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2777986Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2778340Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2779356Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2779719Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2780920Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2781222Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2781448Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2782380Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2782534Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2782685Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2782995Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2783114Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2783233Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2783356Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2783503Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2783819Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2783926Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2784019Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2784026Z 2023-01-11T21:03:41.2785719Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2785852Z ================== 2023-01-11T21:03:41.2785904Z ================== 2023-01-11T21:03:41.2786077Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2786267Z  Write of size 1 at 0x7b7400043077 by thread T1: 2023-01-11T21:03:41.2788546Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2788824Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2789048Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2789329Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2789619Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2789889Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2790031Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2790253Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2790376Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2790382Z 2023-01-11T21:03:41.2790570Z  Previous write of size 1 at 0x7b7400043077 by main thread: 2023-01-11T21:03:41.2792769Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2793057Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2793276Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2793558Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2793843Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2794032Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2794234Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2794455Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2794760Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2795475Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.2795714Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.2795933Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2796350Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2796736Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2796976Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2797189Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2798033Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2798252Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2798500Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2799341Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2799585Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2800433Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2800712Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2801605Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2801822Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2802083Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2802256Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2802423Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2802677Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2802790Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2802896Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2803014Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2803159Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2803471Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2803591Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2803683Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2803689Z 2023-01-11T21:03:41.2803911Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.2804076Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2804198Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2804344Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2804545Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2804999Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2805293Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.2805555Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.2805851Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.2806175Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.2807244Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.2807876Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.2808176Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.2809199Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.2809511Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.2809721Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.2809988Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.2811129Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.2811434Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2812506Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2812781Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2813076Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2814783Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2815314Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2816953Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2817389Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2817646Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2818077Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.2820062Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.2820633Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2822444Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2822955Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2823465Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2825533Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2826018Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2827620Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2828093Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2828415Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2828644Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.2829850Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.2830038Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.2830243Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.2830560Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.2830966Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.2831319Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2832043Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2832734Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2833115Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2833568Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2835050Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2835402Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2835712Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2836865Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2837338Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2838674Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2839125Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2840478Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2840810Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2841197Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2841436Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2841690Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2842080Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2842275Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2842483Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2842702Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2842994Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2843469Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2843667Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2843848Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2843860Z 2023-01-11T21:03:41.2844306Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.2844496Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2844717Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2845032Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2845205Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2845500Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2845777Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2846017Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2846424Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2846645Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2846831Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2847070Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2847631Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2847798Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2848022Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2848684Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2848897Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2849680Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2849859Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2850001Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2850613Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2850787Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2850935Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2851186Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2851302Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2851434Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2851554Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2851702Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2852015Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2852134Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2852227Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2852233Z 2023-01-11T21:03:41.2853903Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2853975Z ================== 2023-01-11T21:03:41.2854039Z ================== 2023-01-11T21:03:41.2854204Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2854477Z  Write of size 1 at 0x7b7400043077 by thread T3: 2023-01-11T21:03:41.2856650Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2856961Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2857180Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2857494Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2857780Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2858049Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2858189Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2858414Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2858549Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2858554Z 2023-01-11T21:03:41.2858744Z  Previous write of size 1 at 0x7b7400043077 by main thread: 2023-01-11T21:03:41.2860901Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd0d) 2023-01-11T21:03:41.2861162Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2861381Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2861665Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2861981Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2862172Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2862370Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2862596Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2862830Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2863557Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.2863794Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.2864012Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2864396Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2864779Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2864991Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2865207Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2866046Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2866293Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2866540Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2867392Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2867651Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2868494Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2868741Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2869594Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2869807Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2870068Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2870270Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2870434Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2870685Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2870799Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2870919Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2871041Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2871189Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2871531Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2871653Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2871745Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2871751Z 2023-01-11T21:03:41.2871971Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.2872124Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2872245Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2872404Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2872621Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2873167Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2873541Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.2873939Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.2874390Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.2874986Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.2876564Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.2878659Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.2879169Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.2882013Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.2882482Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.2882873Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.2883320Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.2885326Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.2885908Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2887735Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2888218Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2888586Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2892019Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2892583Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2894588Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2895095Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2895461Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2895937Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.2897572Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.2898058Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2899757Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2900237Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2900760Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2902728Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2910723Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2911857Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2912155Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2912409Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2912559Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.2913268Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.2913426Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.2913623Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.2913825Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.2914060Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.2914278Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2914752Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2915144Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2915360Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2915575Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2916411Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2916639Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2916921Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2917790Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2918040Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2918900Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2919147Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2920017Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2920232Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2920492Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2920670Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2920835Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2921117Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2921233Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2921339Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2921458Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2921605Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2921917Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2922061Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2922156Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2922166Z 2023-01-11T21:03:41.2922408Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.2922577Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2922795Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2923109Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.2923281Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.2923572Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.2923725Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.2923902Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.2924304Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.2924521Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.2924707Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.2924901Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.2925458Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.2925620Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.2925843Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.2926512Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.2926746Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.2927532Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.2927713Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.2927853Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.2928460Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.2928607Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.2928756Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.2929004Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2929119Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2929235Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2929353Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2929488Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2929793Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2929907Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2929998Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2930004Z 2023-01-11T21:03:41.2931676Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd0d) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.2931773Z ================== 2023-01-11T21:03:41.2931836Z ================== 2023-01-11T21:03:41.2932002Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.2932210Z  Write of size 1 at 0x7b740004307e by thread T2: 2023-01-11T21:03:41.2934475Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:41.2934750Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2934971Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2935238Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2935543Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2935808Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.2935935Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.2936155Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.2936290Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.2936296Z 2023-01-11T21:03:41.2936481Z  Previous write of size 1 at 0x7b740004307e by main thread: 2023-01-11T21:03:41.2938705Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:41.2938974Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.2939194Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.2939476Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.2939763Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.2939954Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.2940153Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.2940376Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.2940574Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.2941412Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.2941782Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.2942164Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2942786Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2943492Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2943897Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2944252Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2946650Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2947063Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2948427Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2949947Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2950406Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2952095Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2952586Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2954188Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2954631Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2955101Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2955412Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2955711Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2956168Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2956371Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2956544Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2956751Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2957019Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2957565Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2957779Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2957940Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2957949Z 2023-01-11T21:03:41.2958377Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.2958669Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.2958893Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.2959161Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.2959522Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.2960336Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.2960869Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.2961381Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.2961867Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.2962435Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.2964372Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.2965466Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.2966000Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.2967899Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.2968478Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.2968796Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.2969292Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.2971336Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.2971886Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2973798Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2974425Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2974920Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2977069Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2977661Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2979671Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2980208Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2980561Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2981118Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.2983305Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.2983891Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.2985588Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.2985871Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.2986135Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.2987298Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.2987724Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.2988855Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.2989148Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.2989341Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.2989487Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.2990159Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.2990314Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.2990506Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.2990707Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.2990941Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.2991160Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.2991542Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.2991952Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.2992193Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.2992408Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.2993247Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.2993464Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.2993713Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.2994616Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.2994871Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2995723Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.2995998Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.2996869Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.2997099Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.2997359Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.2997532Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.2997686Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.2997938Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.2998054Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.2998172Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.2998292Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.2998441Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.2998750Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.2998868Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.2998962Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.2998969Z 2023-01-11T21:03:41.2999204Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.2999371Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.2999579Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.2999891Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.3000065Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.3000357Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.3000552Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.3000740Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.3001148Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.3001393Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.3001581Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.3001778Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.3002335Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.3002496Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.3002722Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.3003384Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.3003593Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.3004366Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.3004545Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.3004691Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.3005301Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.3005471Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.3005621Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.3005898Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3006015Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3006120Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3006242Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3006388Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3006699Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3006816Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3006909Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3006915Z 2023-01-11T21:03:41.3008569Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.3008642Z ================== 2023-01-11T21:03:41.3008823Z ================== 2023-01-11T21:03:41.3008994Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.3009167Z  Write of size 1 at 0x7b7400043084 by thread T1: 2023-01-11T21:03:41.3011325Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:41.3011640Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.3011862Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.3012170Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.3012462Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.3012729Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.3012871Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.3013096Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.3013230Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.3013238Z 2023-01-11T21:03:41.3013424Z  Previous write of size 1 at 0x7b7400043084 by main thread: 2023-01-11T21:03:41.3015652Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:41.3015927Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.3016135Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.3016412Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.3016756Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.3016947Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.3017146Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.3017411Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.3017626Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.3018358Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.3018592Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.3018811Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.3019194Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.3019578Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.3019800Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.3020013Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.3020856Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.3021101Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.3021445Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.3022349Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.3022609Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3023459Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.3023709Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3024560Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.3024792Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.3025038Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.3025240Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.3025404Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.3025657Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3025771Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3025890Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3026036Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3026186Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3026498Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3026618Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3026710Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3026716Z 2023-01-11T21:03:41.3026943Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.3027095Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.3027217Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.3027379Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.3027582Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.3028024Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.3028292Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.3028558Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.3028822Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.3029147Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.3030225Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.3030902Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.3031206Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.3032237Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.3032509Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.3032698Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.3032966Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.3034113Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.3034471Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.3035616Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.3035895Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.3036161Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.3037333Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.3037652Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.3038804Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.3039092Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.3039284Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.3039580Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.3040674Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.3040994Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.3042050Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.3042377Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.3042647Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.3043815Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.3044134Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.3045245Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.3045558Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.3045747Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.3045894Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.3046603Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.3046757Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.3046951Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.3047150Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.3047384Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.3047600Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.3047983Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.3048365Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.3048578Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.3048791Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.3049631Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.3049877Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.3050123Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.3050985Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.3051231Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3052078Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.3052324Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3053188Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.3053400Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.3053659Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.3053833Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.3054022Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.3054275Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3054474Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3054596Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3054716Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3054863Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3055219Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3055341Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3055435Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3055441Z 2023-01-11T21:03:41.3055663Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.3055830Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.3056047Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.3056363Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.3056538Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.3056833Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.3056985Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.3057160Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.3057562Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.3057782Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.3057969Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.3058166Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.3058723Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.3058889Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.3059114Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.3059819Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.3060053Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.3060817Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.3060996Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.3061138Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.3061745Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.3061892Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.3062041Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.3062293Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3062407Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3062529Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3062650Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3062784Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3063093Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3063211Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3063303Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3063308Z 2023-01-11T21:03:41.3064962Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.3065088Z ================== 2023-01-11T21:03:41.3065158Z ================== 2023-01-11T21:03:41.3065326Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.3065502Z  Write of size 1 at 0x7b740004308c by thread T3: 2023-01-11T21:03:41.3067664Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:41.3067925Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.3068146Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.3068427Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.3068719Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.3068985Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.3069126Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.3069350Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.3069517Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.3069522Z 2023-01-11T21:03:41.3069708Z  Previous write of size 1 at 0x7b740004308c by main thread: 2023-01-11T21:03:41.3071897Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882dd54) 2023-01-11T21:03:41.3072172Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.3072395Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.3072678Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.3072965Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.3073153Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.3073355Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.3073565Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.3073777Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.3074504Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.3074837Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.3075058Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.3075440Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.3075855Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.3076074Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.3076287Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.3077124Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.3077342Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.3077592Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.3078436Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.3078684Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3079537Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.3079843Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3080709Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.3080922Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.3081184Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.3081357Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.3081508Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.3081760Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3081874Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3081996Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3082116Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3082267Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3082576Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3082694Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3082785Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3082791Z 2023-01-11T21:03:41.3083012Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.3083176Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.3083289Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.3083448Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.3083651Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.3084131Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.3084398Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.3084687Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.3084953Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.3085278Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.3086362Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.3086988Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.3087302Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.3088433Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.3088733Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.3088919Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.3089277Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.3090423Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.3090733Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.3091797Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.3092118Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.3092384Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.3093563Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.3093884Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.3095066Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.3095352Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.3095545Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.3095839Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.3097027Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.3097335Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.3098391Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.3098683Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.3098952Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.3100101Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.3100485Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.3101587Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.3101875Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.3102064Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.3102212Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.3102888Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.3103042Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.3103236Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.3103436Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.3103670Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.3103887Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.3104297Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.3104707Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.3104921Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.3105137Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.3105973Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.3106207Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.3106453Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.3107277Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.3107521Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3108370Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.3108645Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3109603Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.3109866Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.3110205Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.3110487Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.3110735Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.3111105Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3111240Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3111426Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3111608Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3111849Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3112369Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3112586Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3112726Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3112734Z 2023-01-11T21:03:41.3113128Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.3113423Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.3113775Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.3114356Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.3114720Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.3115288Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.3115564Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.3115881Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.3120504Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.3120961Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.3121289Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.3121647Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.3122705Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.3122998Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.3123415Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.3124606Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.3124977Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.3149782Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.3150123Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.3150382Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.3151631Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.3151899Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.3152224Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.3152698Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3152904Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3153120Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3153333Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3153570Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3154137Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3154342Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3154499Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3154512Z 2023-01-11T21:03:41.3156278Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882dd54) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.3156365Z ================== 2023-01-11T21:03:41.3156483Z ================== 2023-01-11T21:03:41.3156656Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.3156832Z  Write of size 1 at 0x7b74000432eb by thread T1: 2023-01-11T21:03:41.3158979Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:41.3159282Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.3159533Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.3159819Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.3160110Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.3160375Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.3160520Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.3160743Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.3160881Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.3160887Z 2023-01-11T21:03:41.3161075Z  Previous write of size 1 at 0x7b74000432eb by main thread: 2023-01-11T21:03:41.3163247Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882ddc1) 2023-01-11T21:03:41.3163510Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.3163731Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.3164041Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.3164333Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.3164524Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.3164761Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.3164993Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801532) 2023-01-11T21:03:41.3165204Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.3165920Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.3166159Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.3166377Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.3166760Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.3167157Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.3167370Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.3167584Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.3168424Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.3168672Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.3168944Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.3169771Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.3170022Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3170878Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.3171121Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3171981Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.3172194Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.3172482Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.3172656Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.3172820Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.3173069Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3173209Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3173330Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3173456Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3173606Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3173917Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3174034Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3174115Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3174134Z 2023-01-11T21:03:41.3174441Z  Location is heap block of size 2520 at 0x7b7400042e00 allocated by main thread: 2023-01-11T21:03:41.3174612Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.3174813Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.3175112Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.3175480Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.3175932Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.3176201Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.3176468Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.3176736Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.3177063Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.3178216Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.3178881Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.3179184Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.3180220Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.3180497Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.3180682Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.3180950Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.3182116Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.3182458Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.3183518Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.3183793Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.3184060Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.3185233Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.3185577Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.3186704Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.3186993Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.3187183Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.3187479Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.3188572Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.3188895Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.3189981Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.3190276Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.3190546Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.3191715Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.3192034Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.3193137Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.3193451Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.3193642Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.3193789Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.3194485Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.3194701Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.3194896Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.3195096Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.3195333Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.3195551Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.3195935Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.3196321Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.3196533Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.3196748Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.3197590Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.3197841Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.3198091Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.3198957Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.3199205Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3200055Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.3200298Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3201163Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.3201380Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.3201639Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.3201839Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.3201990Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.3202242Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3202356Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3202474Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3202594Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3202768Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3203080Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3203200Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3203291Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3203298Z 2023-01-11T21:03:41.3203521Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.3203687Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.3203891Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.3204207Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.3204380Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.3204673Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.3204824Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.3205011Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.3205412Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.3205629Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.3205816Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.3206009Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.3206566Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.3206731Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.3206985Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.3207675Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.3207887Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.3208662Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.3208838Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.3208982Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.3209592Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.3209739Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.3209888Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.3210139Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3210255Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3210361Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3210482Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3210628Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3210938Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3211057Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3211149Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3211154Z 2023-01-11T21:03:41.3212857Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882ddc1) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda0'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lamb 2023-01-11T21:03:41.3212954Z ================== 2023-01-11T21:03:41.3883387Z ================== 2023-01-11T21:03:41.3884283Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.3885429Z  Write of size 2 at 0x7b840001c16c by main thread: 2023-01-11T21:03:41.3890103Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:41.3892799Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.3893621Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.3894629Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.3895591Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.3896390Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.3897072Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.3897822Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x880163e) 2023-01-11T21:03:41.3898784Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.3900449Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.3902024Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.3902777Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.3903635Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.3904557Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.3905382Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.3906062Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.3907540Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.3909031Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.3909788Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.3911323Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.3912864Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3914464Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.3916157Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3917908Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.3919407Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.3919906Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.3920339Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.3920689Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.3921121Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.3921494Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.3921735Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.3921993Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.3922345Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.3922824Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.3923263Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.3923485Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.3923614Z 2023-01-11T21:03:41.3923865Z  Previous write of size 2 at 0x7b840001c16c by thread T3: 2023-01-11T21:03:41.3930964Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x883326a) 2023-01-11T21:03:41.3932679Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.3933162Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.3933673Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.3934251Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.3934919Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.3935320Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.3935706Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.3936071Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.3936236Z 2023-01-11T21:03:41.3936466Z  Location is heap block of size 5040 at 0x7b840001b800 allocated by main thread: 2023-01-11T21:03:41.3936790Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.3937053Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.3937426Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.3937810Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.3938465Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.3939194Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.3939730Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.3940258Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.3940845Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.3942237Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.3943990Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.3944891Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.3946264Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.3947643Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.3948101Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.3948567Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.3949973Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.3951487Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.3952868Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.3954267Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.3954941Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.3956376Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.3957909Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.3959323Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.3960759Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.3961239Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.3961785Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.3963211Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.3964689Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.3966050Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.3967438Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.3967979Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.3970062Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.3972896Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.3975482Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.3978068Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.3978898Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.3979518Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.3981032Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.3982406Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.3982985Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.3983651Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.3984377Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.3985325Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.3986336Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.3987594Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.3988406Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.3988988Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.3990808Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.3992714Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.3993593Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.3995714Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.3997648Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.3999695Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4001787Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4003834Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4005771Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4006635Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4007429Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4008068Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4008864Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4009554Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4010004Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4010469Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4011000Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4011877Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4012643Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4013043Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4013272Z 2023-01-11T21:03:41.4013710Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.4014318Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.4015101Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.4016071Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.4017043Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.4017886Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.4018673Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.4019291Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.4020474Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.4021408Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.4022128Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.4022825Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.4024219Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.4025463Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.4026159Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.4027785Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.4029297Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.4031072Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.4032742Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.4033376Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.4034864Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.4036298Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.4036872Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.4037643Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4038320Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4038765Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4039237Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4039762Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4040643Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4041470Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4041884Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4042112Z 2023-01-11T21:03:41.4045283Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x883326a) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda3'()::oper 2023-01-11T21:03:41.4047017Z ================== 2023-01-11T21:03:41.4264433Z ================== 2023-01-11T21:03:41.4266341Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.4266922Z  Write of size 4 at 0x7b940005db58 by thread T3: 2023-01-11T21:03:41.4270825Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:41.4273896Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4274780Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4275646Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4276639Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4277686Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.4278434Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.4279050Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.4279658Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.4279962Z 2023-01-11T21:03:41.4280343Z  Previous write of size 4 at 0x7b940005db58 by main thread: 2023-01-11T21:03:41.4284211Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:41.4286692Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4287379Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4288094Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4288695Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4289318Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.4289841Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.4290288Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.4290734Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.4291912Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.4293173Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.4293686Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4294518Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4295409Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4296064Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4296504Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4297696Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4298871Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4299428Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4300630Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4301715Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4302830Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4303892Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4305027Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4306087Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4306571Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4307011Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4307362Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4307821Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4308185Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4308440Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4308696Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4309037Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4309512Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4309946Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4310180Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4310307Z 2023-01-11T21:03:41.4310556Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.4310878Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.4311144Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.4311449Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.4311819Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.4312476Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.4313183Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.4313716Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.4314245Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.4314895Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.4316401Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.4318195Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.4319083Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.4320411Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.4321776Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.4322237Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.4322703Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.4324138Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.4325677Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4327048Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4328602Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4329468Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4331923Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4334831Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4337463Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4340064Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4340927Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4341841Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.4344361Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.4347032Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4349550Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4352128Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4353098Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4355725Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4358473Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4361086Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4363009Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4363485Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4363858Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.4364702Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.4365506Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.4365868Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.4366273Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.4366714Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.4367158Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4367785Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4368547Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4369141Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4369573Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4370633Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4371676Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4372146Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4373252Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4374279Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4376643Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4377683Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4378784Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4379819Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4380355Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4380794Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4381141Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4381575Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4381937Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4382238Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4382498Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4382774Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4383250Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4383686Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4383918Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4384045Z 2023-01-11T21:03:41.4384277Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.4384612Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.4384973Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.4385515Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.4386003Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.4386573Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.4387203Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.4387764Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.4388614Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.4389328Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.4389915Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.4390520Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.4391640Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.4392866Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.4393471Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.4394906Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.4396335Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.4397974Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.4399555Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.4400103Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.4401325Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.4402519Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.4402916Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.4403545Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4403917Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4404177Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4404596Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4404964Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4405589Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4406366Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4406844Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4407037Z 2023-01-11T21:03:41.4409606Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.4411351Z ================== 2023-01-11T21:03:41.4411817Z ================== 2023-01-11T21:03:41.4412196Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.4412640Z  Write of size 4 at 0x7b940005db58 by thread T2: 2023-01-11T21:03:41.4416094Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:41.4418850Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4419634Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4420331Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4420890Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4421450Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.4421952Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.4422339Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.4422701Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.4422865Z 2023-01-11T21:03:41.4423056Z  Previous write of size 4 at 0x7b940005db58 by main thread: 2023-01-11T21:03:41.4425399Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:41.4440916Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4441536Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4442061Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4442649Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4443126Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.4443518Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.4443952Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.4444401Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.4445333Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.4446342Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.4446802Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4447444Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4448217Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4448810Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4449247Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4450305Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4451417Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4451967Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4453653Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4455427Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4457391Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4459129Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4461001Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4462844Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4463654Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4464400Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4465000Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4465767Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4466450Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4466900Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4467314Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4467784Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4468665Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4469460Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4469814Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4470043Z 2023-01-11T21:03:41.4470460Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.4471026Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.4471562Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.4472107Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.4472810Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.4473981Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.4475393Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.4476355Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.4477328Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.4478339Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.4480585Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.4483440Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.4484992Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.4487471Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.4488892Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.4489351Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.4489810Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.4491241Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.4492749Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4494114Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4495660Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4496238Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4497681Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4499226Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4500626Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4502076Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4502578Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4503077Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.4504501Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.4505978Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4507346Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4508851Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4509396Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4510858Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4512439Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4513930Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4516055Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4516942Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4517500Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.4518935Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.4520168Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.4520792Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.4521487Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.4522396Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.4523154Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4526299Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4527625Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4528499Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4529092Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4530741Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4532313Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4532976Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4534922Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4536629Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4538466Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4540490Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4542458Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4544075Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4544688Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4545235Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4545714Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4546338Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4546889Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4547270Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4547637Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4548100Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4548811Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4549497Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4549824Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4550015Z 2023-01-11T21:03:41.4550400Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.4550896Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.4551442Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.4552248Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.4553052Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.4553653Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.4554171Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.4554811Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.4555738Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.4556487Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.4557105Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.4557680Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.4558852Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.4559903Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.4560500Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.4561454Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.4562582Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.4564037Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.4565453Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.4565931Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.4567165Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.4568264Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.4568719Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.4569380Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4569937Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4570329Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4570684Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4571146Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4571845Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4572520Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4572846Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4573029Z 2023-01-11T21:03:41.4575636Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.4577066Z ================== 2023-01-11T21:03:41.4577298Z ================== 2023-01-11T21:03:41.4577609Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.4577926Z  Write of size 4 at 0x7b940005db58 by thread T1: 2023-01-11T21:03:41.4581070Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:41.4583810Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4584634Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4585459Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4586455Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4587471Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.4588084Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.4588708Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.4589359Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.4589605Z 2023-01-11T21:03:41.4589939Z  Previous write of size 4 at 0x7b940005db58 by main thread: 2023-01-11T21:03:41.4593708Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f958) 2023-01-11T21:03:41.4596445Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4597309Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4598221Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4599330Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4600180Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.4600903Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.4601647Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.4602390Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.4604110Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.4605809Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.4606619Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4607733Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4609076Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4610072Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4610872Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4612507Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4613635Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4614100Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4615297Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4616328Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4617493Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4618980Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4620093Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4621189Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4621672Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4622106Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4622494Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4622936Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4623302Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4623555Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4623814Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4624107Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4624573Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4625008Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4625242Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4625250Z 2023-01-11T21:03:41.4625499Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.4625668Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.4625793Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.4625941Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.4626145Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.4626586Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.4626858Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.4627122Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.4627382Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.4627723Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.4628819Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.4629466Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.4629785Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.4630808Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.4631081Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.4631264Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.4631532Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.4632717Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.4633060Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4634120Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4634405Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4634745Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4635913Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4636277Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4637390Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4637688Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4637881Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4638175Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.4639286Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.4639591Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4640716Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4641007Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4641277Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4642433Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4642765Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4643843Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4644160Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4644375Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4644524Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.4645198Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.4645351Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.4645544Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.4645740Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.4645975Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.4646193Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4646576Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4646963Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4647252Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4647568Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4648953Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4649370Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4649829Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4651219Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4652021Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4653460Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4653925Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4655446Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4655860Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4656341Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4656592Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4656861Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4657262Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4657533Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4657724Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4657931Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4658181Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4658693Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4658880Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4659019Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4659047Z 2023-01-11T21:03:41.4659421Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.4659695Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.4660061Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.4660581Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.4660893Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.4661403Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.4661651Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.4661998Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.4662778Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.4663183Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.4663510Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.4663851Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.4664858Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.4665220Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.4665630Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.4666851Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.4667243Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.4668671Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.4669018Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.4669261Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.4670361Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.4670614Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.4670884Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.4671357Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4671546Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4671740Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4671959Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4672212Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4672793Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4673054Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4673227Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4673238Z 2023-01-11T21:03:41.4676403Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f958) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.4676536Z ================== 2023-01-11T21:03:41.4676656Z ================== 2023-01-11T21:03:41.4676974Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.4677296Z  Write of size 4 at 0x7b940005db60 by thread T3: 2023-01-11T21:03:41.4679836Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:41.4680096Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4680323Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4680610Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4680904Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4681173Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.4681356Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.4681580Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.4681717Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.4681723Z 2023-01-11T21:03:41.4681914Z  Previous write of size 4 at 0x7b940005db60 by main thread: 2023-01-11T21:03:41.4684069Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:41.4684330Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4684554Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4684838Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4685127Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4685318Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.4685519Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.4685747Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.4685958Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.4686676Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.4686942Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.4687160Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4687568Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4687972Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4688184Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4688387Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4689238Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4689460Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4689707Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4690536Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4690814Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4691709Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4691956Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4692814Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4693031Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4693290Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4693465Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4693632Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4693884Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4694001Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4694122Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4694242Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4694494Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4694808Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4694934Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4695014Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4695020Z 2023-01-11T21:03:41.4695248Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.4695465Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.4695591Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.4695752Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.4695957Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.4696450Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.4696721Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.4696986Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.4697253Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.4697578Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.4698667Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.4699291Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.4699590Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.4700676Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.4700951Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.4701136Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.4701407Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.4702543Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.4702864Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4703924Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4704254Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4704526Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4705704Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4706025Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4707131Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4707418Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4707708Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4708081Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.4709835Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.4710367Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4711981Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4712420Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4712813Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4714507Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4715141Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4717010Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4717404Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4717726Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4717967Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.4719082Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.4719331Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.4719665Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.4720004Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.4720474Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.4720839Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4721480Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4722130Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4722495Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4722844Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4724082Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4724430Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4724853Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4726169Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4726544Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4727964Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4728371Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4729618Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4729956Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4730360Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4730612Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4730869Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4731249Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4731425Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4731604Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4731806Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4732025Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4732540Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4732736Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4732886Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4732897Z 2023-01-11T21:03:41.4733266Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.4733517Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.4733858Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.4734496Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.4734714Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.4735122Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.4735438Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.4735734Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.4736352Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.4736663Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.4736944Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.4737260Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.4738037Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.4738320Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.4738703Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.4739828Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.4740131Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.4741264Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.4741611Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.4741838Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.4742856Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.4743075Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.4743303Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.4743697Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4743877Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4744064Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4744247Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4744467Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4744969Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4745154Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4745297Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4745306Z 2023-01-11T21:03:41.4747880Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.4747971Z ================== 2023-01-11T21:03:41.4748023Z ================== 2023-01-11T21:03:41.4748200Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.4748441Z  Write of size 4 at 0x7b940005db60 by thread T2: 2023-01-11T21:03:41.4751739Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:41.4752185Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4752522Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4752954Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4753372Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4753783Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.4753999Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.4754326Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.4754536Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.4754543Z 2023-01-11T21:03:41.4754884Z  Previous write of size 4 at 0x7b940005db60 by main thread: 2023-01-11T21:03:41.4757617Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:41.4758089Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4758443Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4758840Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4759333Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4759616Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.4759936Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.4760279Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.4760608Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.4761685Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.4762038Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.4762376Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4762946Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4763549Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4763878Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4764218Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4765478Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4765918Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4766321Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4767589Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4767969Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4769289Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4769642Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4770956Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4771300Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4771564Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4771772Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4771938Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4772196Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4772307Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4772447Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4772568Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4772719Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4773124Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4773289Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4773416Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4773428Z 2023-01-11T21:03:41.4773792Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.4774064Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.4774270Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.4774582Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.4774865Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.4775493Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.4775915Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.4776263Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.4776670Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.4777136Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.4779034Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.4780017Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.4780438Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.4781999Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.4782501Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.4782790Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.4783205Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.4785081Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.4785576Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4787296Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4787747Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4788173Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4789986Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4790578Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4792433Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4792919Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4793219Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4793597Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.4795353Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.4795854Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4797671Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4798118Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4798540Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4800415Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4800940Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4802510Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4803073Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4803416Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4803662Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.4804523Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.4804747Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.4805018Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.4805286Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.4805556Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.4805869Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4806396Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4806952Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4807255Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4807556Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4808704Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4809057Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4809434Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4810464Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4810717Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4811566Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4811811Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4812683Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4812934Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4813194Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4813368Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4813531Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4813813Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4813931Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4814040Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4814160Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4814308Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4814712Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4814833Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4814925Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4814933Z 2023-01-11T21:03:41.4815181Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.4815353Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.4815576Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.4815897Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.4816071Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.4816366Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.4816521Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.4816699Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.4817108Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.4817331Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.4817519Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.4817713Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.4818276Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.4818494Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.4818720Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.4819434Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.4819649Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.4820415Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.4820594Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.4820740Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.4821352Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.4821502Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.4821652Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.4821903Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4822018Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4822137Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4822258Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4822394Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4822701Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4822851Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4822944Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4822950Z 2023-01-11T21:03:41.4824659Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.4824734Z ================== 2023-01-11T21:03:41.4824799Z ================== 2023-01-11T21:03:41.4824969Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.4825147Z  Write of size 4 at 0x7b940005db60 by thread T1: 2023-01-11T21:03:41.4827289Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:41.4827568Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4827781Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4828061Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4828372Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4828670Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.4828799Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.4829024Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.4829161Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.4829167Z 2023-01-11T21:03:41.4829357Z  Previous write of size 4 at 0x7b940005db60 by main thread: 2023-01-11T21:03:41.4831514Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9b8) 2023-01-11T21:03:41.4831787Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4832008Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4832289Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4832577Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4832768Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.4833073Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.4833413Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.4833694Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.4834883Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.4835273Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.4835681Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4836341Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4837016Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4837398Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4837793Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4839340Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4839727Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4840212Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4841464Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4841925Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4843269Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4843680Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4844971Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4845329Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4845716Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4845925Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4846130Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4846508Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4846685Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4846875Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4847007Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4847233Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4847743Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4847945Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4848158Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4848169Z 2023-01-11T21:03:41.4848489Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.4848731Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.4848931Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.4849154Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.4849431Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.4850093Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.4850470Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.4850811Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.4851212Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.4851730Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.4853334Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.4854522Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.4855107Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.4856850Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.4857280Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.4857551Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.4857959Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.4859481Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.4859974Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4861260Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4861671Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4862025Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4863283Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4863610Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4864705Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4865056Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4865250Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4865543Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.4866681Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.4866992Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4868065Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4868338Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4868606Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4869804Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4870152Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4871236Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4871537Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4871729Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4871868Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.4872553Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.4872705Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.4872900Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.4873130Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.4873351Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.4873568Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4873975Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4874381Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4874676Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4874894Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4875731Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4875951Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4876203Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4877035Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4877283Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4878202Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4878451Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4879307Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4879525Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4879784Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4879960Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4880124Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4880382Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4880500Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4880619Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4880738Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4880885Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4881198Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4881314Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4881395Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4881414Z 2023-01-11T21:03:41.4881641Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.4881807Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.4882057Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.4882372Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.4882546Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.4882879Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.4883035Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.4883229Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.4883636Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.4883856Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.4884040Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.4884237Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.4884796Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.4884960Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.4885186Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.4885851Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.4886061Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.4886825Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.4887028Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.4887170Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.4887816Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.4887967Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.4888104Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.4888355Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4888471Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4888590Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4888711Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4888857Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4889167Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4889288Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4889381Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4889387Z 2023-01-11T21:03:41.4891584Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9b8) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.4891707Z ================== 2023-01-11T21:03:41.4891813Z ================== 2023-01-11T21:03:41.4892045Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.4892305Z  Write of size 4 at 0x7b940005db64 by thread T3: 2023-01-11T21:03:41.4896529Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:41.4897043Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4897463Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4897979Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4898492Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4898764Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.4898904Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.4899178Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.4899366Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.4899374Z 2023-01-11T21:03:41.4899677Z  Previous write of size 4 at 0x7b940005db64 by main thread: 2023-01-11T21:03:41.4903305Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:41.4903676Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4903992Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4904461Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4904928Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4905282Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.4905596Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.4905972Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.4906322Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.4907398Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.4907794Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.4908141Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4909173Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4909799Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4910145Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4910489Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4911957Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4912347Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4912762Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4914085Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4914521Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4915902Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4916273Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4917639Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4918080Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4918532Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4918802Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4919062Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4919401Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4919521Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4919668Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4919848Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4920077Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4920491Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4920614Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4920723Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4920731Z 2023-01-11T21:03:41.4921015Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.4921171Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.4921295Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.4921454Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.4921660Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.4922107Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.4922374Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.4922636Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.4922900Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.4923227Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.4924376Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.4925006Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.4925315Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.4926355Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.4926633Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.4926822Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.4927090Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.4928296Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.4928608Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4929668Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4929957Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4930227Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4931388Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4931759Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4932862Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4933153Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4933346Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4933643Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.4934952Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.4935316Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.4936408Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.4936698Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.4936970Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.4938130Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.4938450Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.4939551Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.4939900Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.4940096Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.4940246Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.4940923Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.4941077Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.4941276Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.4941477Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.4941710Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.4941927Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4942312Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4942697Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4942909Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4943126Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4943966Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4944242Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4944495Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4945337Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4945579Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4946430Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4946675Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4947546Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4947789Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4948050Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4948227Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4948415Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4948673Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4948790Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4948897Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4949017Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4949164Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4949474Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4949593Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4949689Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4949696Z 2023-01-11T21:03:41.4949919Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.4950088Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.4950307Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.4950620Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.4950792Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.4951086Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.4951237Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.4951417Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.4951821Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.4952042Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.4952226Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.4952516Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.4957148Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.4957530Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.4957878Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.4959005Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.4959307Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.4960354Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.4960609Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.4960780Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.4961633Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.4961835Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.4962030Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.4962373Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4962519Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4962699Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4962895Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4963054Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4963515Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4963669Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4963781Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4963789Z 2023-01-11T21:03:41.4966288Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.4966416Z ================== 2023-01-11T21:03:41.4966516Z ================== 2023-01-11T21:03:41.4966812Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.4967103Z  Write of size 4 at 0x7b940005db64 by thread T2: 2023-01-11T21:03:41.4971031Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:41.4971477Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4971875Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4972392Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4972926Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4973477Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.4973730Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.4974063Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.4974304Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.4974315Z 2023-01-11T21:03:41.4974872Z  Previous write of size 4 at 0x7b940005db64 by main thread: 2023-01-11T21:03:41.4978301Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:41.4978804Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.4979141Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.4979596Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.4980044Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.4980379Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.4980733Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.4981134Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.4981418Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.4982699Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.4983132Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.4983352Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.4983739Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.4984121Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.4984332Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.4984547Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.4985388Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.4985610Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.4985857Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.4986693Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.4986962Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4987838Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.4988085Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.4988956Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.4989172Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.4989433Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.4989608Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.4989775Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.4990028Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.4990129Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.4990247Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.4990365Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.4990511Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.4990825Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.4990971Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.4991064Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.4991072Z 2023-01-11T21:03:41.4991311Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.4991477Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.4991599Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.4991746Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.4991948Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.4992415Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.4992698Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.4992964Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.4993231Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.4993554Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.4994710Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.4995339Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.4995684Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.4996733Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.4997006Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.4997194Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.4997468Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.4998616Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.4998920Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5000012Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5000324Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5000591Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5001750Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5002085Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5003174Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5003499Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5003688Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5003981Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.5005145Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.5005494Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5006562Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5006851Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5007120Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5008333Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5008709Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5010219Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5010666Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5010969Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5011195Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.5012251Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.5012510Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.5012889Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.5013219Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.5013601Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.5013954Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5014614Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5015238Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5015576Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5015930Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5017312Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5017686Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5017987Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5019249Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5019683Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5021212Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5021693Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5023267Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5023542Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5023922Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5024148Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5024415Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5024786Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5024940Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5025136Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5025315Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5025494Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5025981Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5026111Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5026256Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5026267Z 2023-01-11T21:03:41.5026642Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.5026987Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.5027350Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.5027880Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.5028152Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.5028661Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.5028881Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.5029171Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.5029798Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.5030082Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.5030366Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.5030682Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.5031417Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.5031649Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.5032010Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.5032928Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.5033207Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.5034354Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.5034762Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.5034928Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.5035967Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.5036180Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.5036333Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.5036605Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5036785Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5036972Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5037174Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5037412Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5037936Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5038134Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5038280Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5038291Z 2023-01-11T21:03:41.5040486Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.5040561Z ================== 2023-01-11T21:03:41.5040626Z ================== 2023-01-11T21:03:41.5040785Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.5040962Z  Write of size 4 at 0x7b940005db64 by thread T1: 2023-01-11T21:03:41.5043185Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:41.5043483Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5043705Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5043990Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5044279Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5044548Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.5044689Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.5044913Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.5045049Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.5045056Z 2023-01-11T21:03:41.5045233Z  Previous write of size 4 at 0x7b940005db64 by main thread: 2023-01-11T21:03:41.5047398Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9db) 2023-01-11T21:03:41.5047684Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5047906Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5048214Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5048507Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5048698Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.5048897Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.5049119Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.5049333Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.5050051Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.5050291Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.5050512Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5050904Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5051291Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5051504Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5051748Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5052617Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5052851Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5053103Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5053935Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5054179Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5055137Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5055383Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5056254Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5056519Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5056812Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5056991Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5057154Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5057406Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5057519Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5057639Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5057750Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5057901Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5058210Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5058330Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5058424Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5058429Z 2023-01-11T21:03:41.5058656Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.5058822Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.5058944Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.5059108Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.5059314Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.5059756Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.5060029Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.5060292Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.5060555Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.5060906Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.5062022Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.5062660Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.5062963Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.5063992Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.5064280Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.5064452Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.5064747Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.5065916Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.5066223Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5067296Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5067569Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5067836Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5068992Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5069377Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5070468Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5070773Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5071054Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5071480Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.5073194Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.5073716Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5075521Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5075912Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5076295Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5077977Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5078360Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5079941Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5080538Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5080842Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5081074Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.5082185Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.5082426Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.5082744Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.5083077Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.5083455Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.5083809Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5084435Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5085075Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5085437Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5085801Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5087173Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5087662Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5088058Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5089327Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5089741Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5091306Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5091804Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5093315Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5093779Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5094256Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5095575Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5095874Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5096334Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5096545Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5096742Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5096964Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5097242Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5097864Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5098081Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5098253Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5098270Z 2023-01-11T21:03:41.5098691Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.5098873Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.5099092Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.5099496Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.5099757Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.5100226Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.5100511Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.5100847Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.5101535Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.5101897Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.5102197Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.5102565Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.5103609Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.5103880Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.5104308Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.5105514Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.5105906Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.5107147Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.5107477Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.5107621Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.5108233Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.5108380Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.5108532Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.5108783Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5108897Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5109019Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5109141Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5109333Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5109631Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5109749Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5109841Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5109848Z 2023-01-11T21:03:41.5111567Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9db) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.5111654Z ================== 2023-01-11T21:03:41.5111706Z ================== 2023-01-11T21:03:41.5111878Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.5112080Z  Write of size 4 at 0x7b940005db68 by thread T3: 2023-01-11T21:03:41.5114287Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:41.5114644Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5114873Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5115159Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5115446Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5115751Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.5115880Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.5116106Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.5116270Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.5116277Z 2023-01-11T21:03:41.5116469Z  Previous write of size 4 at 0x7b940005db68 by main thread: 2023-01-11T21:03:41.5118620Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:41.5118894Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5119115Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5119397Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5119687Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5119877Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.5120078Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.5120305Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.5120516Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.5121256Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.5121519Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.5121740Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5122125Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5122513Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5122726Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5122942Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5123782Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5124002Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5124250Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5125092Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5125364Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5126232Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5126481Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5127354Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5127567Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5127826Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5128002Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5128166Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5128418Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5128520Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5128639Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5128759Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5128909Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5129218Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5129366Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5129458Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5129463Z 2023-01-11T21:03:41.5129687Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.5129853Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.5129975Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.5130122Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.5130351Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.5130793Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.5131062Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.5131326Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.5131596Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.5131920Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.5133001Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.5133628Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.5133968Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.5135138Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.5135417Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.5135602Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.5135874Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.5137022Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.5137478Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5139221Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5139827Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5140274Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5142357Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5142974Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5144947Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5145530Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5145868Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5146450Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.5148060Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.5148387Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5149865Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5150269Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5150688Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5152622Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5153111Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5154776Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5155234Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5155538Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5155765Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.5156784Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.5157112Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.5157440Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.5157716Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.5158098Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.5158503Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5159036Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5159672Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5159926Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5160275Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5161653Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5162019Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5162485Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5163852Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5164296Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5165799Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5166205Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5167706Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5168065Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5168529Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5168832Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5169101Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5169551Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5169742Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5169952Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5170152Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5170392Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5170956Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5171176Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5171313Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5171383Z 2023-01-11T21:03:41.5171756Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.5172024Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.5172425Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.5173007Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.5173375Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.5173695Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.5173851Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.5174039Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.5174547Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.5174770Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.5174960Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.5175156Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.5175721Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.5175884Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.5176113Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.5176781Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.5176992Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.5177759Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.5178009Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.5178139Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.5178797Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.5178949Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.5179086Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.5179341Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5179461Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5179583Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5179706Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5179855Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5180166Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5180283Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5180375Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5180382Z 2023-01-11T21:03:41.5182034Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.5182107Z ================== 2023-01-11T21:03:41.5182171Z ================== 2023-01-11T21:03:41.5182340Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.5182514Z  Write of size 4 at 0x7b940005db68 by thread T2: 2023-01-11T21:03:41.5184672Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:41.5184974Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5185198Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5185486Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5185777Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5186047Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.5186189Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.5186413Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.5186553Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.5186560Z 2023-01-11T21:03:41.5186748Z  Previous write of size 4 at 0x7b940005db68 by main thread: 2023-01-11T21:03:41.5188858Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:41.5189148Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5189395Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5189675Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5189967Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5190158Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.5190358Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.5190586Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.5190795Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.5191508Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.5191745Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.5191969Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5192353Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5192737Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5192947Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5193190Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5194071Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5194293Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5194540Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5195441Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5195688Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5196558Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5196805Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5197662Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5197939Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5198199Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5198375Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5198539Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5198791Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5198904Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5199025Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5199148Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5199297Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5199606Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5199717Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5199808Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5199813Z 2023-01-11T21:03:41.5200038Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.5200202Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.5200324Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.5200485Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.5200689Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.5201132Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.5201401Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.5201664Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.5201930Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.5202283Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.5203374Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.5204012Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.5204314Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.5205355Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.5205630Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.5205844Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.5206111Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.5207262Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.5207572Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5208646Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5208923Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5209190Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5210361Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5210730Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5211820Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5212117Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5212308Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5212604Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.5213767Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.5214103Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5215320Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5215597Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5215867Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5217046Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5217364Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5218478Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5218811Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5219004Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5219152Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.5220162Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.5220318Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.5220513Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.5220712Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.5220945Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.5221165Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5221552Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5221941Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5222156Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5222373Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5223263Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5223482Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5223732Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5224560Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5224817Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5225662Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5225905Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5226757Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5227010Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5227305Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5227466Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5227630Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5227883Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5227996Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5228112Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5228231Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5228379Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5228690Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5228807Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5228903Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5228908Z 2023-01-11T21:03:41.5229135Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.5229288Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.5229505Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.5229818Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.5229997Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.5230290Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.5230442Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.5230634Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.5231040Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.5231258Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.5231441Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.5231663Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.5232232Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.5232421Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.5232644Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.5233311Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.5233521Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.5234281Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.5234457Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.5234668Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.5235283Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.5235433Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.5235582Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.5235836Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5235951Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5236102Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5236220Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5236367Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5236676Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5236795Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5236875Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5236892Z 2023-01-11T21:03:41.5238590Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.5238662Z ================== 2023-01-11T21:03:41.5238724Z ================== 2023-01-11T21:03:41.5238882Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.5239057Z  Write of size 4 at 0x7b940005db68 by thread T1: 2023-01-11T21:03:41.5241195Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:41.5241470Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5241692Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5241976Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5242291Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5242556Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.5242697Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.5242943Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.5243068Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.5243088Z 2023-01-11T21:03:41.5243264Z  Previous write of size 4 at 0x7b940005db68 by main thread: 2023-01-11T21:03:41.5245391Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882f9ff) 2023-01-11T21:03:41.5245647Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5245870Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5246145Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5246434Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5246623Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.5246821Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.5247045Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.5247282Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.5248029Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.5248267Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.5248490Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5248873Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5249265Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5249480Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5249696Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5250540Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5250775Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5251020Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5251847Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5252123Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5252991Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5253241Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5254109Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5254418Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5254681Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5254858Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5255026Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5255283Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5255398Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5255503Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5255626Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5255772Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5256126Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5256248Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5256342Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5256348Z 2023-01-11T21:03:41.5256576Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.5256747Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.5256871Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.5257065Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.5257269Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.5257714Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.5257982Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.5258248Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.5258513Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.5258844Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.5259913Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.5260554Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.5260887Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.5261931Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.5262209Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.5262399Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.5262669Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.5263813Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.5264121Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5265221Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5265528Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5265793Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5266950Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5267282Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5268366Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5268688Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5268877Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5269202Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.5270319Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.5270625Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5271688Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5271960Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5272255Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5273438Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5273770Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5274921Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5275212Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5275403Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5275550Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.5276226Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.5276409Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.5276602Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.5276801Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.5277034Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.5277285Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5277670Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5278059Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5278273Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5278485Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5279334Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5279551Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5279796Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5280624Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5280901Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5281786Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5282031Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5282893Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5283107Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5283364Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5283535Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5283698Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5283949Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5284063Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5284181Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5284303Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5284449Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5284760Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5284891Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5284982Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5284988Z 2023-01-11T21:03:41.5285208Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.5285374Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.5285593Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.5285907Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.5286104Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.5286399Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.5286555Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.5286744Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.5287149Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.5287369Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.5287553Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.5287753Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.5288308Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.5288469Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.5288690Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.5289355Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.5289565Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.5290329Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.5290557Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.5290698Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.5291303Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.5291449Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.5291596Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.5291852Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5291965Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5292085Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5292205Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5292350Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5292658Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5292775Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5292867Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5292872Z 2023-01-11T21:03:41.5294619Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882f9ff) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.5294692Z ================== 2023-01-11T21:03:41.5294756Z ================== 2023-01-11T21:03:41.5294923Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.5295086Z  Write of size 4 at 0x7b940005db6c by thread T3: 2023-01-11T21:03:41.5297324Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:41.5297588Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5297810Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5298091Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5298377Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5298641Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.5298778Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.5299001Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.5299135Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.5299143Z 2023-01-11T21:03:41.5299330Z  Previous write of size 4 at 0x7b940005db6c by main thread: 2023-01-11T21:03:41.5301453Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:41.5301745Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5301990Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5302269Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5302550Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5302738Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.5302938Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.5303160Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.5303369Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.5304082Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.5304315Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.5304534Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5304916Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5305302Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5305536Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5305747Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5306620Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5306839Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5307085Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5307913Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5308159Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5309003Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5309262Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5310114Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5310388Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5310649Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5310821Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5310985Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5311237Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5311350Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5311467Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5311574Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5311718Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5312028Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5312145Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5312237Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5312243Z 2023-01-11T21:03:41.5312463Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.5312627Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.5312750Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.5312913Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.5313115Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.5313660Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.5313930Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.5314222Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.5314599Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.5314929Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.5316034Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.5316678Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.5316980Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.5318007Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.5318297Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.5318511Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.5318780Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.5319928Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.5320238Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5321314Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5321588Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5321855Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5323052Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5323392Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5324476Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5324773Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5324966Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5325247Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.5326351Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.5326681Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5327775Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5328055Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5328321Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5329476Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5329806Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5330917Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5331256Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5331436Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5331581Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.5332268Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.5332420Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.5332612Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.5332797Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.5333030Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.5333246Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5333630Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5334025Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5334238Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5334565Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5335446Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5335666Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5335912Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5336734Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5337049Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5337937Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5338181Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5339032Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5339291Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5339583Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5339758Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5339921Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5340177Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5340295Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5340415Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5340539Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5340688Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5341004Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5341126Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5341206Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5341213Z 2023-01-11T21:03:41.5341441Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.5341608Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.5341829Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.5342152Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.5342327Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.5342622Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.5342775Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.5342966Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.5343373Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.5343595Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.5343812Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.5344006Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.5344564Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.5344753Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.5344983Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.5345649Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.5345861Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.5346627Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.5346807Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.5346950Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.5347579Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.5347808Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.5347995Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.5348282Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5348434Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5348553Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5348675Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5348824Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5349134Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5349252Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5349347Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5349353Z 2023-01-11T21:03:41.5351031Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.5361710Z ================== 2023-01-11T21:03:41.5361839Z ================== 2023-01-11T21:03:41.5362071Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.5362260Z  Write of size 4 at 0x7b940005db6c by thread T2: 2023-01-11T21:03:41.5364442Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:41.5364724Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5364948Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5365230Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5365615Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5365881Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.5366021Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.5366278Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.5366405Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.5366413Z 2023-01-11T21:03:41.5366602Z  Previous write of size 4 at 0x7b940005db6c by main thread: 2023-01-11T21:03:41.5368733Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:41.5368995Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5369218Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5369499Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5369784Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5369973Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.5370174Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.5370399Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.5370635Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.5371375Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.5371615Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.5371834Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5372212Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5372600Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5372817Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5373030Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5373868Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5374086Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5374526Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5375368Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5375700Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5376545Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5376795Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5377665Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5377879Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5378140Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5378316Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5378479Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5378731Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5378846Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5378952Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5379071Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5379250Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5379560Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5379680Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5379772Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5379778Z 2023-01-11T21:03:41.5380004Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.5380169Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.5380343Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.5380505Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.5380699Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.5381151Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.5381420Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.5381681Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.5381950Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.5382271Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.5383337Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.5383971Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.5384299Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.5385355Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.5385631Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.5385817Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.5386085Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.5387224Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.5387531Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5388645Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5388921Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5389183Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5390340Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5390671Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5391751Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5392064Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5392279Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5392573Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.5393684Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.5393988Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5395146Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5395423Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5395719Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5396905Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5397228Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5398321Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5398613Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5398803Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5398950Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.5399621Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.5399802Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.5399995Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.5400192Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.5400449Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.5400668Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5401052Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5401435Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5401648Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5401864Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5402705Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5402924Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5403170Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5404012Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5404280Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5405151Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5405399Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5406253Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5406480Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5406741Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5406915Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5407067Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5407319Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5407433Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5407550Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5407668Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5407813Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5408121Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5408264Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5408352Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5408359Z 2023-01-11T21:03:41.5408580Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:41.5408744Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.5408951Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.5409293Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.5409466Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.5409760Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.5409911Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.5410101Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.5410505Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.5410723Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.5410912Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.5411106Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.5411662Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.5411823Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.5412047Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.5412711Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.5412919Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.5413719Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.5413927Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.5414069Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.5414786Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.5414933Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.5415085Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.5415337Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5415453Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5415559Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5415679Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5415827Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5416138Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5416256Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5416351Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5416357Z 2023-01-11T21:03:41.5418012Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.5418082Z ================== 2023-01-11T21:03:41.5418146Z ================== 2023-01-11T21:03:41.5418362Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.5418536Z  Write of size 4 at 0x7b940005db6c by thread T1: 2023-01-11T21:03:41.5420705Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:41.5420972Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5421196Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5421479Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5421772Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5422038Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.5422181Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.5422402Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.5422537Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.5422544Z 2023-01-11T21:03:41.5422732Z  Previous write of size 4 at 0x7b940005db6c by main thread: 2023-01-11T21:03:41.5424860Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x882fa23) 2023-01-11T21:03:41.5425189Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.5425412Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.5425694Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.5425980Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.5426170Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.5426372Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.5426601Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801744) 2023-01-11T21:03:41.5426811Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.5427537Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.5427774Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.5427992Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5428373Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5428871Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5429120Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5429333Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5430198Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5430420Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5430669Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5431492Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5431752Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5432599Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5432848Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5433754Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5433970Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5434232Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5434406Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5434624Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5434883Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5435002Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5435122Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5435245Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5435394Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5435704Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5435825Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5435917Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5435923Z 2023-01-11T21:03:41.5436152Z  Location is heap block of size 10080 at 0x7b940005c800 allocated by main thread: 2023-01-11T21:03:41.5436308Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.5436433Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.5436595Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.5436801Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.5437241Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.5437508Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.5437775Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.5438072Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.5438394Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.5439609Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.5440268Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.5440572Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.5441610Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.5441883Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.5442100Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.5442372Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.5443528Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.5443850Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5444910Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5445182Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5445445Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5446651Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5447008Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5448102Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5448392Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5448584Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5448880Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.5449981Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.5450333Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.5451415Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.5451689Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.5451957Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.5453124Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.5453443Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.5454704Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.5454996Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.5455187Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.5455333Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.5456006Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.5456168Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.5456361Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.5456558Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.5456793Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.5457014Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.5457398Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.5457783Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.5457993Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.5458244Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.5459116Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.5459338Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.5459584Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.5460422Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.5460669Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5461517Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.5461763Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.5462636Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.5462909Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.5463171Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.5463347Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.5463510Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.5463766Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5463867Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5463985Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5464104Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5464253Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5464564Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5464684Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5464776Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5464783Z 2023-01-11T21:03:41.5465011Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:41.5465175Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.5465396Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.5465709Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.5465882Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.5466175Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.5466314Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.5466504Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.5466909Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.5467124Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.5467347Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.5467540Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.5468122Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.5468288Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.5468517Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.5469196Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.5469404Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.5470177Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.5470353Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.5470497Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.5471106Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.5471249Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.5471402Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.5471652Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.5471794Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.5471912Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.5472033Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.5472168Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.5472482Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.5472629Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.5472724Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.5472729Z 2023-01-11T21:03:41.5474395Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x882fa23) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda1'()::operator 2023-01-11T21:03:41.5474469Z ================== 2023-01-11T21:03:41.9612898Z ================== 2023-01-11T21:03:41.9613733Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:41.9614643Z  Write of size 8 at 0x7ba40006a3b0 by main thread: 2023-01-11T21:03:41.9619064Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:41.9622068Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.9622935Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.9624064Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.9625090Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.9625963Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:41.9626785Z #6 at::TensorIteratorBase::for_each(c10::function_ref, long) (libtorch_cpu.so+0xd0d79d) 2023-01-11T21:03:41.9627584Z #7 at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x8801704) 2023-01-11T21:03:41.9628395Z #8 at::native::_index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1852cec) 2023-01-11T21:03:41.9630107Z #9 c10::impl::make_boxed_from_unboxed_functor > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___index_put_impl_(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2bc3066) 2023-01-11T21:03:41.9631772Z #10 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:41.9632591Z #11 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.9633693Z #12 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.9635158Z #13 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.9636243Z #14 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.9637028Z #15 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.9639005Z #16 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.9640910Z #17 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.9641762Z #18 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.9643806Z #19 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.9645666Z #20 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.9647681Z #21 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.9649577Z #22 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.9651629Z #23 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.9653502Z #24 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.9654621Z #25 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.9655407Z #26 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.9656027Z #27 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.9656818Z #28 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.9657623Z #29 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.9658197Z #30 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.9658653Z #31 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.9659172Z #32 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.9660061Z #33 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.9660879Z #34 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.9661374Z #35 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.9661607Z 2023-01-11T21:03:41.9661998Z  Previous write of size 8 at 0x7ba40006a3b0 by thread T3: 2023-01-11T21:03:41.9666516Z  #0 void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long) const&)::'lambda'(char**, long const*, long, long)>(long, char**, long const*, long, long) (libtorch_cpu.so+0x8831595) 2023-01-11T21:03:41.9669530Z #1 at::internal::serial_for_each(c10::ArrayRef, c10::ArrayRef, char**, unsigned long, c10::function_ref, at::Range) (libtorch_cpu.so+0xd1b212) 2023-01-11T21:03:41.9670411Z #2 at::TensorIteratorBase::serial_for_each(c10::function_ref, at::Range) const (libtorch_cpu.so+0xd0dd32) 2023-01-11T21:03:41.9671395Z #3 std::_Function_handler, long)::$_5>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0xd1a612) 2023-01-11T21:03:41.9672433Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:41.9673557Z #5 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:41.9674400Z #6 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:41.9675176Z #7 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:41.9703686Z #8 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:41.9704052Z 2023-01-11T21:03:41.9704902Z  Location is heap block of size 20160 at 0x7ba400069000 allocated by main thread: 2023-01-11T21:03:41.9705815Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:41.9706462Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:41.9707139Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:41.9707878Z #3 c10::StorageImpl::StorageImpl(c10::StorageImpl::use_byte_size_t, c10::SymInt, c10::Allocator*, bool) (libtorch_cpu.so+0xc2bd76) 2023-01-11T21:03:41.9709257Z #4 c10::intrusive_ptr > c10::intrusive_ptr >::make(c10::StorageImpl::use_byte_size_t&&, unsigned long&, c10::Allocator*&, bool&&) (libtorch_cpu.so+0xc2bb25) 2023-01-11T21:03:41.9710634Z #5 at::TensorBase at::detail::_empty_strided_generic >(c10::ArrayRef, c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType) (libtorch_cpu.so+0xc28e98) 2023-01-11T21:03:41.9711769Z #6 at::detail::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0xc27c4f) 2023-01-11T21:03:41.9712823Z #7 at::native::empty_strided_cpu(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x1909334) 2023-01-11T21:03:41.9714061Z #8 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2aaabeb) 2023-01-11T21:03:41.9716958Z #9 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2bb7599) 2023-01-11T21:03:41.9720439Z #10 at::Tensor c10::Dispatcher::redispatch, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional >(c10::TypedOperatorHandle, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)> const&, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) const (libtorch_cpu.so+0x26271b7) 2023-01-11T21:03:41.9722242Z #11 at::_ops::empty_strided::redispatch(c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef727) 2023-01-11T21:03:41.9724961Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional), &(at::(anonymous namespace)::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional > >, at::Tensor (c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x2a74d78) 2023-01-11T21:03:41.9727690Z #13 at::_ops::empty_strided::call(c10::ArrayRef, c10::ArrayRef, c10::optional, c10::optional, c10::optional, c10::optional) (libtorch_cpu.so+0x24ef09c) 2023-01-11T21:03:41.9728521Z #14 at::empty_strided(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions) (libtorch_cpu.so+0xd1c7a0) 2023-01-11T21:03:41.9729360Z #15 at::native::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x18c022b) 2023-01-11T21:03:41.9732221Z #16 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2f3392f) 2023-01-11T21:03:41.9735112Z #17 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.9738026Z #18 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.9740946Z #19 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.9742045Z #20 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.9744787Z #21 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.9747759Z #22 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.9750638Z #23 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.9753711Z #24 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.9754725Z #25 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.9755805Z #26 torch::lazy::LazyNativeFunctions::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x7a27c8d) 2023-01-11T21:03:41.9758649Z #27 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_Lazy___to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x678129f) 2023-01-11T21:03:41.9761406Z #28 at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c5dd) 2023-01-11T21:03:41.9764350Z #29 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, c10::optional), &(at::(anonymous namespace)::_to_copy(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x2a8cf03) 2023-01-11T21:03:41.9767071Z #30 at::_ops::_to_copy::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, c10::optional) (libtorch_cpu.so+0x201c23d) 2023-01-11T21:03:41.9768220Z #31 at::native::to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x18c1cae) 2023-01-11T21:03:41.9771014Z #32 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_dtype_layout_to(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x3229088) 2023-01-11T21:03:41.9774100Z #33 at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbf84) 2023-01-11T21:03:41.9777158Z #34 c10::impl::wrap_kernel_functor_unboxed_, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional), &(at::(anonymous namespace)::to_dtype_layout(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional))>, at::Tensor, c10::guts::typelist::typelist, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional > >, at::Tensor (at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x2a8d39c) 2023-01-11T21:03:41.9779950Z #35 at::_ops::to_dtype_layout::call(at::Tensor const&, c10::optional, c10::optional, c10::optional, c10::optional, bool, bool, c10::optional) (libtorch_cpu.so+0x22dbbc1) 2023-01-11T21:03:41.9780953Z #36 at::Tensor::to(c10::TensorOptions, bool, bool, c10::optional) const (libtorch_cpu.so+0xc7e0fd) 2023-01-11T21:03:41.9781748Z #37 at::native::_to_cpu(c10::ArrayRef) (libtorch_cpu.so+0x18c2a87) 2023-01-11T21:03:41.9783377Z #38 c10::impl::wrap_kernel_functor_unboxed_ > (c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd___to_cpu(c10::ArrayRef))>, std::vector >, c10::guts::typelist::typelist > >, std::vector > (c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, c10::ArrayRef) (libtorch_cpu.so+0x3225a75) 2023-01-11T21:03:41.9785122Z #39 at::_ops::_to_cpu::call(c10::ArrayRef) (libtorch_cpu.so+0x20162e6) 2023-01-11T21:03:41.9785763Z #40 torch::lazy::(anonymous namespace)::_to_eager(c10::ArrayRef, c10::DeviceType) (libtorch_cpu.so+0x7a1f6bd) 2023-01-11T21:03:41.9786562Z #41 torch::lazy::(anonymous namespace)::to_eager(c10::ArrayRef const&, c10::DeviceType) (libtorch_cpu.so+0x7a1ee60) 2023-01-11T21:03:41.9787475Z #42 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b26d) 2023-01-11T21:03:41.9788477Z #43 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:41.9789586Z #44 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:41.9791233Z #45 c10::impl::BoxedKernelWrapper > const&, at::Tensor const&, bool, bool), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2134cd7) 2023-01-11T21:03:41.9792312Z #46 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce3a5) 2023-01-11T21:03:41.9793093Z #47 at::native::_index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1f421f9) 2023-01-11T21:03:41.9795216Z #48 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___index_put_impl(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor (at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x2ede3a3) 2023-01-11T21:03:41.9797246Z #49 at::_ops::_index_put_impl::call(at::Tensor const&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x209ff54) 2023-01-11T21:03:41.9798112Z #50 at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x32f0f3c) 2023-01-11T21:03:41.9800358Z #51 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(at::functionalization::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x342c330) 2023-01-11T21:03:41.9802325Z #52 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.9804685Z #53 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::ADInplaceOrView::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x6325c3e) 2023-01-11T21:03:41.9806727Z #54 at::_ops::_index_put_impl_::redispatch(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce6b8) 2023-01-11T21:03:41.9808938Z #55 c10::impl::wrap_kernel_functor_unboxed_ > const&, at::Tensor const&, bool, bool), &(torch::autograd::VariableType::(anonymous namespace)::_index_put_impl_(c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool))>, at::Tensor&, c10::guts::typelist::typelist > const&, at::Tensor const&, bool, bool> >, at::Tensor& (c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x5108a54) 2023-01-11T21:03:41.9810869Z #56 at::_ops::_index_put_impl_::call(at::Tensor&, c10::List > const&, at::Tensor const&, bool, bool) (libtorch_cpu.so+0x1fce344) 2023-01-11T21:03:41.9811841Z #57 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x3ec117) 2023-01-11T21:03:41.9812789Z #58 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:41.9813419Z #59 torch::lazy::LazyOpsTest_TestIndexPutImpl_Test::TestBody() (test_lazy+0x2d50d5) 2023-01-11T21:03:41.9814214Z #60 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.9815082Z #61 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.9815529Z #62 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.9816181Z #63 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.9816705Z #64 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.9817683Z #65 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.9818550Z #66 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.9818959Z #67 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.9819348Z 2023-01-11T21:03:41.9819774Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:41.9820381Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:41.9821004Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:41.9822148Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:41.9823219Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:41.9824339Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:41.9825170Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:41.9825816Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:41.9827060Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:41.9828117Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:41.9828868Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:41.9829672Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:41.9831322Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:41.9832775Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:41.9833495Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:41.9835466Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:41.9837089Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:41.9839026Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:41.9840961Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:41.9841724Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:41.9843119Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:41.9844570Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:41.9845297Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:41.9846063Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:41.9846739Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:41.9847185Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:41.9847737Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:41.9848416Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:41.9849293Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:41.9850096Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:41.9850586Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:41.9850819Z 2023-01-11T21:03:41.9854659Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8831595) in void c10::function_ref::callback_fn, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long)>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::(anonymous namespace)::index_put_kernel(at::TensorIterator&, c10::ArrayRef, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operator()() const::'lambda1'(char*, char*, long) const&, bool)::'lambda'(char**, long const*, long)>(void at::native::cpu_index_kernel, c10::ArrayRef, bool)::$_3::operator()() const::'lambda2'()::operat 2023-01-11T21:03:41.9856869Z ================== 2023-01-11T21:03:42.2686424Z [ OK ] LazyOpsTest.TestIndexPutImpl (1337 ms) 2023-01-11T21:03:42.2687062Z [ RUN ] LazyOpsTest.TestIndexFillWithScalar 2023-01-11T21:03:42.3169658Z [ OK ] LazyOpsTest.TestIndexFillWithScalar (48 ms) 2023-01-11T21:03:42.3170349Z [ RUN ] LazyOpsTest.TestIndexFillWithScalarInPlace 2023-01-11T21:03:42.3590715Z [ OK ] LazyOpsTest.TestIndexFillWithScalarInPlace (42 ms) 2023-01-11T21:03:42.3591424Z [ RUN ] LazyOpsTest.TestIndexFillWithTensor 2023-01-11T21:03:42.3989286Z [ OK ] LazyOpsTest.TestIndexFillWithTensor (39 ms) 2023-01-11T21:03:42.3990005Z [ RUN ] LazyOpsTest.TestIndexFillWithTensorInPlace 2023-01-11T21:03:42.4461525Z [ OK ] LazyOpsTest.TestIndexFillWithTensorInPlace (47 ms) 2023-01-11T21:03:42.4462218Z [ RUN ] LazyOpsTest.TestIndexFillRank0 2023-01-11T21:03:42.4843917Z [ OK ] LazyOpsTest.TestIndexFillRank0 (38 ms) 2023-01-11T21:03:42.4844483Z [ RUN ] LazyOpsTest.TestIndexAdd 2023-01-11T21:03:42.6029088Z [ OK ] LazyOpsTest.TestIndexAdd (118 ms) 2023-01-11T21:03:42.6029701Z [ RUN ] LazyOpsTest.TestIndexAddInPlace 2023-01-11T21:03:42.6952432Z [ OK ] LazyOpsTest.TestIndexAddInPlace (92 ms) 2023-01-11T21:03:42.6953065Z [ RUN ] LazyOpsTest.TestIndexAddRank0 2023-01-11T21:03:42.7357702Z [ OK ] LazyOpsTest.TestIndexAddRank0 (40 ms) 2023-01-11T21:03:42.7358051Z [ RUN ] LazyOpsTest.TestIndexCopy 2023-01-11T21:03:42.7719369Z [ OK ] LazyOpsTest.TestIndexCopy (36 ms) 2023-01-11T21:03:42.7719849Z [ RUN ] LazyOpsTest.TestIndexCopyInPlace 2023-01-11T21:03:42.8185237Z [ OK ] LazyOpsTest.TestIndexCopyInPlace (46 ms) 2023-01-11T21:03:42.8185592Z [ RUN ] LazyOpsTest.TestIndexCopyRank0 2023-01-11T21:03:42.8533010Z [ OK ] LazyOpsTest.TestIndexCopyRank0 (34 ms) 2023-01-11T21:03:42.8533313Z [ RUN ] LazyOpsTest.TestRelu 2023-01-11T21:03:42.8568511Z [ OK ] LazyOpsTest.TestRelu (3 ms) 2023-01-11T21:03:42.8568891Z [ RUN ] LazyOpsTest.TestReluInPlace 2023-01-11T21:03:42.8629227Z [ OK ] LazyOpsTest.TestReluInPlace (6 ms) 2023-01-11T21:03:42.8629615Z [ RUN ] LazyOpsTest.TestHardshrink 2023-01-11T21:03:42.8642471Z [ OK ] LazyOpsTest.TestHardshrink (1 ms) 2023-01-11T21:03:42.8642854Z [ RUN ] LazyOpsTest.TestHardSigmoid 2023-01-11T21:03:42.8676568Z [ OK ] LazyOpsTest.TestHardSigmoid (3 ms) 2023-01-11T21:03:42.8676993Z [ RUN ] LazyOpsTest.TestHardSigmoidInPlace 2023-01-11T21:03:42.8731958Z [ OK ] LazyOpsTest.TestHardSigmoidInPlace (5 ms) 2023-01-11T21:03:42.8732384Z [ RUN ] LazyOpsTest.TestHardSigmoidBackward 2023-01-11T21:03:42.8849833Z [ OK ] LazyOpsTest.TestHardSigmoidBackward (11 ms) 2023-01-11T21:03:42.8850171Z [ RUN ] LazyOpsTest.TestSoftshrink 2023-01-11T21:03:42.8862527Z [ OK ] LazyOpsTest.TestSoftshrink (1 ms) 2023-01-11T21:03:42.8862890Z [ RUN ] LazyOpsTest.TestHardtanh 2023-01-11T21:03:42.8875857Z [ OK ] LazyOpsTest.TestHardtanh (1 ms) 2023-01-11T21:03:42.8876207Z [ RUN ] LazyOpsTest.TestHardtanhInPlace 2023-01-11T21:03:42.8897335Z [ OK ] LazyOpsTest.TestHardtanhInPlace (2 ms) 2023-01-11T21:03:42.8897642Z [ RUN ] LazyOpsTest.TestLeakyRelu 2023-01-11T21:03:42.8933244Z [ OK ] LazyOpsTest.TestLeakyRelu (3 ms) 2023-01-11T21:03:42.8933573Z [ RUN ] LazyOpsTest.TestLeakyReluInPlace 2023-01-11T21:03:42.8990348Z [ OK ] LazyOpsTest.TestLeakyReluInPlace (5 ms) 2023-01-11T21:03:42.8990672Z [ RUN ] LazyOpsTest.TestExp 2023-01-11T21:03:42.9025214Z [ OK ] LazyOpsTest.TestExp (3 ms) 2023-01-11T21:03:42.9025512Z [ RUN ] LazyOpsTest.TestExpm1 2023-01-11T21:03:42.9038148Z [ OK ] LazyOpsTest.TestExpm1 (1 ms) 2023-01-11T21:03:42.9038452Z [ RUN ] LazyOpsTest.TestLog 2023-01-11T21:03:42.9073198Z [ OK ] LazyOpsTest.TestLog (3 ms) 2023-01-11T21:03:42.9073487Z [ RUN ] LazyOpsTest.TestLog2 2023-01-11T21:03:42.9108832Z [ OK ] LazyOpsTest.TestLog2 (3 ms) 2023-01-11T21:03:42.9109123Z [ RUN ] LazyOpsTest.TestLog10 2023-01-11T21:03:42.9123591Z [ OK ] LazyOpsTest.TestLog10 (1 ms) 2023-01-11T21:03:42.9123899Z [ RUN ] LazyOpsTest.TestLog1p 2023-01-11T21:03:42.9138710Z [ OK ] LazyOpsTest.TestLog1p (1 ms) 2023-01-11T21:03:42.9139198Z [ RUN ] LazyOpsTest.TestErf 2023-01-11T21:03:42.9154643Z [ OK ] LazyOpsTest.TestErf (1 ms) 2023-01-11T21:03:42.9155001Z [ RUN ] LazyOpsTest.TestErfc 2023-01-11T21:03:42.9169526Z [ OK ] LazyOpsTest.TestErfc (1 ms) 2023-01-11T21:03:42.9170053Z [ RUN ] LazyOpsTest.TestErfinv 2023-01-11T21:03:42.9184322Z [ OK ] LazyOpsTest.TestErfinv (1 ms) 2023-01-11T21:03:42.9184808Z [ RUN ] LazyOpsTest.TestSqrt 2023-01-11T21:03:42.9221118Z [ OK ] LazyOpsTest.TestSqrt (3 ms) 2023-01-11T21:03:42.9221543Z [ RUN ] LazyOpsTest.TestRsqrt 2023-01-11T21:03:42.9255176Z [ OK ] LazyOpsTest.TestRsqrt (3 ms) 2023-01-11T21:03:42.9255715Z [ RUN ] LazyOpsTest.TestReciprocal 2023-01-11T21:03:42.9288308Z [ OK ] LazyOpsTest.TestReciprocal (3 ms) 2023-01-11T21:03:42.9288650Z [ RUN ] LazyOpsTest.TestPowTensorScalar 2023-01-11T21:03:42.9324078Z [ OK ] LazyOpsTest.TestPowTensorScalar (3 ms) 2023-01-11T21:03:42.9324447Z [ RUN ] LazyOpsTest.TestPowTensorScalarInPlace 2023-01-11T21:03:42.9381846Z [ OK ] LazyOpsTest.TestPowTensorScalarInPlace (5 ms) 2023-01-11T21:03:42.9382236Z [ RUN ] LazyOpsTest.TestPowTensorTensor 2023-01-11T21:03:42.9420981Z [ OK ] LazyOpsTest.TestPowTensorTensor (3 ms) 2023-01-11T21:03:42.9421382Z [ RUN ] LazyOpsTest.TestPowTensorTensorInPlace 2023-01-11T21:03:42.9486566Z [ OK ] LazyOpsTest.TestPowTensorTensorInPlace (6 ms) 2023-01-11T21:03:42.9487022Z [ RUN ] LazyOpsTest.TestPowTensorTensorBroadcast 2023-01-11T21:03:42.9525845Z [ OK ] LazyOpsTest.TestPowTensorTensorBroadcast (3 ms) 2023-01-11T21:03:42.9526272Z [ RUN ] LazyOpsTest.TestPowScalarTensor 2023-01-11T21:03:42.9540218Z [ OK ] LazyOpsTest.TestPowScalarTensor (1 ms) 2023-01-11T21:03:42.9540609Z [ RUN ] LazyOpsTest.TestPowIntExponent 2023-01-11T21:03:42.9575749Z [ OK ] LazyOpsTest.TestPowIntExponent (3 ms) 2023-01-11T21:03:42.9576143Z [ RUN ] LazyOpsTest.TestFmodScalar 2023-01-11T21:03:42.9590664Z [ OK ] LazyOpsTest.TestFmodScalar (1 ms) 2023-01-11T21:03:42.9591047Z [ RUN ] LazyOpsTest.TestFmodScalarInPlace 2023-01-11T21:03:42.9613146Z [ OK ] LazyOpsTest.TestFmodScalarInPlace (2 ms) 2023-01-11T21:03:42.9613545Z [ RUN ] LazyOpsTest.TestFmodTensor 2023-01-11T21:03:42.9629519Z [ OK ] LazyOpsTest.TestFmodTensor (1 ms) 2023-01-11T21:03:42.9629922Z [ RUN ] LazyOpsTest.TestFmodTensorInPlace 2023-01-11T21:03:42.9653277Z [ OK ] LazyOpsTest.TestFmodTensorInPlace (2 ms) 2023-01-11T21:03:42.9653686Z [ RUN ] LazyOpsTest.TestRemainderScalar 2023-01-11T21:03:42.9693373Z [ OK ] LazyOpsTest.TestRemainderScalar (3 ms) 2023-01-11T21:03:42.9693810Z [ RUN ] LazyOpsTest.TestRemainderScalarInPlace 2023-01-11T21:03:42.9759104Z [ OK ] LazyOpsTest.TestRemainderScalarInPlace (6 ms) 2023-01-11T21:03:42.9759689Z [ RUN ] LazyOpsTest.TestRemainderTensor 2023-01-11T21:03:42.9798767Z [ OK ] LazyOpsTest.TestRemainderTensor (3 ms) 2023-01-11T21:03:42.9799189Z [ RUN ] LazyOpsTest.TestRemainderTensorInPlace 2023-01-11T21:03:42.9865235Z [ OK ] LazyOpsTest.TestRemainderTensorInPlace (6 ms) 2023-01-11T21:03:42.9870281Z [ RUN ] LazyOpsTest.TestWhere 2023-01-11T21:03:42.9870778Z [W TensorCompare.cpp:493] Warning: where received a uint8 condition tensor. This behavior is deprecated and will be removed in a future version of PyTorch. Use a boolean condition instead. (function operator()) 2023-01-11T21:03:42.9886916Z [ OK ] LazyOpsTest.TestWhere (2 ms) 2023-01-11T21:03:42.9887300Z [ RUN ] LazyOpsTest.TestWhereBroadcast 2023-01-11T21:03:42.9908024Z [ OK ] LazyOpsTest.TestWhereBroadcast (2 ms) 2023-01-11T21:03:42.9908409Z [ RUN ] LazyOpsTest.TestThreshold 2023-01-11T21:03:42.9944778Z [ OK ] LazyOpsTest.TestThreshold (3 ms) 2023-01-11T21:03:42.9945175Z [ RUN ] LazyOpsTest.TestThresholdBackward 2023-01-11T21:03:43.0062151Z [ OK ] LazyOpsTest.TestThresholdBackward (11 ms) 2023-01-11T21:03:43.0062505Z [ RUN ] LazyOpsTest.TestThresholdInPlace 2023-01-11T21:03:43.0112707Z [ OK ] LazyOpsTest.TestThresholdInPlace (5 ms) 2023-01-11T21:03:43.0112998Z [ RUN ] LazyOpsTest.TestElu 2023-01-11T21:03:43.0149458Z [ OK ] LazyOpsTest.TestElu (3 ms) 2023-01-11T21:03:43.0149760Z [ RUN ] LazyOpsTest.TestEluInPlace 2023-01-11T21:03:43.0210525Z [ OK ] LazyOpsTest.TestEluInPlace (6 ms) 2023-01-11T21:03:43.0210847Z [ RUN ] LazyOpsTest.TestSelu 2023-01-11T21:03:43.0247051Z [ OK ] LazyOpsTest.TestSelu (3 ms) 2023-01-11T21:03:43.0247364Z [ RUN ] LazyOpsTest.TestSeluInPlace 2023-01-11T21:03:43.0304934Z [ OK ] LazyOpsTest.TestSeluInPlace (5 ms) 2023-01-11T21:03:43.0305245Z [ RUN ] LazyOpsTest.TestCelu 2023-01-11T21:03:43.0320740Z [ OK ] LazyOpsTest.TestCelu (1 ms) 2023-01-11T21:03:43.0321059Z [ RUN ] LazyOpsTest.TestCeluInPlace 2023-01-11T21:03:43.0344202Z [ OK ] LazyOpsTest.TestCeluInPlace (2 ms) 2023-01-11T21:03:43.0344519Z [ RUN ] LazyOpsTest.TestGelu 2023-01-11T21:03:43.0380750Z [ OK ] LazyOpsTest.TestGelu (3 ms) 2023-01-11T21:03:43.0381052Z [ RUN ] LazyOpsTest.TestAddMatMul 2023-01-11T21:03:43.0527889Z [ OK ] LazyOpsTest.TestAddMatMul (14 ms) 2023-01-11T21:03:43.0528205Z [ RUN ] LazyOpsTest.TestEmbedding 2023-01-11T21:03:43.0574310Z [ OK ] LazyOpsTest.TestEmbedding (4 ms) 2023-01-11T21:03:43.0574786Z [ RUN ] LazyOpsTest.TestOneHot 2023-01-11T21:03:43.0679039Z [ OK ] LazyOpsTest.TestOneHot (10 ms) 2023-01-11T21:03:43.0679344Z [ RUN ] LazyOpsTest.TestTranspose 2023-01-11T21:03:43.0712103Z [ OK ] LazyOpsTest.TestTranspose (3 ms) 2023-01-11T21:03:43.0712437Z [ RUN ] LazyOpsTest.TestTransposeInPlace 2023-01-11T21:03:43.0764983Z [ OK ] LazyOpsTest.TestTransposeInPlace (5 ms) 2023-01-11T21:03:43.0765293Z [ RUN ] LazyOpsTest.TestReshape 2023-01-11T21:03:43.0842145Z [ OK ] LazyOpsTest.TestReshape (7 ms) 2023-01-11T21:03:43.0842494Z [ RUN ] LazyOpsTest.TestResize 2023-01-11T21:03:43.0902504Z [ OK ] LazyOpsTest.TestResize (6 ms) 2023-01-11T21:03:43.0902794Z [ RUN ] LazyOpsTest.TestViewResize 2023-01-11T21:03:43.0991365Z [ OK ] LazyOpsTest.TestViewResize (8 ms) 2023-01-11T21:03:43.0991662Z [ RUN ] LazyOpsTest.TestView 2023-01-11T21:03:43.1063742Z [ OK ] LazyOpsTest.TestView (7 ms) 2023-01-11T21:03:43.1064043Z [ RUN ] LazyOpsTest.TestViewMod 2023-01-11T21:03:43.1254591Z [ OK ] LazyOpsTest.TestViewMod (18 ms) 2023-01-11T21:03:43.1254919Z [ RUN ] LazyOpsTest.TestViewModComplex 2023-01-11T21:03:43.1477676Z [ OK ] LazyOpsTest.TestViewModComplex (22 ms) 2023-01-11T21:03:43.1478053Z [ RUN ] LazyOpsTest.TestViewOfViewMod 2023-01-11T21:03:43.1729786Z [ OK ] LazyOpsTest.TestViewOfViewMod (25 ms) 2023-01-11T21:03:43.1730128Z [ RUN ] LazyOpsTest.TestViewSqueezeAddInPlace 2023-01-11T21:03:43.1879818Z [ OK ] LazyOpsTest.TestViewSqueezeAddInPlace (14 ms) 2023-01-11T21:03:43.1880231Z [ RUN ] LazyOpsTest.TestUnsafeView 2023-01-11T21:03:43.1972219Z [ OK ] LazyOpsTest.TestUnsafeView (9 ms) 2023-01-11T21:03:43.1972537Z [ RUN ] LazyOpsTest.TestNarrow 2023-01-11T21:03:43.2208633Z [ OK ] LazyOpsTest.TestNarrow (23 ms) 2023-01-11T21:03:43.2208968Z [ RUN ] LazyOpsTest.TestNarrowUpdate 2023-01-11T21:03:43.2585283Z [ OK ] LazyOpsTest.TestNarrowUpdate (37 ms) 2023-01-11T21:03:43.2585660Z [ RUN ] LazyOpsTest.TestNarrowUpdateBaseCheck 2023-01-11T21:03:43.2915280Z [ OK ] LazyOpsTest.TestNarrowUpdateBaseCheck (32 ms) 2023-01-11T21:03:43.2915667Z [ RUN ] LazyOpsTest.TestNarrowUpdateTwoSlices 2023-01-11T21:03:43.4598599Z [ OK ] LazyOpsTest.TestNarrowUpdateTwoSlices (168 ms) 2023-01-11T21:03:43.4599004Z [ RUN ] LazyOpsTest.TestNarrowUpdateView 2023-01-11T21:03:43.5084534Z [ OK ] LazyOpsTest.TestNarrowUpdateView (48 ms) 2023-01-11T21:03:43.5084903Z [ RUN ] LazyOpsTest.TestNarrowInNarrowUpdate 2023-01-11T21:03:43.5672403Z [ OK ] LazyOpsTest.TestNarrowInNarrowUpdate (58 ms) 2023-01-11T21:03:43.5673065Z [ RUN ] LazyOpsTest.TestNarrowCopy 2023-01-11T21:03:43.5776029Z [ OK ] LazyOpsTest.TestNarrowCopy (10 ms) 2023-01-11T21:03:43.5776585Z [ RUN ] LazyOpsTest.TestViewAs 2023-01-11T21:03:43.5870509Z [ OK ] LazyOpsTest.TestViewAs (9 ms) 2023-01-11T21:03:43.5870814Z [ RUN ] LazyOpsTest.TestLogSoftmax 2023-01-11T21:03:43.6124362Z [ OK ] LazyOpsTest.TestLogSoftmax (25 ms) 2023-01-11T21:03:43.6124701Z [ RUN ] LazyOpsTest.TestLogSoftmaxCast 2023-01-11T21:03:43.6476782Z [ OK ] LazyOpsTest.TestLogSoftmaxCast (35 ms) 2023-01-11T21:03:43.6477162Z [ RUN ] LazyOpsTest.TestLogSoftmaxWrapper 2023-01-11T21:03:43.6743705Z [ OK ] LazyOpsTest.TestLogSoftmaxWrapper (26 ms) 2023-01-11T21:03:43.6744038Z [ RUN ] LazyOpsTest.TestSoftmax 2023-01-11T21:03:43.7000594Z [ OK ] LazyOpsTest.TestSoftmax (25 ms) 2023-01-11T21:03:43.7000945Z [ RUN ] LazyOpsTest.TestSoftmaxCast 2023-01-11T21:03:43.7400596Z [ OK ] LazyOpsTest.TestSoftmaxCast (39 ms) 2023-01-11T21:03:43.7400947Z [ RUN ] LazyOpsTest.TestSoftmaxWrapper 2023-01-11T21:03:43.7753660Z [ OK ] LazyOpsTest.TestSoftmaxWrapper (35 ms) 2023-01-11T21:03:43.7754235Z [ RUN ] LazyOpsTest.TestSoftplus 2023-01-11T21:03:43.7791150Z [ OK ] LazyOpsTest.TestSoftplus (3 ms) 2023-01-11T21:03:43.7791683Z [ RUN ] LazyOpsTest.TestMaxPool1D 2023-01-11T21:03:43.8851570Z [ OK ] LazyOpsTest.TestMaxPool1D (105 ms) 2023-01-11T21:03:43.8852159Z [ RUN ] LazyOpsTest.TestMaxPool2D 2023-01-11T21:03:43.9628304Z [ OK ] LazyOpsTest.TestMaxPool2D (77 ms) 2023-01-11T21:03:43.9628938Z [ RUN ] LazyOpsTest.TestMaxPool2DWithIndices 2023-01-11T21:03:44.1444368Z [ OK ] LazyOpsTest.TestMaxPool2DWithIndices (181 ms) 2023-01-11T21:03:44.1445026Z [ RUN ] LazyOpsTest.TestMaxPool2DNonSquare 2023-01-11T21:03:44.2209823Z [ OK ] LazyOpsTest.TestMaxPool2DNonSquare (76 ms) 2023-01-11T21:03:44.2210426Z [ RUN ] LazyOpsTest.TestMaxPool3D 2023-01-11T21:03:44.2434927Z [ OK ] LazyOpsTest.TestMaxPool3D (22 ms) 2023-01-11T21:03:44.2435595Z [ RUN ] LazyOpsTest.TestMaxPool3DWithIndices 2023-01-11T21:03:44.2782580Z [ OK ] LazyOpsTest.TestMaxPool3DWithIndices (34 ms) 2023-01-11T21:03:44.2783301Z [ RUN ] LazyOpsTest.TestMaxPool3DIncompleteAttributes 2023-01-11T21:03:44.2985611Z [ OK ] LazyOpsTest.TestMaxPool3DIncompleteAttributes (20 ms) 2023-01-11T21:03:44.2986333Z [ RUN ] LazyOpsTest.TestMaxPool3DNonSquare 2023-01-11T21:03:44.3198357Z [ OK ] LazyOpsTest.TestMaxPool3DNonSquare (21 ms) 2023-01-11T21:03:44.3198919Z [ RUN ] LazyOpsTest.TestMaxPool2DNoBatch 2023-01-11T21:03:44.3971466Z [ OK ] LazyOpsTest.TestMaxPool2DNoBatch (77 ms) 2023-01-11T21:03:44.3972118Z [ RUN ] LazyOpsTest.TestMaxPool3DNoBatch 2023-01-11T21:03:44.4196344Z [ OK ] LazyOpsTest.TestMaxPool3DNoBatch (22 ms) 2023-01-11T21:03:44.4196903Z [ RUN ] LazyOpsTest.TestAvgPool1D 2023-01-11T21:03:44.5136552Z [ OK ] LazyOpsTest.TestAvgPool1D (94 ms) 2023-01-11T21:03:44.5136943Z [ RUN ] LazyOpsTest.TestAvgPool2D 2023-01-11T21:03:44.5837988Z [ OK ] LazyOpsTest.TestAvgPool2D (70 ms) 2023-01-11T21:03:44.5838497Z [ RUN ] LazyOpsTest.TestAvgPool2DNonSquare 2023-01-11T21:03:44.6562309Z [ OK ] LazyOpsTest.TestAvgPool2DNonSquare (72 ms) 2023-01-11T21:03:44.6562684Z [ RUN ] LazyOpsTest.TestAvgPool3D 2023-01-11T21:03:44.6755979Z [ OK ] LazyOpsTest.TestAvgPool3D (19 ms) 2023-01-11T21:03:44.6756372Z [ RUN ] LazyOpsTest.TestAvgPool3DIncompleteAttributes 2023-01-11T21:03:44.6929601Z [ OK ] LazyOpsTest.TestAvgPool3DIncompleteAttributes (17 ms) 2023-01-11T21:03:44.6929994Z [ RUN ] LazyOpsTest.TestAvgPool3DNonSquare 2023-01-11T21:03:44.7111291Z [ OK ] LazyOpsTest.TestAvgPool3DNonSquare (18 ms) 2023-01-11T21:03:44.7111795Z [ RUN ] LazyOpsTest.TestAvgPool2DNoBatch 2023-01-11T21:03:44.7833582Z [ OK ] LazyOpsTest.TestAvgPool2DNoBatch (72 ms) 2023-01-11T21:03:44.7833976Z [ RUN ] LazyOpsTest.TestAvgPool3DNoBatch 2023-01-11T21:03:44.8025527Z [ OK ] LazyOpsTest.TestAvgPool3DNoBatch (19 ms) 2023-01-11T21:03:44.8025943Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool2D 2023-01-11T21:03:44.8112954Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool2D (8 ms) 2023-01-11T21:03:44.8113498Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool3D 2023-01-11T21:03:45.0221330Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool3D (210 ms) 2023-01-11T21:03:45.0221772Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool3DNoBatch 2023-01-11T21:03:45.0434050Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool3DNoBatch (21 ms) 2023-01-11T21:03:45.0434464Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool2DNoBatch 2023-01-11T21:03:45.0516314Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool2DNoBatch (8 ms) 2023-01-11T21:03:45.0516671Z [ RUN ] LazyOpsTest.TestMaxUnpool2D 2023-01-11T21:03:45.0780536Z [ OK ] LazyOpsTest.TestMaxUnpool2D (26 ms) 2023-01-11T21:03:45.0780899Z [ RUN ] LazyOpsTest.TestMaxUnpool3D 2023-01-11T21:03:45.0807549Z ================== 2023-01-11T21:03:45.0808266Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:45.0808806Z  Write of size 4 at 0x7b400006fd78 by thread T1: 2023-01-11T21:03:45.0809646Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:03:45.0810283Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:45.0811061Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:45.0811480Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:45.0811853Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:45.0812219Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:45.0812387Z 2023-01-11T21:03:45.0812632Z  Previous write of size 4 at 0x7b400006fd78 by thread T2: 2023-01-11T21:03:45.0813299Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:03:45.0813916Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:45.0816962Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:45.0817941Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:45.0818657Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:45.0819301Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:45.0819548Z 2023-01-11T21:03:45.0820060Z  Location is heap block of size 256 at 0x7b400006fd00 allocated by main thread: 2023-01-11T21:03:45.0820463Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:45.0820803Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:45.0821495Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:45.0822093Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17b22ff) 2023-01-11T21:03:45.0822823Z #4 c10::TensorImpl* at::native::_resize_impl_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17b39f0) 2023-01-11T21:03:45.0823548Z #5 at::Tensor const& at::native::_resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b4f77) 2023-01-11T21:03:45.0824304Z #6 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b1f74) 2023-01-11T21:03:45.0824884Z #7 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2aaa6d9) 2023-01-11T21:03:45.0826054Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional))>, at::Tensor const&, c10::guts::typelist::typelist, c10::optional > >, at::Tensor const& (at::Tensor const&, c10::ArrayRef, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2bb705d) 2023-01-11T21:03:45.0827222Z #9 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2904583) 2023-01-11T21:03:45.0827738Z #10 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aa994) 2023-01-11T21:03:45.0828348Z #11 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:03:45.0829531Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c756df) 2023-01-11T21:03:45.0830702Z #13 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c0417) 2023-01-11T21:03:45.0831934Z #14 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:03:45.0833108Z #15 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:03:45.0833504Z #16 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x307acf) 2023-01-11T21:03:45.0834006Z #17 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.0834423Z #18 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.0834837Z #19 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.0835109Z #20 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.0835446Z #21 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.0835956Z #22 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.0836454Z #23 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.0836728Z #24 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.0836876Z 2023-01-11T21:03:45.0837107Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:45.0837437Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:45.0837846Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:45.0838491Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:45.0838988Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:45.0839525Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:45.0840014Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:45.0840378Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:45.0841052Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:45.0841597Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:45.0842011Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:45.0842458Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:45.0843287Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:45.0844052Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:45.0844480Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:45.0845740Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:45.0847110Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:45.0848571Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:45.0850229Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:45.0850793Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:45.0852170Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:45.0853508Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:45.0854023Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:45.0854918Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.0855588Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.0856007Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.0856467Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.0856997Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.0857873Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.0858480Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.0858877Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.0859121Z 2023-01-11T21:03:45.0859549Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:45.0860001Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:45.0860491Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:45.0861197Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:45.0861872Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:45.0862639Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:45.0863323Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:45.0863861Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:45.0865078Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:45.0865927Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:45.0866654Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:45.0867404Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:45.0868699Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:45.0869967Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:45.0870664Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:45.0871879Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:45.0872746Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:45.0873832Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:45.0874811Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:45.0875131Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:45.0875913Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:45.0876727Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:45.0877045Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:45.0877472Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.0877852Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.0878094Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.0878353Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.0878675Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.0879152Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.0879580Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.0879812Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.0879940Z 2023-01-11T21:03:45.0880663Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8798cd3) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2023-01-11T21:03:45.0881135Z ================== 2023-01-11T21:03:45.0881357Z ================== 2023-01-11T21:03:45.0881612Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:45.0881929Z  Write of size 4 at 0x7b400006fdac by thread T3: 2023-01-11T21:03:45.0883226Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:03:45.0883835Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:45.0884393Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:45.0884794Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:45.0885181Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:45.0885550Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:45.0885713Z 2023-01-11T21:03:45.0885899Z  Previous write of size 4 at 0x7b400006fdac by thread T1: 2023-01-11T21:03:45.0886545Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:03:45.0887154Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:45.0887707Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:45.0888165Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:45.0888549Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:45.0888911Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:45.0889058Z 2023-01-11T21:03:45.0889277Z  Location is heap block of size 256 at 0x7b400006fd00 allocated by main thread: 2023-01-11T21:03:45.0889612Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:45.0889904Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:45.0890196Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:45.0890546Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17b22ff) 2023-01-11T21:03:45.0890955Z #4 c10::TensorImpl* at::native::_resize_impl_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17b39f0) 2023-01-11T21:03:45.0891398Z #5 at::Tensor const& at::native::_resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b4f77) 2023-01-11T21:03:45.0891816Z #6 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b1f74) 2023-01-11T21:03:45.0892260Z #7 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2aaa6d9) 2023-01-11T21:03:45.0893300Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional))>, at::Tensor const&, c10::guts::typelist::typelist, c10::optional > >, at::Tensor const& (at::Tensor const&, c10::ArrayRef, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2bb705d) 2023-01-11T21:03:45.0894239Z #9 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2904583) 2023-01-11T21:03:45.0894839Z #10 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aa994) 2023-01-11T21:03:45.0895313Z #11 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:03:45.0896398Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c756df) 2023-01-11T21:03:45.0897492Z #13 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c0417) 2023-01-11T21:03:45.0898692Z #14 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:03:45.0899826Z #15 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:03:45.0900252Z #16 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x307acf) 2023-01-11T21:03:45.0900690Z #17 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.0901052Z #18 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.0901306Z #19 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.0901572Z #20 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.0901858Z #21 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.0902330Z #22 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.0902765Z #23 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.0902995Z #24 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.0903122Z 2023-01-11T21:03:45.0903340Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:03:45.0903658Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:45.0904013Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:45.0904563Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:45.0905054Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:45.0905534Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:45.0905968Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:45.0906330Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:45.0906936Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:45.0907466Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:45.0907875Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:45.0908254Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:45.0909043Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:45.0909747Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:45.0910146Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:45.0911045Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:45.0911888Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:45.0912874Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:45.0913766Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:45.0914094Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:45.0914946Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:45.0915711Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:45.0916024Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:45.0916450Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.0916816Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.0917072Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.0917335Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.0917620Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.0918111Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.0918544Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.0918780Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.0918908Z 2023-01-11T21:03:45.0919123Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:03:45.0919444Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:45.0919800Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:45.0920341Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:45.0920826Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:45.0921304Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:45.0921737Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:45.0922093Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:45.0922699Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:45.0923188Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:45.0923613Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:45.0923994Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:45.0924763Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:45.0925469Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:45.0925867Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:45.0926799Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:45.0927660Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:45.0928644Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:45.0929553Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:45.0929880Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:45.0930653Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:45.0931394Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:45.0931706Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:45.0932132Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.0932494Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.0932750Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.0933008Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.0933294Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.0933754Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.0934194Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.0934537Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.0934666Z 2023-01-11T21:03:45.0935355Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8798cd3) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2023-01-11T21:03:45.0935874Z ================== 2023-01-11T21:03:45.0988564Z ================== 2023-01-11T21:03:45.0989047Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:45.0989496Z  Write of size 4 at 0x7b400006fd44 by thread T2: 2023-01-11T21:03:45.0990518Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:03:45.0991510Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:45.0992393Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:45.0993010Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:45.0993621Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:45.0994191Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:45.0994441Z 2023-01-11T21:03:45.0994766Z  Previous write of size 4 at 0x7b400006fd44 by main thread: 2023-01-11T21:03:45.0995664Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:03:45.0996588Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:45.0997418Z #2 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:45.0998106Z #3 at::native::(anonymous namespace)::max_unpool3d_kernel_impl(at::Tensor&, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x87966a3) 2023-01-11T21:03:45.0998892Z #4 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aab2e) 2023-01-11T21:03:45.0999744Z #5 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:03:45.1001591Z #6 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c756df) 2023-01-11T21:03:45.1003642Z #7 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c0417) 2023-01-11T21:03:45.1005742Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:03:45.1007143Z #9 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:03:45.1007641Z #10 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x307acf) 2023-01-11T21:03:45.1008082Z #11 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.1008462Z #12 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.1008707Z #13 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.1008968Z #14 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.1009257Z #15 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.1009738Z #16 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.1010157Z #17 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.1010390Z #18 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.1010517Z 2023-01-11T21:03:45.1010760Z  Location is heap block of size 256 at 0x7b400006fd00 allocated by main thread: 2023-01-11T21:03:45.1011093Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:45.1011339Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:45.1011641Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:45.1011992Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17b22ff) 2023-01-11T21:03:45.1012411Z #4 c10::TensorImpl* at::native::_resize_impl_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17b39f0) 2023-01-11T21:03:45.1012842Z #5 at::Tensor const& at::native::_resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b4f77) 2023-01-11T21:03:45.1013258Z #6 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b1f74) 2023-01-11T21:03:45.1013712Z #7 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2aaa6d9) 2023-01-11T21:03:45.1014931Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional))>, at::Tensor const&, c10::guts::typelist::typelist, c10::optional > >, at::Tensor const& (at::Tensor const&, c10::ArrayRef, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2bb705d) 2023-01-11T21:03:45.1015951Z #9 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2904583) 2023-01-11T21:03:45.1016442Z #10 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aa994) 2023-01-11T21:03:45.1016933Z #11 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:03:45.1018081Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c756df) 2023-01-11T21:03:45.1019211Z #13 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c0417) 2023-01-11T21:03:45.1020389Z #14 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:03:45.1021469Z #15 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:03:45.1021857Z #16 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x307acf) 2023-01-11T21:03:45.1022290Z #17 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.1022667Z #18 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.1022911Z #19 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.1023167Z #20 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.1023517Z #21 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.1023990Z #22 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.1024424Z #23 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.1024645Z #24 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.1024771Z 2023-01-11T21:03:45.1024996Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:45.1025332Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:45.1025721Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:45.1026252Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:45.1026743Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:45.1027218Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:45.1027665Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:45.1028026Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:45.1028624Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:45.1029223Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:45.1029635Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:45.1030021Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:45.1030788Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:45.1031482Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:45.1031881Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:45.1032775Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:45.1033660Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:45.1034809Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:45.1035729Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:45.1036063Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:45.1036842Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:45.1037575Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:45.1037879Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:45.1038302Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.1038682Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.1038941Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.1039186Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.1039473Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.1039951Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.1040388Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.1040612Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.1040740Z 2023-01-11T21:03:45.1041438Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8798cd3) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2023-01-11T21:03:45.1041909Z ================== 2023-01-11T21:03:45.1100959Z ================== 2023-01-11T21:03:45.1101685Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:03:45.1102239Z  Write of size 4 at 0x7b4000070044 by thread T2: 2023-01-11T21:03:45.1103438Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:03:45.1104751Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:45.1105840Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:03:45.1106521Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:03:45.1107231Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:03:45.1107854Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:03:45.1108133Z 2023-01-11T21:03:45.1108466Z  Previous write of size 4 at 0x7b4000070044 by main thread: 2023-01-11T21:03:45.1109625Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:03:45.1110671Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:03:45.1111460Z #2 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:03:45.1112159Z #3 at::native::(anonymous namespace)::max_unpool3d_kernel_impl(at::Tensor&, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x87966a3) 2023-01-11T21:03:45.1112967Z #4 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aab2e) 2023-01-11T21:03:45.1113786Z #5 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:03:45.1115682Z #6 c10::impl::make_boxed_from_unboxed_functor, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2c75841) 2023-01-11T21:03:45.1117275Z #7 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:45.1118040Z #8 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:45.1119144Z #9 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:45.1120142Z #10 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:45.1121436Z #11 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:45.1122903Z #12 c10::impl::BoxedKernelWrapper, c10::ArrayRef, c10::ArrayRef), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2890959) 2023-01-11T21:03:45.1124064Z #13 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c046d) 2023-01-11T21:03:45.1125550Z #14 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:03:45.1126643Z #15 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:03:45.1127118Z #16 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x432d59) 2023-01-11T21:03:45.1127554Z #17 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:45.1127900Z #18 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x307b78) 2023-01-11T21:03:45.1128328Z #19 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.1128703Z #20 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.1128946Z #21 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.1129207Z #22 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.1129494Z #23 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.1129971Z #24 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.1130389Z #25 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.1130619Z #26 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.1130746Z 2023-01-11T21:03:45.1130995Z  Location is heap block of size 256 at 0x7b4000070000 allocated by main thread: 2023-01-11T21:03:45.1131314Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:03:45.1131572Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:03:45.1131932Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:03:45.1132274Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17b22ff) 2023-01-11T21:03:45.1132667Z #4 c10::TensorImpl* at::native::_resize_impl_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17b39f0) 2023-01-11T21:03:45.1133109Z #5 at::Tensor const& at::native::_resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b4f77) 2023-01-11T21:03:45.1133525Z #6 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b1f74) 2023-01-11T21:03:45.1134011Z #7 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2aaa6d9) 2023-01-11T21:03:45.1135375Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional))>, at::Tensor const&, c10::guts::typelist::typelist, c10::optional > >, at::Tensor const& (at::Tensor const&, c10::ArrayRef, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2bb705d) 2023-01-11T21:03:45.1136330Z #9 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2904583) 2023-01-11T21:03:45.1136793Z #10 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aa994) 2023-01-11T21:03:45.1137281Z #11 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:03:45.1138261Z #12 c10::impl::make_boxed_from_unboxed_functor, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2c75841) 2023-01-11T21:03:45.1139212Z #13 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:03:45.1139666Z #14 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:03:45.1140440Z #15 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:03:45.1141035Z #16 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:03:45.1141756Z #17 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:03:45.1142614Z #18 c10::impl::BoxedKernelWrapper, c10::ArrayRef, c10::ArrayRef), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2890959) 2023-01-11T21:03:45.1143265Z #19 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c046d) 2023-01-11T21:03:45.1144437Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:03:45.1145516Z #21 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:03:45.1145998Z #22 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x432d59) 2023-01-11T21:03:45.1146432Z #23 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:03:45.1146764Z #24 torch::lazy::LazyOpsTest_TestMaxUnpool3D_Test::TestBody() (test_lazy+0x307b78) 2023-01-11T21:03:45.1147193Z #25 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.1147567Z #26 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.1147822Z #27 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.1148066Z #28 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.1148348Z #29 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.1148825Z #30 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.1149258Z #31 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.1149478Z #32 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.1149605Z 2023-01-11T21:03:45.1149833Z  Thread T2 'PTThreadPool' (tid=61, running) created by main thread at: 2023-01-11T21:03:45.1150162Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:03:45.1150516Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:03:45.1151077Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:03:45.1151564Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:03:45.1152040Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:03:45.1152512Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:03:45.1152869Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:03:45.1153471Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:03:45.1153954Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:03:45.1154362Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:03:45.1154839Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:03:45.1155608Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:03:45.1156302Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:03:45.1156704Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:03:45.1157603Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:03:45.1158449Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:03:45.1159430Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:03:45.1160358Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:03:45.1160686Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:03:45.1161497Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:03:45.1162481Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:03:45.1162782Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:03:45.1163200Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:03:45.1163574Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:03:45.1163827Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:03:45.1164070Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:03:45.1164357Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:03:45.1164831Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:03:45.1165269Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:03:45.1165486Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:03:45.1165613Z 2023-01-11T21:03:45.1166312Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8798cd3) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2023-01-11T21:03:45.1166851Z ================== 2023-01-11T21:03:45.1260929Z [ OK ] LazyOpsTest.TestMaxUnpool3D (48 ms) 2023-01-11T21:03:45.1261395Z [ RUN ] LazyOpsTest.TestNllLoss 2023-01-11T21:03:45.1261715Z /var/lib/jenkins/workspace/test/cpp/lazy/test_lazy_ops.cpp:8173: Skipped 2023-01-11T21:03:45.1261889Z 2023-01-11T21:03:45.1262062Z [ SKIPPED ] LazyOpsTest.TestNllLoss (0 ms) 2023-01-11T21:03:45.1262367Z [ RUN ] LazyOpsTest.TestNllLoss2d 2023-01-11T21:03:45.2257396Z [ OK ] LazyOpsTest.TestNllLoss2d (99 ms) 2023-01-11T21:03:45.2257743Z [ RUN ] LazyOpsTest.TestSmoothL1Loss 2023-01-11T21:03:45.2487962Z [ OK ] LazyOpsTest.TestSmoothL1Loss (23 ms) 2023-01-11T21:03:45.2488291Z [ RUN ] LazyOpsTest.TestL1Loss 2023-01-11T21:03:45.2640076Z [ OK ] LazyOpsTest.TestL1Loss (15 ms) 2023-01-11T21:03:45.2640658Z [ RUN ] LazyOpsTest.TestL1LossBackward 2023-01-11T21:03:45.3117585Z [ OK ] LazyOpsTest.TestL1LossBackward (47 ms) 2023-01-11T21:03:45.3118192Z [ RUN ] LazyOpsTest.TestMseLoss 2023-01-11T21:03:45.3162031Z [ OK ] LazyOpsTest.TestMseLoss (4 ms) 2023-01-11T21:03:45.3162620Z [ RUN ] LazyOpsTest.TestMseLossBackward 2023-01-11T21:03:45.3491972Z [ OK ] LazyOpsTest.TestMseLossBackward (32 ms) 2023-01-11T21:03:45.3492543Z [ RUN ] LazyOpsTest.TestBatchNorm1D 2023-01-11T21:03:45.3720724Z [ OK ] LazyOpsTest.TestBatchNorm1D (22 ms) 2023-01-11T21:03:45.3721302Z [ RUN ] LazyOpsTest.TestBatchNorm2D 2023-01-11T21:03:45.3956940Z [ OK ] LazyOpsTest.TestBatchNorm2D (23 ms) 2023-01-11T21:03:45.3957477Z [ RUN ] LazyOpsTest.TestDim 2023-01-11T21:03:45.3959415Z [ OK ] LazyOpsTest.TestDim (0 ms) 2023-01-11T21:03:45.3959925Z [ RUN ] LazyOpsTest.TestContiguous 2023-01-11T21:03:45.3970562Z [ OK ] LazyOpsTest.TestContiguous (1 ms) 2023-01-11T21:03:45.3971126Z [ RUN ] LazyOpsTest.TestSqueezeAll 2023-01-11T21:03:45.4007490Z [ OK ] LazyOpsTest.TestSqueezeAll (3 ms) 2023-01-11T21:03:45.4007966Z [ RUN ] LazyOpsTest.TestSqueezeAllInPlace 2023-01-11T21:03:45.4060128Z [ OK ] LazyOpsTest.TestSqueezeAllInPlace (5 ms) 2023-01-11T21:03:45.4060704Z [ RUN ] LazyOpsTest.TestSqueezeOne 2023-01-11T21:03:45.4310498Z [ OK ] LazyOpsTest.TestSqueezeOne (24 ms) 2023-01-11T21:03:45.4310971Z [ RUN ] LazyOpsTest.TestSqueezeOneInPlace 2023-01-11T21:03:45.4685842Z [ OK ] LazyOpsTest.TestSqueezeOneInPlace (37 ms) 2023-01-11T21:03:45.4686338Z [ RUN ] LazyOpsTest.TestUnsqueeze 2023-01-11T21:03:45.4872203Z [ OK ] LazyOpsTest.TestUnsqueeze (18 ms) 2023-01-11T21:03:45.4872586Z [ RUN ] LazyOpsTest.TestUnsqueezeInPlace 2023-01-11T21:03:45.5135405Z [ OK ] LazyOpsTest.TestUnsqueezeInPlace (24 ms) 2023-01-11T21:03:45.5135938Z [ RUN ] LazyOpsTest.TestMaskedFill 2023-01-11T21:03:45.5161931Z [ OK ] LazyOpsTest.TestMaskedFill (4 ms) 2023-01-11T21:03:45.5162330Z [ RUN ] LazyOpsTest.TestMaskedFillInPlace 2023-01-11T21:03:45.5220076Z [ OK ] LazyOpsTest.TestMaskedFillInPlace (5 ms) 2023-01-11T21:03:45.5220442Z [ RUN ] LazyOpsTest.TestMaskedFillBroadcast 2023-01-11T21:03:45.5261947Z [ OK ] LazyOpsTest.TestMaskedFillBroadcast (4 ms) 2023-01-11T21:03:45.5262263Z [ RUN ] LazyOpsTest.TestFill 2023-01-11T21:03:45.5318542Z [ OK ] LazyOpsTest.TestFill (5 ms) 2023-01-11T21:03:45.5318862Z [ RUN ] LazyOpsTest.TestFillWithRank0 2023-01-11T21:03:45.5339833Z [ OK ] LazyOpsTest.TestFillWithRank0 (2 ms) 2023-01-11T21:03:45.5340396Z [ RUN ] LazyOpsTest.TestPermute 2023-01-11T21:03:45.5748226Z [ OK ] LazyOpsTest.TestPermute (40 ms) 2023-01-11T21:03:45.5748558Z [ RUN ] LazyOpsTest.TestPermuteMod 2023-01-11T21:03:45.7158752Z [ OK ] LazyOpsTest.TestPermuteMod (140 ms) 2023-01-11T21:03:45.7159090Z [ RUN ] LazyOpsTest.TestFlip 2023-01-11T21:03:45.7604067Z [ OK ] LazyOpsTest.TestFlip (44 ms) 2023-01-11T21:03:45.7604444Z [ RUN ] LazyOpsTest.TestPixelShuffle 2023-01-11T21:03:45.7677616Z [ OK ] LazyOpsTest.TestPixelShuffle (7 ms) 2023-01-11T21:03:45.7677954Z [ RUN ] LazyOpsTest.TestSumToSize 2023-01-11T21:03:45.7723926Z [ OK ] LazyOpsTest.TestSumToSize (4 ms) 2023-01-11T21:03:45.7724261Z [ RUN ] LazyOpsTest.TestTransposeDims 2023-01-11T21:03:45.7765993Z [ OK ] LazyOpsTest.TestTransposeDims (4 ms) 2023-01-11T21:03:45.7766335Z [ RUN ] LazyOpsTest.TestTransposeDimsMod 2023-01-11T21:03:45.7901207Z [ OK ] LazyOpsTest.TestTransposeDimsMod (13 ms) 2023-01-11T21:03:45.7901773Z [ RUN ] LazyOpsTest.TestTransposeDimsInPlace 2023-01-11T21:03:45.7962889Z [ OK ] LazyOpsTest.TestTransposeDimsInPlace (6 ms) 2023-01-11T21:03:45.7963463Z [ RUN ] LazyOpsTest.TestSplit 2023-01-11T21:03:45.8329181Z [ OK ] LazyOpsTest.TestSplit (36 ms) 2023-01-11T21:03:45.8329739Z [ RUN ] LazyOpsTest.TestSplitEmpty 2023-01-11T21:03:45.8339185Z [ OK ] LazyOpsTest.TestSplitEmpty (1 ms) 2023-01-11T21:03:45.8339513Z [ RUN ] LazyOpsTest.TestSplitWithSizes 2023-01-11T21:03:45.8572163Z [ OK ] LazyOpsTest.TestSplitWithSizes (23 ms) 2023-01-11T21:03:45.8572514Z [ RUN ] LazyOpsTest.TestCrossImplicitDim 2023-01-11T21:03:45.8614805Z [ OK ] LazyOpsTest.TestCrossImplicitDim (4 ms) 2023-01-11T21:03:45.8615135Z [ RUN ] LazyOpsTest.TestCrossExplicitDim 2023-01-11T21:03:45.8665046Z [ OK ] LazyOpsTest.TestCrossExplicitDim (5 ms) 2023-01-11T21:03:45.8665382Z [ RUN ] LazyOpsTest.TestCrossZeroDim 2023-01-11T21:03:45.8677083Z [ OK ] LazyOpsTest.TestCrossZeroDim (1 ms) 2023-01-11T21:03:45.8677376Z [ RUN ] LazyOpsTest.TestTriu 2023-01-11T21:03:45.9017198Z [ OK ] LazyOpsTest.TestTriu (33 ms) 2023-01-11T21:03:45.9017554Z [ RUN ] LazyOpsTest.TestTriuNonSquare 2023-01-11T21:03:45.9353505Z [ OK ] LazyOpsTest.TestTriuNonSquare (33 ms) 2023-01-11T21:03:45.9353895Z [ RUN ] LazyOpsTest.TestTriuBatch 2023-01-11T21:03:45.9694261Z [ OK ] LazyOpsTest.TestTriuBatch (34 ms) 2023-01-11T21:03:45.9694791Z [ RUN ] LazyOpsTest.TestTril 2023-01-11T21:03:46.0031808Z [ OK ] LazyOpsTest.TestTril (33 ms) 2023-01-11T21:03:46.0032150Z [ RUN ] LazyOpsTest.TestTrilNonSquare 2023-01-11T21:03:46.0368344Z [ OK ] LazyOpsTest.TestTrilNonSquare (33 ms) 2023-01-11T21:03:46.0368765Z [ RUN ] LazyOpsTest.TestTrilBatch 2023-01-11T21:03:46.0713828Z [ OK ] LazyOpsTest.TestTrilBatch (34 ms) 2023-01-11T21:03:46.0714179Z [ RUN ] LazyOpsTest.TestTriuInPlace 2023-01-11T21:03:46.1235055Z [ OK ] LazyOpsTest.TestTriuInPlace (52 ms) 2023-01-11T21:03:46.1235425Z [ RUN ] LazyOpsTest.TestTrilInPlace 2023-01-11T21:03:46.1755547Z [ OK ] LazyOpsTest.TestTrilInPlace (52 ms) 2023-01-11T21:03:46.1755859Z [ RUN ] LazyOpsTest.TestTrace 2023-01-11T21:03:46.1789536Z [ OK ] LazyOpsTest.TestTrace (3 ms) 2023-01-11T21:03:46.1789880Z [ RUN ] LazyOpsTest.TestTraceWide 2023-01-11T21:03:46.1822522Z [ OK ] LazyOpsTest.TestTraceWide (3 ms) 2023-01-11T21:03:46.1822846Z [ RUN ] LazyOpsTest.TestTraceNarrow 2023-01-11T21:03:46.1855404Z [ OK ] LazyOpsTest.TestTraceNarrow (3 ms) 2023-01-11T21:03:46.1855731Z [ RUN ] LazyOpsTest.TestDiagRank1 2023-01-11T21:03:46.4037621Z [ OK ] LazyOpsTest.TestDiagRank1 (217 ms) 2023-01-11T21:03:46.4038180Z [ RUN ] LazyOpsTest.TestDiagRank2 2023-01-11T21:03:46.4523800Z [ OK ] LazyOpsTest.TestDiagRank2 (48 ms) 2023-01-11T21:03:46.4524319Z [ RUN ] LazyOpsTest.TestDiagFlat 2023-01-11T21:03:47.5417223Z [ OK ] LazyOpsTest.TestDiagFlat (1089 ms) 2023-01-11T21:03:47.5417791Z [ RUN ] LazyOpsTest.TestDiagonal 2023-01-11T21:03:47.5781499Z [ OK ] LazyOpsTest.TestDiagonal (36 ms) 2023-01-11T21:03:47.5782075Z [ RUN ] LazyOpsTest.TestDiagonalUpdate 2023-01-11T21:03:47.6934177Z [ OK ] LazyOpsTest.TestDiagonalUpdate (115 ms) 2023-01-11T21:03:47.6935184Z [ RUN ] LazyOpsTest.TestDiagonalNonSquare 2023-01-11T21:03:47.7290753Z [ OK ] LazyOpsTest.TestDiagonalNonSquare (35 ms) 2023-01-11T21:03:47.7291360Z [ RUN ] LazyOpsTest.TestDiagonalBatch 2023-01-11T21:03:47.7653174Z [ OK ] LazyOpsTest.TestDiagonalBatch (36 ms) 2023-01-11T21:03:47.7653764Z [ RUN ] LazyOpsTest.TestFlatten 2023-01-11T21:03:47.8504288Z [ OK ] LazyOpsTest.TestFlatten (85 ms) 2023-01-11T21:03:47.8504842Z [ RUN ] LazyOpsTest.TestLogicalAnd 2023-01-11T21:03:47.8784620Z [ OK ] LazyOpsTest.TestLogicalAnd (28 ms) 2023-01-11T21:03:47.8785195Z [ RUN ] LazyOpsTest.TestBitwiseAnd 2023-01-11T21:03:47.8821269Z [ OK ] LazyOpsTest.TestBitwiseAnd (3 ms) 2023-01-11T21:03:47.8821901Z [ RUN ] LazyOpsTest.TestBitwiseAndInPlace 2023-01-11T21:03:47.8870463Z [ OK ] LazyOpsTest.TestBitwiseAndInPlace (4 ms) 2023-01-11T21:03:47.8871093Z [ RUN ] LazyOpsTest.TestBitwiseAndScalar 2023-01-11T21:03:47.8905782Z [ OK ] LazyOpsTest.TestBitwiseAndScalar (3 ms) 2023-01-11T21:03:47.8906458Z [ RUN ] LazyOpsTest.TestBitwiseAndScalarInPlace 2023-01-11T21:03:47.8955310Z [ OK ] LazyOpsTest.TestBitwiseAndScalarInPlace (4 ms) 2023-01-11T21:03:47.8956174Z [ RUN ] LazyOpsTest.TestBitwiseAndPromotion 2023-01-11T21:03:47.9014947Z [ OK ] LazyOpsTest.TestBitwiseAndPromotion (5 ms) 2023-01-11T21:03:47.9015571Z [ RUN ] LazyOpsTest.TestBitwiseOr 2023-01-11T21:03:47.9050495Z [ OK ] LazyOpsTest.TestBitwiseOr (3 ms) 2023-01-11T21:03:47.9098944Z [ RUN ] LazyOpsTest.TestBitwiseOrInPlace 2023-01-11T21:03:47.9099573Z [ OK ] LazyOpsTest.TestBitwiseOrInPlace (4 ms) 2023-01-11T21:03:47.9100155Z [ RUN ] LazyOpsTest.TestBitwiseOrScalar 2023-01-11T21:03:47.9133561Z [ OK ] LazyOpsTest.TestBitwiseOrScalar (3 ms) 2023-01-11T21:03:47.9134210Z [ RUN ] LazyOpsTest.TestBitwiseOrScalarInPlace 2023-01-11T21:03:47.9182183Z [ OK ] LazyOpsTest.TestBitwiseOrScalarInPlace (4 ms) 2023-01-11T21:03:47.9182773Z [ RUN ] LazyOpsTest.TestBitwiseXor 2023-01-11T21:03:47.9192899Z [ OK ] LazyOpsTest.TestBitwiseXor (1 ms) 2023-01-11T21:03:47.9193508Z [ RUN ] LazyOpsTest.TestBitwiseXorInPlace 2023-01-11T21:03:47.9206373Z [ OK ] LazyOpsTest.TestBitwiseXorInPlace (1 ms) 2023-01-11T21:03:47.9206989Z [ RUN ] LazyOpsTest.TestBitwiseXorScalar 2023-01-11T21:03:47.9215791Z [ OK ] LazyOpsTest.TestBitwiseXorScalar (0 ms) 2023-01-11T21:03:47.9216433Z [ RUN ] LazyOpsTest.TestBitwiseXorScalarInPlace 2023-01-11T21:03:47.9227645Z [ OK ] LazyOpsTest.TestBitwiseXorScalarInPlace (1 ms) 2023-01-11T21:03:47.9228229Z [ RUN ] LazyOpsTest.TestLshift 2023-01-11T21:03:47.9245142Z [ OK ] LazyOpsTest.TestLshift (1 ms) 2023-01-11T21:03:47.9245676Z [ RUN ] LazyOpsTest.TestLshiftInPlace 2023-01-11T21:03:47.9270492Z [ OK ] LazyOpsTest.TestLshiftInPlace (2 ms) 2023-01-11T21:03:47.9271051Z [ RUN ] LazyOpsTest.TestLshiftScalar 2023-01-11T21:03:47.9286198Z [ OK ] LazyOpsTest.TestLshiftScalar (1 ms) 2023-01-11T21:03:47.9286786Z [ RUN ] LazyOpsTest.TestLshiftScalarInPlace 2023-01-11T21:03:47.9310019Z [ OK ] LazyOpsTest.TestLshiftScalarInPlace (2 ms) 2023-01-11T21:03:47.9310617Z [ RUN ] LazyOpsTest.TestRshift 2023-01-11T21:03:47.9326923Z [ OK ] LazyOpsTest.TestRshift (1 ms) 2023-01-11T21:03:47.9327466Z [ RUN ] LazyOpsTest.TestRshiftInPlace 2023-01-11T21:03:47.9352132Z [ OK ] LazyOpsTest.TestRshiftInPlace (2 ms) 2023-01-11T21:03:47.9352728Z [ RUN ] LazyOpsTest.TestRshiftScalar 2023-01-11T21:03:47.9367868Z [ OK ] LazyOpsTest.TestRshiftScalar (1 ms) 2023-01-11T21:03:47.9368471Z [ RUN ] LazyOpsTest.TestRshiftScalarInPlace 2023-01-11T21:03:47.9391415Z [ OK ] LazyOpsTest.TestRshiftScalarInPlace (2 ms) 2023-01-11T21:03:47.9391981Z [ RUN ] LazyOpsTest.TestMeshgrid 2023-01-11T21:03:47.9393797Z [W TensorShape.cpp:3452] Warning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (function operator()) 2023-01-11T21:03:47.9536261Z [ OK ] LazyOpsTest.TestMeshgrid (14 ms) 2023-01-11T21:03:47.9536862Z [ RUN ] LazyOpsTest.TestConstantPad 2023-01-11T21:03:47.9584361Z [ OK ] LazyOpsTest.TestConstantPad (4 ms) 2023-01-11T21:03:47.9584770Z [ RUN ] LazyOpsTest.TestConstantPadIncomplete 2023-01-11T21:03:47.9627508Z [ OK ] LazyOpsTest.TestConstantPadIncomplete (4 ms) 2023-01-11T21:03:47.9627898Z [ RUN ] LazyOpsTest.TestReflectionPad2dRank3 2023-01-11T21:03:47.9643058Z [ OK ] LazyOpsTest.TestReflectionPad2dRank3 (1 ms) 2023-01-11T21:03:47.9643431Z [ RUN ] LazyOpsTest.TestReflectionPad2dRank4 2023-01-11T21:03:47.9659382Z [ OK ] LazyOpsTest.TestReflectionPad2dRank4 (1 ms) 2023-01-11T21:03:47.9659779Z [ RUN ] LazyOpsTest.TestReflectionPad2dBackward 2023-01-11T21:03:47.9768316Z [ OK ] LazyOpsTest.TestReflectionPad2dBackward (10 ms) 2023-01-11T21:03:47.9768680Z [ RUN ] LazyOpsTest.TestReplicationPad1d 2023-01-11T21:03:47.9781318Z [ OK ] LazyOpsTest.TestReplicationPad1d (1 ms) 2023-01-11T21:03:47.9781684Z [ RUN ] LazyOpsTest.TestReplicationPad1dZeroPad 2023-01-11T21:03:47.9793833Z [ OK ] LazyOpsTest.TestReplicationPad1dZeroPad (1 ms) 2023-01-11T21:03:47.9794465Z [ RUN ] LazyOpsTest.TestReplicationPad1dBackward 2023-01-11T21:03:47.9879619Z [ OK ] LazyOpsTest.TestReplicationPad1dBackward (8 ms) 2023-01-11T21:03:47.9880132Z [ RUN ] LazyOpsTest.TestReplicationPad2d 2023-01-11T21:03:47.9892174Z [ OK ] LazyOpsTest.TestReplicationPad2d (1 ms) 2023-01-11T21:03:47.9892529Z [ RUN ] LazyOpsTest.TestReplicationPad2dZeroPad 2023-01-11T21:03:47.9905186Z [ OK ] LazyOpsTest.TestReplicationPad2dZeroPad (1 ms) 2023-01-11T21:03:47.9905626Z [ RUN ] LazyOpsTest.TestReplicationPad2dBackward 2023-01-11T21:03:48.0013209Z [ OK ] LazyOpsTest.TestReplicationPad2dBackward (10 ms) 2023-01-11T21:03:48.0013587Z [ RUN ] LazyOpsTest.TestAsStrided 2023-01-11T21:03:48.0212544Z [ OK ] LazyOpsTest.TestAsStrided (19 ms) 2023-01-11T21:03:48.0212907Z [ RUN ] LazyOpsTest.TestAsStridedInPlace 2023-01-11T21:03:48.0544742Z [ OK ] LazyOpsTest.TestAsStridedInPlace (33 ms) 2023-01-11T21:03:48.0545140Z [ RUN ] LazyOpsTest.TestAsStridedWithOffset 2023-01-11T21:03:48.0601129Z [ OK ] LazyOpsTest.TestAsStridedWithOffset (5 ms) 2023-01-11T21:03:48.0601533Z [ RUN ] LazyOpsTest.TestAsStridedWithInplaceCopy 2023-01-11T21:03:48.0703517Z [ OK ] LazyOpsTest.TestAsStridedWithInplaceCopy (10 ms) 2023-01-11T21:03:48.0703963Z [ RUN ] LazyOpsTest.TestEmptyStrided 2023-01-11T21:03:48.0704302Z [ OK ] LazyOpsTest.TestEmptyStrided (0 ms) 2023-01-11T21:03:48.0704619Z [ RUN ] LazyOpsTest.TestAvgPool2DBackward 2023-01-11T21:03:48.2748455Z [ OK ] LazyOpsTest.TestAvgPool2DBackward (204 ms) 2023-01-11T21:03:48.2749098Z [ RUN ] LazyOpsTest.TestAvgPool3DBackward 2023-01-11T21:03:48.3925381Z [ OK ] LazyOpsTest.TestAvgPool3DBackward (117 ms) 2023-01-11T21:03:48.3926076Z [ RUN ] LazyOpsTest.TestAvgPool2DNoBatchBackward 2023-01-11T21:03:48.6119308Z [ OK ] LazyOpsTest.TestAvgPool2DNoBatchBackward (219 ms) 2023-01-11T21:03:48.6120033Z [ RUN ] LazyOpsTest.TestAvgPool3DNoBatchBackward 2023-01-11T21:03:48.7319753Z [ OK ] LazyOpsTest.TestAvgPool3DNoBatchBackward (119 ms) 2023-01-11T21:03:48.7320620Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool3DNoBatchBackward 2023-01-11T21:03:48.7961812Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool3DNoBatchBackward (64 ms) 2023-01-11T21:03:48.7962646Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool3DBackward 2023-01-11T21:03:48.9470594Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool3DBackward (150 ms) 2023-01-11T21:03:48.9471649Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool2DBackward 2023-01-11T21:03:48.9824141Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool2DBackward (35 ms) 2023-01-11T21:03:48.9824901Z [ RUN ] LazyOpsTest.TestAdaptiveAvgPool2DNoBatchBackward 2023-01-11T21:03:49.0110039Z [ OK ] LazyOpsTest.TestAdaptiveAvgPool2DNoBatchBackward (28 ms) 2023-01-11T21:03:49.0110708Z [ RUN ] LazyOpsTest.TestConv2D 2023-01-11T21:03:50.0648479Z [ OK ] LazyOpsTest.TestConv2D (1053 ms) 2023-01-11T21:03:50.0649064Z [ RUN ] LazyOpsTest.TestConv2DBackward 2023-01-11T21:03:54.3000904Z [ OK ] LazyOpsTest.TestConv2DBackward (4235 ms) 2023-01-11T21:03:54.3001624Z [ RUN ] LazyOpsTest.TestTransposedConv2DBackward 2023-01-11T21:03:57.6612121Z [ OK ] LazyOpsTest.TestTransposedConv2DBackward (3361 ms) 2023-01-11T21:03:57.6612849Z [ RUN ] LazyOpsTest.TestConv3DBackward 2023-01-11T21:04:01.2679254Z [ OK ] LazyOpsTest.TestConv3DBackward (3606 ms) 2023-01-11T21:04:01.2679982Z [ RUN ] LazyOpsTest.TestTransposedConv3DBackward 2023-01-11T21:04:09.2092754Z [ OK ] LazyOpsTest.TestTransposedConv3DBackward (7941 ms) 2023-01-11T21:04:09.2093448Z [ RUN ] LazyOpsTest.TestMaxPool2DBackward 2023-01-11T21:04:09.3301742Z [ OK ] LazyOpsTest.TestMaxPool2DBackward (120 ms) 2023-01-11T21:04:09.3302403Z [ RUN ] LazyOpsTest.TestMaxPool3DBackward 2023-01-11T21:04:09.3989918Z [ OK ] LazyOpsTest.TestMaxPool3DBackward (68 ms) 2023-01-11T21:04:09.3990584Z [ RUN ] LazyOpsTest.TestMaxPool2DNoBatchBackward 2023-01-11T21:04:09.5195413Z [ OK ] LazyOpsTest.TestMaxPool2DNoBatchBackward (120 ms) 2023-01-11T21:04:09.5196120Z [ RUN ] LazyOpsTest.TestMaxPool3DNoBatchBackward 2023-01-11T21:04:09.5879306Z [ OK ] LazyOpsTest.TestMaxPool3DNoBatchBackward (68 ms) 2023-01-11T21:04:09.5879806Z [ RUN ] LazyOpsTest.TestMaxUnpool2DBackward 2023-01-11T21:04:09.8247733Z [ OK ] LazyOpsTest.TestMaxUnpool2DBackward (236 ms) 2023-01-11T21:04:09.8248165Z [ RUN ] LazyOpsTest.TestMaxUnpool3DBackward 2023-01-11T21:04:09.8981186Z ================== 2023-01-11T21:04:09.8981893Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:04:09.8984510Z  Write of size 4 at 0x7b400006b604 by main thread: 2023-01-11T21:04:09.8985718Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:04:09.8986722Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:09.8987457Z #2 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:04:09.8988055Z #3 at::native::(anonymous namespace)::max_unpool3d_kernel_impl(at::Tensor&, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x87966a3) 2023-01-11T21:04:09.8988717Z #4 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aab2e) 2023-01-11T21:04:09.8989469Z #5 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:04:09.8991310Z #6 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c756df) 2023-01-11T21:04:09.8993390Z #7 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c0417) 2023-01-11T21:04:09.8995062Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:04:09.8996317Z #9 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:04:09.8996921Z #10 std::_Function_handler > const&), torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody()::$_570>::_M_invoke(std::_Any_data const&, std::vector > const&) (test_lazy+0x4777db) 2023-01-11T21:04:09.8997597Z #11 torch::lazy::TestBackward(std::vector > const&, c10::Device const&, std::function > const&)> const&, double, double, int) (test_lazy+0x4c1656) 2023-01-11T21:04:09.8998234Z #12 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x4770d7) 2023-01-11T21:04:09.8998745Z #13 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:04:09.8999115Z #14 torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody() (test_lazy+0x32debb) 2023-01-11T21:04:09.8999627Z #15 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:04:09.9000017Z #16 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:04:09.9000307Z #17 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:04:09.9000568Z #18 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:04:09.9000921Z #19 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:04:09.9001394Z #20 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:04:09.9001953Z #21 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:04:09.9002191Z #22 main (test_lazy+0x20aec1) 2023-01-11T21:04:09.9002334Z 2023-01-11T21:04:09.9002596Z  Previous write of size 4 at 0x7b400006b604 by thread T1: 2023-01-11T21:04:09.9003338Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:04:09.9004048Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:09.9004618Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:04:09.9005097Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:04:09.9005530Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:04:09.9005890Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:04:09.9006054Z 2023-01-11T21:04:09.9006329Z  Location is heap block of size 256 at 0x7b400006b600 allocated by main thread: 2023-01-11T21:04:09.9006669Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:04:09.9006937Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:04:09.9007290Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:04:09.9007642Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17b22ff) 2023-01-11T21:04:09.9008115Z #4 c10::TensorImpl* at::native::_resize_impl_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17b39f0) 2023-01-11T21:04:09.9008577Z #5 at::Tensor const& at::native::_resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b4f77) 2023-01-11T21:04:09.9009037Z #6 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b1f74) 2023-01-11T21:04:09.9009544Z #7 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2aaa6d9) 2023-01-11T21:04:09.9010711Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional))>, at::Tensor const&, c10::guts::typelist::typelist, c10::optional > >, at::Tensor const& (at::Tensor const&, c10::ArrayRef, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2bb705d) 2023-01-11T21:04:09.9011770Z #9 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2904583) 2023-01-11T21:04:09.9012243Z #10 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aa994) 2023-01-11T21:04:09.9012835Z #11 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:04:09.9013993Z #12 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c756df) 2023-01-11T21:04:09.9015287Z #13 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c0417) 2023-01-11T21:04:09.9016578Z #14 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:04:09.9017715Z #15 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:04:09.9018361Z #16 std::_Function_handler > const&), torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody()::$_570>::_M_invoke(std::_Any_data const&, std::vector > const&) (test_lazy+0x4777db) 2023-01-11T21:04:09.9019023Z #17 torch::lazy::TestBackward(std::vector > const&, c10::Device const&, std::function > const&)> const&, double, double, int) (test_lazy+0x4c1656) 2023-01-11T21:04:09.9019661Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x4770d7) 2023-01-11T21:04:09.9020111Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:04:09.9020462Z #20 torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody() (test_lazy+0x32debb) 2023-01-11T21:04:09.9021007Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:04:09.9021391Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:04:09.9021667Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:04:09.9021952Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:04:09.9022306Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:04:09.9022788Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:04:09.9023229Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:04:09.9023450Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:04:09.9023577Z 2023-01-11T21:04:09.9023806Z  Thread T1 'PTThreadPool' (tid=60, running) created by main thread at: 2023-01-11T21:04:09.9024165Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:04:09.9024564Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:04:09.9025114Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:04:09.9025643Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:04:09.9026130Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:04:09.9026582Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:04:09.9026947Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:04:09.9027558Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:04:09.9028036Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:04:09.9028447Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:04:09.9028838Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:04:09.9029605Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:04:09.9030314Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:04:09.9030717Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:04:09.9031618Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:04:09.9032571Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:04:09.9033588Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:04:09.9034506Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:04:09.9034939Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:04:09.9035721Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:04:09.9036459Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:04:09.9036779Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:04:09.9037189Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:04:09.9037565Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:04:09.9037821Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:04:09.9038082Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:04:09.9038358Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:04:09.9038837Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:04:09.9039277Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:04:09.9039512Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:04:09.9039627Z 2023-01-11T21:04:09.9040322Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8798cd3) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2023-01-11T21:04:09.9040796Z ================== 2023-01-11T21:04:09.9243044Z ================== 2023-01-11T21:04:09.9243678Z WARNING: ThreadSanitizer: data race (pid=58) 2023-01-11T21:04:09.9244184Z  Write of size 4 at 0x7b400009b544 by main thread: 2023-01-11T21:04:09.9245211Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:04:09.9246475Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:09.9247240Z #2 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:04:09.9247801Z #3 at::native::(anonymous namespace)::max_unpool3d_kernel_impl(at::Tensor&, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x87966a3) 2023-01-11T21:04:09.9248650Z #4 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aab2e) 2023-01-11T21:04:09.9249451Z #5 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:04:09.9251144Z #6 c10::impl::make_boxed_from_unboxed_functor, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2c75841) 2023-01-11T21:04:09.9252735Z #7 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:04:09.9253565Z #8 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:04:09.9254814Z #9 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:04:09.9255865Z #10 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:04:09.9296257Z #11 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:04:09.9297792Z #12 c10::impl::BoxedKernelWrapper, c10::ArrayRef, c10::ArrayRef), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2890959) 2023-01-11T21:04:09.9298800Z #13 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c046d) 2023-01-11T21:04:09.9300473Z #14 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:04:09.9302623Z #15 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:04:09.9303500Z #16 std::_Function_handler > const&), torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody()::$_570>::_M_invoke(std::_Any_data const&, std::vector > const&) (test_lazy+0x4777db) 2023-01-11T21:04:09.9304596Z #17 torch::lazy::TestBackward(std::vector > const&, c10::Device const&, std::function > const&)> const&, double, double, int) (test_lazy+0x4c1686) 2023-01-11T21:04:09.9305470Z #18 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x4770d7) 2023-01-11T21:04:09.9305932Z #19 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:04:09.9306307Z #20 torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody() (test_lazy+0x32debb) 2023-01-11T21:04:09.9306751Z #21 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:04:09.9307132Z #22 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:04:09.9307392Z #23 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:04:09.9307656Z #24 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:04:09.9307934Z #25 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:04:09.9308418Z #26 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:04:09.9308857Z #27 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:04:09.9309094Z #28 main (test_lazy+0x20aec1) 2023-01-11T21:04:09.9309224Z 2023-01-11T21:04:09.9309477Z  Previous write of size 4 at 0x7b400009b544 by thread T3: 2023-01-11T21:04:09.9310189Z  #0 std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8798cd3) 2023-01-11T21:04:09.9310807Z #1 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:09.9311378Z #2 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:04:09.9311863Z #3 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:04:09.9312251Z #4 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:04:09.9312603Z #5 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:04:09.9312764Z 2023-01-11T21:04:09.9312987Z  Location is heap block of size 256 at 0x7b400009b500 allocated by main thread: 2023-01-11T21:04:09.9313321Z  #0 posix_memalign (test_lazy+0x17ffd1) 2023-01-11T21:04:09.9313572Z #1 c10::alloc_cpu(unsigned long) (libc10.so+0x4f71d) 2023-01-11T21:04:09.9313877Z #2 c10::DefaultCPUAllocator::allocate(unsigned long) const (libc10.so+0x1cbdf) 2023-01-11T21:04:09.9314264Z #3 at::native::resize_bytes_cpu(c10::StorageImpl*, unsigned long) (libtorch_cpu.so+0x17b22ff) 2023-01-11T21:04:09.9314770Z #4 c10::TensorImpl* at::native::_resize_impl_(c10::TensorImpl*, c10::ArrayRef, c10::OptionalArrayRef, bool) (libtorch_cpu.so+0x17b39f0) 2023-01-11T21:04:09.9315220Z #5 at::Tensor const& at::native::_resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b4f77) 2023-01-11T21:04:09.9315629Z #6 at::native::resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x17b1f74) 2023-01-11T21:04:09.9316084Z #7 at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2aaa6d9) 2023-01-11T21:04:09.9317124Z #8 c10::impl::wrap_kernel_functor_unboxed_, c10::optional), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__resize_(at::Tensor const&, c10::ArrayRef, c10::optional))>, at::Tensor const&, c10::guts::typelist::typelist, c10::optional > >, at::Tensor const& (at::Tensor const&, c10::ArrayRef, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2bb705d) 2023-01-11T21:04:09.9318078Z #9 at::_ops::resize_::call(at::Tensor const&, c10::ArrayRef, c10::optional) (libtorch_cpu.so+0x2904583) 2023-01-11T21:04:09.9318545Z #10 at::native::max_unpooling3d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x15aa994) 2023-01-11T21:04:09.9319038Z #11 at::native::max_unpooling3d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x15ab65e) 2023-01-11T21:04:09.9320041Z #12 c10::impl::make_boxed_from_unboxed_functor, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__max_unpool3d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, false>::call(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x2c75841) 2023-01-11T21:04:09.9320978Z #13 torch::lazy::ts_eager_fallback(c10::OperatorHandle const&, std::vector >*, c10::DeviceType) (libtorch_cpu.so+0x7a1b4ed) 2023-01-11T21:04:09.9321475Z #14 torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*) (libtorch_cpu.so+0x7a19be4) 2023-01-11T21:04:09.9322088Z #15 void c10::BoxedKernel::make_boxed_function<&(torch::lazy::ltc_eager_fallback(c10::OperatorHandle const&, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0x6659bce) 2023-01-11T21:04:09.9322696Z #16 c10::Dispatcher::callBoxed(c10::OperatorHandle const&, std::vector >*) const (libtorch_cpu.so+0xc5023e) 2023-01-11T21:04:09.9323385Z #17 void c10::BoxedKernel::make_boxed_function<&((anonymous namespace)::functionalizeFallback(c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*))>(c10::OperatorKernel*, c10::OperatorHandle const&, c10::DispatchKeySet, std::vector >*) (libtorch_cpu.so+0xc4c688) 2023-01-11T21:04:09.9324231Z #18 c10::impl::BoxedKernelWrapper, c10::ArrayRef, c10::ArrayRef), void>::call(c10::BoxedKernel const&, c10::OperatorHandle const&, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2890959) 2023-01-11T21:04:09.9324886Z #19 at::_ops::max_unpool3d::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27c046d) 2023-01-11T21:04:09.9326061Z #20 c10::impl::wrap_kernel_functor_unboxed_, c10::ArrayRef, c10::ArrayRef), &(torch::autograd::VariableType::(anonymous namespace)::max_unpool3d(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x567c585) 2023-01-11T21:04:09.9327152Z #21 at::_ops::max_unpool3d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x27bfffb) 2023-01-11T21:04:09.9327734Z #22 std::_Function_handler > const&), torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody()::$_570>::_M_invoke(std::_Any_data const&, std::vector > const&) (test_lazy+0x4777db) 2023-01-11T21:04:09.9328381Z #23 torch::lazy::TestBackward(std::vector > const&, c10::Device const&, std::function > const&)> const&, double, double, int) (test_lazy+0x4c1686) 2023-01-11T21:04:09.9328952Z #24 std::_Function_handler::_M_invoke(std::_Any_data const&, c10::Device const&) (test_lazy+0x4770d7) 2023-01-11T21:04:09.9329405Z #25 torch::lazy::ForEachDevice(std::function const&) (test_lazy+0x4bf5c5) 2023-01-11T21:04:09.9329755Z #26 torch::lazy::LazyOpsTest_TestMaxUnpool3DBackward_Test::TestBody() (test_lazy+0x32debb) 2023-01-11T21:04:09.9330233Z #27 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:04:09.9330620Z #28 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:04:09.9330882Z #29 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:04:09.9331132Z #30 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:04:09.9331424Z #31 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:04:09.9331933Z #32 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:04:09.9332375Z #33 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:04:09.9332597Z #34 main (test_lazy+0x20aec1) 2023-01-11T21:04:09.9332728Z 2023-01-11T21:04:09.9332944Z  Thread T3 'PTThreadPool' (tid=62, running) created by main thread at: 2023-01-11T21:04:09.9333281Z  #0 pthread_create (test_lazy+0x1804e5) 2023-01-11T21:04:09.9333638Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:04:09.9334186Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:04:09.9334890Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:04:09.9335376Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:04:09.9335832Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:04:09.9336201Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:04:09.9336822Z #7 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x19b988a) 2023-01-11T21:04:09.9337335Z #8 void at::native::(anonymous namespace)::apply_triu_tril(at::Tensor const&, at::Tensor const&, bool, long, bool) (libtorch_cpu.so+0x19b90b5) 2023-01-11T21:04:09.9337740Z #9 at::native::structured_triu_cpu::impl(at::Tensor const&, long, at::Tensor const&) (libtorch_cpu.so+0x19a3d01) 2023-01-11T21:04:09.9338134Z #10 at::(anonymous namespace)::wrapper_CPU_triu_out_out(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2ad509b) 2023-01-11T21:04:09.9338907Z #11 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor&, c10::guts::typelist::typelist >, at::Tensor& (at::Tensor const&, long, at::Tensor&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x2c08235) 2023-01-11T21:04:09.9339603Z #12 at::_ops::triu_out::call(at::Tensor const&, long, at::Tensor&) (libtorch_cpu.so+0x278f491) 2023-01-11T21:04:09.9340010Z #13 at::native::structured_linalg_qr_out::impl(at::Tensor const&, c10::basic_string_view, at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x124f0e6) 2023-01-11T21:04:09.9340908Z #14 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, c10::basic_string_view), &(at::(anonymous namespace)::wrapper_CPU_linalg_qr(at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2c9d881) 2023-01-11T21:04:09.9341829Z #15 at::_ops::linalg_qr::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2998003) 2023-01-11T21:04:09.9342857Z #16 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view), &(torch::autograd::VariableType::(anonymous namespace)::linalg_qr(c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view))>, std::tuple, c10::guts::typelist::typelist > >, std::tuple (c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x588f9a9) 2023-01-11T21:04:09.9343767Z #17 at::_ops::linalg_qr::call(at::Tensor const&, c10::basic_string_view) (libtorch_cpu.so+0x2997c9e) 2023-01-11T21:04:09.9344102Z #18 at::native::qr(at::Tensor const&, bool) (libtorch_cpu.so+0x124fee8) 2023-01-11T21:04:09.9344882Z #19 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__qr(at::Tensor const&, bool))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, bool) (libtorch_cpu.so+0x32479c4) 2023-01-11T21:04:09.9345627Z #20 at::_ops::qr::call(at::Tensor const&, bool) (libtorch_cpu.so+0x22f9893) 2023-01-11T21:04:09.9345940Z #21 torch::lazy::LazyOpsTest_TestQR_Test::TestBody() (test_lazy+0x268dfc) 2023-01-11T21:04:09.9346356Z #22 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_lazy+0x51770c) 2023-01-11T21:04:09.9346744Z #23 testing::Test::Run() (test_lazy+0x4da97f) 2023-01-11T21:04:09.9347001Z #24 testing::TestInfo::Run() (test_lazy+0x4dc66a) 2023-01-11T21:04:09.9347269Z #25 testing::TestSuite::Run() (test_lazy+0x4dd376) 2023-01-11T21:04:09.9347544Z #26 testing::internal::UnitTestImpl::RunAllTests() (test_lazy+0x4f6abb) 2023-01-11T21:04:09.9348021Z #27 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_lazy+0x518a5c) 2023-01-11T21:04:09.9348460Z #28 testing::UnitTest::Run() (test_lazy+0x4f61b0) 2023-01-11T21:04:09.9348697Z #29 main (test_lazy+0x20aec1) 2023-01-11T21:04:09.9348811Z 2023-01-11T21:04:09.9349500Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0x8798cd3) in std::_Function_handler(at::Tensor&, at::Tensor const&, at::Tensor const&)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) 2023-01-11T21:04:09.9350005Z ================== 2023-01-11T21:04:10.0337925Z [ OK ] LazyOpsTest.TestMaxUnpool3DBackward (208 ms) 2023-01-11T21:04:10.0338305Z [ RUN ] LazyOpsTest.TestTanhBackward 2023-01-11T21:04:10.0461909Z [ OK ] LazyOpsTest.TestTanhBackward (12 ms) 2023-01-11T21:04:10.0462250Z [ RUN ] LazyOpsTest.TestSigmoidBackward 2023-01-11T21:04:10.0582957Z [ OK ] LazyOpsTest.TestSigmoidBackward (12 ms) 2023-01-11T21:04:10.0583312Z [ RUN ] LazyOpsTest.TestLogSigmoidBackward 2023-01-11T21:04:10.0710799Z [ OK ] LazyOpsTest.TestLogSigmoidBackward (12 ms) 2023-01-11T21:04:10.0711156Z [ RUN ] LazyOpsTest.TestLogSoftmaxBackward 2023-01-11T21:04:10.1630662Z [ OK ] LazyOpsTest.TestLogSoftmaxBackward (91 ms) 2023-01-11T21:04:10.1631243Z [ RUN ] LazyOpsTest.TestSoftmaxBackward 2023-01-11T21:04:10.2515508Z [ OK ] LazyOpsTest.TestSoftmaxBackward (88 ms) 2023-01-11T21:04:10.2515930Z [ RUN ] LazyOpsTest.TestSoftplusBackward 2023-01-11T21:04:10.2636305Z [ OK ] LazyOpsTest.TestSoftplusBackward (12 ms) 2023-01-11T21:04:10.2636627Z [ RUN ] LazyOpsTest.TestReluBackward 2023-01-11T21:04:10.2756425Z [ OK ] LazyOpsTest.TestReluBackward (12 ms) 2023-01-11T21:04:10.2756753Z [ RUN ] LazyOpsTest.TestRreluBackward 2023-01-11T21:04:10.2879532Z [ OK ] LazyOpsTest.TestRreluBackward (12 ms) 2023-01-11T21:04:10.2879969Z [ RUN ] LazyOpsTest.TestHardshrinkBackward 2023-01-11T21:04:10.2988960Z [ OK ] LazyOpsTest.TestHardshrinkBackward (10 ms) 2023-01-11T21:04:10.2989352Z [ RUN ] LazyOpsTest.TestSoftshrinkBackward 2023-01-11T21:04:10.3120617Z [ OK ] LazyOpsTest.TestSoftshrinkBackward (13 ms) 2023-01-11T21:04:10.3120972Z [ RUN ] LazyOpsTest.TestHardtanhBackward 2023-01-11T21:04:10.3175226Z [ OK ] LazyOpsTest.TestHardtanhBackward (5 ms) 2023-01-11T21:04:10.3175551Z [ RUN ] LazyOpsTest.TestEluBackward 2023-01-11T21:04:10.3297308Z [ OK ] LazyOpsTest.TestEluBackward (12 ms) 2023-01-11T21:04:10.3297685Z [ RUN ] LazyOpsTest.TestGeluBackward 2023-01-11T21:04:10.3416630Z [ OK ] LazyOpsTest.TestGeluBackward (11 ms) 2023-01-11T21:04:10.3416955Z [ RUN ] LazyOpsTest.TestLeakyReluBackward 2023-01-11T21:04:10.3550884Z [ OK ] LazyOpsTest.TestLeakyReluBackward (13 ms) 2023-01-11T21:04:10.3551237Z [ RUN ] LazyOpsTest.TestTransposeBackward 2023-01-11T21:04:10.3659741Z [ OK ] LazyOpsTest.TestTransposeBackward (10 ms) 2023-01-11T21:04:10.3660297Z [ RUN ] LazyOpsTest.TestAddMatMulBackward 2023-01-11T21:04:10.4517258Z [ OK ] LazyOpsTest.TestAddMatMulBackward (85 ms) 2023-01-11T21:04:10.4517664Z [ RUN ] LazyOpsTest.TestBinaryCrossEntropyBackward 2023-01-11T21:04:10.5324439Z [ OK ] LazyOpsTest.TestBinaryCrossEntropyBackward (80 ms) 2023-01-11T21:04:10.5325108Z [ RUN ] LazyOpsTest.TestNllLossBackward 2023-01-11T21:04:10.5325393Z /var/lib/jenkins/workspace/test/cpp/lazy/test_lazy_ops.cpp:10954: Skipped 2023-01-11T21:04:10.5325564Z 2023-01-11T21:04:10.5325762Z [ SKIPPED ] LazyOpsTest.TestNllLossBackward (0 ms) 2023-01-11T21:04:10.5326108Z [ RUN ] LazyOpsTest.TestNllLoss2dBackward 2023-01-11T21:04:10.8692871Z [ OK ] LazyOpsTest.TestNllLoss2dBackward (336 ms) 2023-01-11T21:04:10.8693331Z [ RUN ] LazyOpsTest.TestSmoothL1LossBackward 2023-01-11T21:04:10.9510394Z [ OK ] LazyOpsTest.TestSmoothL1LossBackward (81 ms) 2023-01-11T21:04:10.9510795Z [ RUN ] LazyOpsTest.TestViewBackward 2023-01-11T21:04:10.9693544Z [ OK ] LazyOpsTest.TestViewBackward (18 ms) 2023-01-11T21:04:10.9694155Z [ RUN ] LazyOpsTest.TestBatchNorm2DBackward 2023-01-11T21:04:11.0315151Z [ OK ] LazyOpsTest.TestBatchNorm2DBackward (62 ms) 2023-01-11T21:04:11.0315556Z [ RUN ] LazyOpsTest.TestBatchNorm3DBackward 2023-01-11T21:04:11.0942821Z [ OK ] LazyOpsTest.TestBatchNorm3DBackward (62 ms) 2023-01-11T21:04:11.0943342Z [ RUN ] LazyOpsTest.TestBCEWithLogitsBackward 2023-01-11T21:04:11.4938425Z [ OK ] LazyOpsTest.TestBCEWithLogitsBackward (399 ms) 2023-01-11T21:04:11.4938809Z [ RUN ] LazyOpsTest.TestKlDivBackward 2023-01-11T21:04:11.5974225Z [ OK ] LazyOpsTest.TestKlDivBackward (103 ms) 2023-01-11T21:04:11.5975081Z [ RUN ] LazyOpsTest.TestEmbeddingBackward 2023-01-11T21:04:12.4240286Z [ OK ] LazyOpsTest.TestEmbeddingBackward (826 ms) 2023-01-11T21:04:12.4240961Z [ RUN ] LazyOpsTest.TestAmpForeachNonFiniteCheckAndUnscale 2023-01-11T21:04:12.4243331Z /var/lib/jenkins/workspace/test/cpp/lazy/test_lazy_ops.cpp:11351: Skipped 2023-01-11T21:04:12.4243545Z 2023-01-11T21:04:12.4243917Z [ SKIPPED ] LazyOpsTest.TestAmpForeachNonFiniteCheckAndUnscale (0 ms) 2023-01-11T21:04:12.4244349Z [ RUN ] LazyOpsTest.TestAmpUpdateScale 2023-01-11T21:04:12.4245340Z /var/lib/jenkins/workspace/test/cpp/lazy/test_lazy_ops.cpp:11400: Skipped 2023-01-11T21:04:12.4245600Z 2023-01-11T21:04:12.4245925Z [ SKIPPED ] LazyOpsTest.TestAmpUpdateScale (0 ms) 2023-01-11T21:04:12.4246339Z [ RUN ] LazyOpsTest.TestEarlySyncLiveTensors 2023-01-11T21:04:12.4249942Z [ OK ] LazyOpsTest.TestEarlySyncLiveTensors (0 ms) 2023-01-11T21:04:12.4250330Z [ RUN ] LazyOpsTest.TestLerp 2023-01-11T21:04:12.4269698Z [ OK ] LazyOpsTest.TestLerp (1 ms) 2023-01-11T21:04:12.4270118Z [ RUN ] LazyOpsTest.TestLerpScalar 2023-01-11T21:04:12.4286704Z [ OK ] LazyOpsTest.TestLerpScalar (1 ms) 2023-01-11T21:04:12.4287093Z [ RUN ] LazyOpsTest.TestLerpInplace 2023-01-11T21:04:12.4305659Z [ OK ] LazyOpsTest.TestLerpInplace (1 ms) 2023-01-11T21:04:12.4306099Z [ RUN ] LazyOpsTest.TestLerpScalarInplace 2023-01-11T21:04:12.4322413Z [ OK ] LazyOpsTest.TestLerpScalarInplace (1 ms) 2023-01-11T21:04:12.4322740Z [ RUN ] LazyOpsTest.TestLerpOut 2023-01-11T21:04:12.4341102Z [ OK ] LazyOpsTest.TestLerpOut (1 ms) 2023-01-11T21:04:12.4341511Z [ RUN ] LazyOpsTest.TestLerpScalarOut 2023-01-11T21:04:12.4357899Z [ OK ] LazyOpsTest.TestLerpScalarOut (1 ms) 2023-01-11T21:04:12.4358241Z [ RUN ] LazyOpsTest.IsAliasOf 2023-01-11T21:04:12.4366499Z [ OK ] LazyOpsTest.IsAliasOf (0 ms) 2023-01-11T21:04:12.4368445Z [----------] 574 tests from LazyOpsTest (43321 ms total) 2023-01-11T21:04:12.4368649Z 2023-01-11T21:04:12.4368870Z [----------] Global test environment tear-down 2023-01-11T21:04:12.4832793Z [==========] 611 tests from 10 test suites ran. (43358 ms total) 2023-01-11T21:04:12.4833354Z [ PASSED ] 607 tests. 2023-01-11T21:04:12.4833774Z [ SKIPPED ] 4 tests, listed below: 2023-01-11T21:04:12.4834059Z [ SKIPPED ] LazyOpsTest.TestNllLoss 2023-01-11T21:04:12.4834370Z [ SKIPPED ] LazyOpsTest.TestNllLossBackward 2023-01-11T21:04:12.4834848Z [ SKIPPED ] LazyOpsTest.TestAmpForeachNonFiniteCheckAndUnscale 2023-01-11T21:04:12.4835220Z [ SKIPPED ] LazyOpsTest.TestAmpUpdateScale 2023-01-11T21:04:13.0418926Z ThreadSanitizer: reported 474 warnings 2023-01-11T21:04:13.1017638Z + [[ linux-focal-py3.7-clang7-tsan != *-tsan* ]] 2023-01-11T21:04:13.1018029Z + wait 2023-01-11T21:04:13.1018313Z + OMP_NUM_THREADS=2 2023-01-11T21:04:13.1018676Z + TORCH_CPP_TEST_MNIST_PATH=test/cpp/api/mnist 2023-01-11T21:04:13.1019278Z + /opt/conda/lib/python3.7/site-packages/torch/bin/test_api '--gtest_filter=-IMethodTest.*' --gtest_output=xml:test/test-reports/cpp-unittest/test_libtorch/test_api.xml 2023-01-11T21:04:16.7890709Z CUDA not available. Disabling CUDA and MultiCUDA tests 2023-01-11T21:04:16.7963698Z Note: Google Test filter = -IMethodTest.*:*_CUDA:*_MultiCUDA 2023-01-11T21:04:16.7964841Z [==========] Running 992 tests from 48 test suites. 2023-01-11T21:04:16.7965283Z [----------] Global test environment set-up. 2023-01-11T21:04:16.7965598Z [----------] 9 tests from AutogradAPITests 2023-01-11T21:04:16.7965915Z [ RUN ] AutogradAPITests.BackwardSimpleTest 2023-01-11T21:04:16.8180999Z [ OK ] AutogradAPITests.BackwardSimpleTest (21 ms) 2023-01-11T21:04:16.8181465Z [ RUN ] AutogradAPITests.BackwardTest 2023-01-11T21:04:16.8185982Z [W engine.cpp:1134] Warning: Using backward() with create_graph=True will create a reference cycle between the parameter and its gradient which can cause a memory leak. We recommend using autograd.grad when creating the graph to avoid this. If you have to use this function, make sure to reset the .grad fields of your parameters to None after use to break the cycle and avoid the leak. (function operator()) 2023-01-11T21:04:16.8217012Z [ OK ] AutogradAPITests.BackwardTest (3 ms) 2023-01-11T21:04:16.8217575Z [ RUN ] AutogradAPITests.GradSimpleTest 2023-01-11T21:04:16.8241260Z [ OK ] AutogradAPITests.GradSimpleTest (2 ms) 2023-01-11T21:04:16.8241838Z [ RUN ] AutogradAPITests.GradTest 2023-01-11T21:04:16.8289697Z [ OK ] AutogradAPITests.GradTest (4 ms) 2023-01-11T21:04:16.8290290Z [ RUN ] AutogradAPITests.GradNonLeafTest 2023-01-11T21:04:16.8319076Z [W TensorBody.h:485] Warning: The .grad attribute of a Tensor that is not a leaf Tensor is being accessed. Its .grad attribute won't be populated during autograd.backward(). If you indeed want the .grad field to be populated for a non-leaf Tensor, use .retain_grad() on the non-leaf Tensor. If you access the non-leaf Tensor by mistake, make sure you access the leaf Tensor instead. See github.com/pytorch/pytorch/pull/30531 for more informations. (function grad) 2023-01-11T21:04:16.8332956Z [W TensorBody.h:485] Warning: The .grad attribute of a Tensor that is not a leaf Tensor is being accessed. Its .grad attribute won't be populated during autograd.backward(). If you indeed want the .grad field to be populated for a non-leaf Tensor, use .retain_grad() on the non-leaf Tensor. If you access the non-leaf Tensor by mistake, make sure you access the leaf Tensor instead. See github.com/pytorch/pytorch/pull/30531 for more informations. (function grad) 2023-01-11T21:04:16.8346844Z [W TensorBody.h:485] Warning: The .grad attribute of a Tensor that is not a leaf Tensor is being accessed. Its .grad attribute won't be populated during autograd.backward(). If you indeed want the .grad field to be populated for a non-leaf Tensor, use .retain_grad() on the non-leaf Tensor. If you access the non-leaf Tensor by mistake, make sure you access the leaf Tensor instead. See github.com/pytorch/pytorch/pull/30531 for more informations. (function grad) 2023-01-11T21:04:16.8360723Z [W TensorBody.h:485] Warning: The .grad attribute of a Tensor that is not a leaf Tensor is being accessed. Its .grad attribute won't be populated during autograd.backward(). If you indeed want the .grad field to be populated for a non-leaf Tensor, use .retain_grad() on the non-leaf Tensor. If you access the non-leaf Tensor by mistake, make sure you access the leaf Tensor instead. See github.com/pytorch/pytorch/pull/30531 for more informations. (function grad) 2023-01-11T21:04:16.8387662Z [ OK ] AutogradAPITests.GradNonLeafTest (9 ms) 2023-01-11T21:04:16.8388280Z [ RUN ] AutogradAPITests.GradUnreachableTest 2023-01-11T21:04:16.8444390Z [ OK ] AutogradAPITests.GradUnreachableTest (5 ms) 2023-01-11T21:04:16.8444986Z [ RUN ] AutogradAPITests.EmptyInput 2023-01-11T21:04:16.8476491Z [ OK ] AutogradAPITests.EmptyInput (3 ms) 2023-01-11T21:04:16.8477163Z [ RUN ] AutogradAPITests.RetainGrad 2023-01-11T21:04:16.8520255Z [ OK ] AutogradAPITests.RetainGrad (4 ms) 2023-01-11T21:04:16.8520631Z [ RUN ] AutogradAPITests.AnomalyMode 2023-01-11T21:04:16.8521026Z [W anomaly_mode.cpp:27] Warning: This mode should be enabled only for debugging as the different tests will slow down your program execution. (function operator()) 2023-01-11T21:04:17.0268273Z [ OK ] AutogradAPITests.AnomalyMode (174 ms) 2023-01-11T21:04:17.0268647Z [----------] 9 tests from AutogradAPITests (230 ms total) 2023-01-11T21:04:17.0268867Z 2023-01-11T21:04:17.0269044Z [----------] 33 tests from CustomAutogradTest 2023-01-11T21:04:17.0269411Z [ RUN ] CustomAutogradTest.GradUnreachableDiscoveryTest 2023-01-11T21:04:17.0273529Z [ OK ] CustomAutogradTest.GradUnreachableDiscoveryTest (0 ms) 2023-01-11T21:04:17.0273916Z [ RUN ] CustomAutogradTest.CustomFunction 2023-01-11T21:04:17.0301852Z [ OK ] CustomAutogradTest.CustomFunction (2 ms) 2023-01-11T21:04:17.0302249Z [ RUN ] CustomAutogradTest.CustomFunctionWithTensorList 2023-01-11T21:04:17.0326640Z [ OK ] CustomAutogradTest.CustomFunctionWithTensorList (2 ms) 2023-01-11T21:04:17.0327090Z [ RUN ] CustomAutogradTest.GraphTaskTrimEdges 2023-01-11T21:04:17.0376312Z [ OK ] CustomAutogradTest.GraphTaskTrimEdges (4 ms) 2023-01-11T21:04:17.0376731Z [ RUN ] CustomAutogradTest.FunctionReturnsInput 2023-01-11T21:04:17.0386989Z [ OK ] CustomAutogradTest.FunctionReturnsInput (1 ms) 2023-01-11T21:04:17.0387464Z [ RUN ] CustomAutogradTest.FunctionReturnsUndefined 2023-01-11T21:04:17.0403649Z [ OK ] CustomAutogradTest.FunctionReturnsUndefined (1 ms) 2023-01-11T21:04:17.0404099Z [ RUN ] CustomAutogradTest.MaterializeGrads 2023-01-11T21:04:17.0415735Z [ OK ] CustomAutogradTest.MaterializeGrads (1 ms) 2023-01-11T21:04:17.0416139Z [ RUN ] CustomAutogradTest.DontMaterializeGrads 2023-01-11T21:04:17.0420723Z [ OK ] CustomAutogradTest.DontMaterializeGrads (0 ms) 2023-01-11T21:04:17.0421156Z [ RUN ] CustomAutogradTest.NoGradCustomFunction 2023-01-11T21:04:17.0423154Z [ OK ] CustomAutogradTest.NoGradCustomFunction (0 ms) 2023-01-11T21:04:17.0423503Z [ RUN ] CustomAutogradTest.MarkDirty 2023-01-11T21:04:17.0430523Z [ OK ] CustomAutogradTest.MarkDirty (0 ms) 2023-01-11T21:04:17.0430877Z [ RUN ] CustomAutogradTest.MarkNonDifferentiable 2023-01-11T21:04:17.0439175Z [ OK ] CustomAutogradTest.MarkNonDifferentiable (0 ms) 2023-01-11T21:04:17.0439585Z [ RUN ] CustomAutogradTest.MarkNonDifferentiableMixed 2023-01-11T21:04:17.0464706Z [ OK ] CustomAutogradTest.MarkNonDifferentiableMixed (2 ms) 2023-01-11T21:04:17.0465107Z [ RUN ] CustomAutogradTest.MarkNonDifferentiableNone 2023-01-11T21:04:17.0471892Z [ OK ] CustomAutogradTest.MarkNonDifferentiableNone (0 ms) 2023-01-11T21:04:17.0472281Z [ RUN ] CustomAutogradTest.ReturnLeafInplace 2023-01-11T21:04:17.0486155Z [ OK ] CustomAutogradTest.ReturnLeafInplace (1 ms) 2023-01-11T21:04:17.0486552Z [ RUN ] CustomAutogradTest.ReturnDuplicateInplace 2023-01-11T21:04:17.0517263Z [ OK ] CustomAutogradTest.ReturnDuplicateInplace (2 ms) 2023-01-11T21:04:17.0517640Z [ RUN ] CustomAutogradTest.ReturnDuplicate 2023-01-11T21:04:17.0519058Z [ OK ] CustomAutogradTest.ReturnDuplicate (0 ms) 2023-01-11T21:04:17.0519463Z [ RUN ] CustomAutogradTest.SaveEmptyForBackward 2023-01-11T21:04:17.0532716Z [ OK ] CustomAutogradTest.SaveEmptyForBackward (1 ms) 2023-01-11T21:04:17.0533071Z [ RUN ] CustomAutogradTest.InvalidGradients 2023-01-11T21:04:17.0598133Z [ OK ] CustomAutogradTest.InvalidGradients (6 ms) 2023-01-11T21:04:17.0598530Z [ RUN ] CustomAutogradTest.NoGradInput 2023-01-11T21:04:17.0599626Z [ OK ] CustomAutogradTest.NoGradInput (0 ms) 2023-01-11T21:04:17.0600208Z [ RUN ] CustomAutogradTest.TooManyGrads 2023-01-11T21:04:17.0600639Z [ OK ] CustomAutogradTest.TooManyGrads (0 ms) 2023-01-11T21:04:17.0600954Z [ RUN ] CustomAutogradTest.DepNoGrad 2023-01-11T21:04:17.0613124Z [ OK ] CustomAutogradTest.DepNoGrad (1 ms) 2023-01-11T21:04:17.0613678Z [ RUN ] CustomAutogradTest.Reentrant 2023-01-11T21:04:17.0631386Z [ OK ] CustomAutogradTest.Reentrant (1 ms) 2023-01-11T21:04:17.0631982Z [ RUN ] CustomAutogradTest.DeepReentrant 2023-01-11T21:04:25.1391354Z [ OK ] CustomAutogradTest.DeepReentrant (8075 ms) 2023-01-11T21:04:25.1391789Z [ RUN ] CustomAutogradTest.ReentrantPriority 2023-01-11T21:04:25.1474967Z [ OK ] CustomAutogradTest.ReentrantPriority (8 ms) 2023-01-11T21:04:25.1475304Z [ RUN ] CustomAutogradTest.Hooks 2023-01-11T21:04:25.1577413Z [ OK ] CustomAutogradTest.Hooks (10 ms) 2023-01-11T21:04:25.1577755Z [ RUN ] CustomAutogradTest.HooksInplace 2023-01-11T21:04:25.1601263Z [ OK ] CustomAutogradTest.HooksInplace (2 ms) 2023-01-11T21:04:25.1601654Z [ RUN ] CustomAutogradTest.HooksInplaceWithRetainsGrad 2023-01-11T21:04:25.1638501Z [ OK ] CustomAutogradTest.HooksInplaceWithRetainsGrad (3 ms) 2023-01-11T21:04:25.1638960Z [ RUN ] CustomAutogradTest.HooksInplaceTwiceWithRetainsGrad 2023-01-11T21:04:25.1678041Z [ OK ] CustomAutogradTest.HooksInplaceTwiceWithRetainsGrad (3 ms) 2023-01-11T21:04:25.1678630Z [ RUN ] CustomAutogradTest.HookNone 2023-01-11T21:04:25.1689478Z [ OK ] CustomAutogradTest.HookNone (1 ms) 2023-01-11T21:04:25.1690132Z [ RUN ] CustomAutogradTest.BackwardWithInputs 2023-01-11T21:04:25.1710527Z [ OK ] CustomAutogradTest.BackwardWithInputs (2 ms) 2023-01-11T21:04:25.1711107Z [ RUN ] CustomAutogradTest.BackwardWithEmptyInputs 2023-01-11T21:04:25.1735480Z [ OK ] CustomAutogradTest.BackwardWithEmptyInputs (2 ms) 2023-01-11T21:04:25.1735893Z [ RUN ] CustomAutogradTest.BackwardWithNonLeafInputs 2023-01-11T21:04:25.1761876Z [ OK ] CustomAutogradTest.BackwardWithNonLeafInputs (2 ms) 2023-01-11T21:04:25.1762299Z [ RUN ] CustomAutogradTest.BackwardWithCreateGraphWarns 2023-01-11T21:04:25.1773594Z [ OK ] CustomAutogradTest.BackwardWithCreateGraphWarns (1 ms) 2023-01-11T21:04:25.1774018Z [----------] 33 tests from CustomAutogradTest (8150 ms total) 2023-01-11T21:04:25.1774194Z 2023-01-11T21:04:25.1774580Z [----------] 13 tests from TestAutogradNotImplementedFallback 2023-01-11T21:04:25.1775016Z [ RUN ] TestAutogradNotImplementedFallback.RetSingleNonTensor 2023-01-11T21:04:25.1796550Z [ OK ] TestAutogradNotImplementedFallback.RetSingleNonTensor (2 ms) 2023-01-11T21:04:25.1796986Z [ RUN ] TestAutogradNotImplementedFallback.InplaceOp 2023-01-11T21:04:25.1901886Z [ OK ] TestAutogradNotImplementedFallback.InplaceOp (10 ms) 2023-01-11T21:04:25.1902321Z [ RUN ] TestAutogradNotImplementedFallback.DoubleInplaceOp 2023-01-11T21:04:25.1989702Z [ OK ] TestAutogradNotImplementedFallback.DoubleInplaceOp (8 ms) 2023-01-11T21:04:25.1990118Z [ RUN ] TestAutogradNotImplementedFallback.OptOp 2023-01-11T21:04:25.2020400Z [ OK ] TestAutogradNotImplementedFallback.OptOp (3 ms) 2023-01-11T21:04:25.2020845Z [ RUN ] TestAutogradNotImplementedFallback.OutOfPlaceAddition 2023-01-11T21:04:25.2074793Z [ OK ] TestAutogradNotImplementedFallback.OutOfPlaceAddition (5 ms) 2023-01-11T21:04:25.2075489Z [ RUN ] TestAutogradNotImplementedFallback.RetTupleNonTensor 2023-01-11T21:04:25.2129690Z [ OK ] TestAutogradNotImplementedFallback.RetTupleNonTensor (5 ms) 2023-01-11T21:04:25.2130125Z [ RUN ] TestAutogradNotImplementedFallback.ViewOp 2023-01-11T21:04:25.2234225Z [ OK ] TestAutogradNotImplementedFallback.ViewOp (10 ms) 2023-01-11T21:04:25.2234728Z [ RUN ] TestAutogradNotImplementedFallback.ViewOpWithExtraArg 2023-01-11T21:04:25.2290478Z [ OK ] TestAutogradNotImplementedFallback.ViewOpWithExtraArg (5 ms) 2023-01-11T21:04:25.2290959Z [ RUN ] TestAutogradNotImplementedFallback.RetTensorVectorView 2023-01-11T21:04:25.2308691Z [ OK ] TestAutogradNotImplementedFallback.RetTensorVectorView (1 ms) 2023-01-11T21:04:25.2309355Z [ RUN ] TestAutogradNotImplementedFallback.DoubleViewOP 2023-01-11T21:04:25.2352074Z [ OK ] TestAutogradNotImplementedFallback.DoubleViewOP (4 ms) 2023-01-11T21:04:25.2352746Z [ RUN ] TestAutogradNotImplementedFallback.NonFirstViewOP 2023-01-11T21:04:25.2405888Z [ OK ] TestAutogradNotImplementedFallback.NonFirstViewOP (5 ms) 2023-01-11T21:04:25.2406582Z [ RUN ] TestAutogradNotImplementedFallback.RetTensorVector 2023-01-11T21:04:25.2460837Z [ OK ] TestAutogradNotImplementedFallback.RetTensorVector (5 ms) 2023-01-11T21:04:25.2461488Z [ RUN ] TestAutogradNotImplementedFallback.TensorlistOp 2023-01-11T21:04:25.2515940Z [ OK ] TestAutogradNotImplementedFallback.TensorlistOp (5 ms) 2023-01-11T21:04:25.2516726Z [----------] 13 tests from TestAutogradNotImplementedFallback (74 ms total) 2023-01-11T21:04:25.2516983Z 2023-01-11T21:04:25.2517230Z [----------] 18 tests from AnyModuleTest 2023-01-11T21:04:25.2517725Z [ RUN ] AnyModuleTest.SimpleReturnType 2023-01-11T21:04:25.2518298Z [ OK ] AnyModuleTest.SimpleReturnType (0 ms) 2023-01-11T21:04:25.2518973Z [ RUN ] AnyModuleTest.SimpleReturnTypeAndSingleArgument 2023-01-11T21:04:25.2519775Z [ OK ] AnyModuleTest.SimpleReturnTypeAndSingleArgument (0 ms) 2023-01-11T21:04:25.2520572Z [ RUN ] AnyModuleTest.StringLiteralReturnTypeAndArgument 2023-01-11T21:04:25.2521364Z [ OK ] AnyModuleTest.StringLiteralReturnTypeAndArgument (0 ms) 2023-01-11T21:04:25.2521959Z [ RUN ] AnyModuleTest.StringReturnTypeWithConstArgument 2023-01-11T21:04:25.2522708Z [ OK ] AnyModuleTest.StringReturnTypeWithConstArgument (0 ms) 2023-01-11T21:04:25.2523210Z [ RUN ] AnyModuleTest.TensorReturnTypeAndStringArgumentsWithFunkyQualifications 2023-01-11T21:04:25.2523819Z [ OK ] AnyModuleTest.TensorReturnTypeAndStringArgumentsWithFunkyQualifications (0 ms) 2023-01-11T21:04:25.2524268Z [ RUN ] AnyModuleTest.WrongArgumentType 2023-01-11T21:04:25.2540451Z [ OK ] AnyModuleTest.WrongArgumentType (1 ms) 2023-01-11T21:04:25.2541044Z [ RUN ] AnyModuleTest.WrongNumberOfArguments 2023-01-11T21:04:25.2592489Z [ OK ] AnyModuleTest.WrongNumberOfArguments (5 ms) 2023-01-11T21:04:25.2593046Z [ RUN ] AnyModuleTest.PassingArgumentsToModuleWithDefaultArgumentsInForwardMethod 2023-01-11T21:04:25.2697294Z [ OK ] AnyModuleTest.PassingArgumentsToModuleWithDefaultArgumentsInForwardMethod (10 ms) 2023-01-11T21:04:25.2697981Z [ RUN ] AnyModuleTest.GetWithCorrectTypeSucceeds 2023-01-11T21:04:25.2698381Z [ OK ] AnyModuleTest.GetWithCorrectTypeSucceeds (0 ms) 2023-01-11T21:04:25.2698763Z [ RUN ] AnyModuleTest.GetWithIncorrectTypeThrows 2023-01-11T21:04:25.2713120Z [ OK ] AnyModuleTest.GetWithIncorrectTypeThrows (1 ms) 2023-01-11T21:04:25.2713853Z [ RUN ] AnyModuleTest.PtrWithBaseClassSucceeds 2023-01-11T21:04:25.2714946Z [ OK ] AnyModuleTest.PtrWithBaseClassSucceeds (0 ms) 2023-01-11T21:04:25.2715650Z [ RUN ] AnyModuleTest.PtrWithGoodDowncastSuccceeds 2023-01-11T21:04:25.2716363Z [ OK ] AnyModuleTest.PtrWithGoodDowncastSuccceeds (0 ms) 2023-01-11T21:04:25.2717048Z [ RUN ] AnyModuleTest.PtrWithBadDowncastThrows 2023-01-11T21:04:25.2731015Z [ OK ] AnyModuleTest.PtrWithBadDowncastThrows (1 ms) 2023-01-11T21:04:25.2731669Z [ RUN ] AnyModuleTest.DefaultStateIsEmpty 2023-01-11T21:04:25.2732312Z [ OK ] AnyModuleTest.DefaultStateIsEmpty (0 ms) 2023-01-11T21:04:25.2733013Z [ RUN ] AnyModuleTest.AllMethodsThrowForEmptyAnyModule 2023-01-11T21:04:25.2805246Z [ OK ] AnyModuleTest.AllMethodsThrowForEmptyAnyModule (7 ms) 2023-01-11T21:04:25.2806129Z [ RUN ] AnyModuleTest.CanMoveAssignDifferentModules 2023-01-11T21:04:25.2806622Z [ OK ] AnyModuleTest.CanMoveAssignDifferentModules (0 ms) 2023-01-11T21:04:25.2807023Z [ RUN ] AnyModuleTest.ConstructsFromModuleHolder 2023-01-11T21:04:25.2809471Z [ OK ] AnyModuleTest.ConstructsFromModuleHolder (0 ms) 2023-01-11T21:04:25.2809871Z [ RUN ] AnyModuleTest.ConvertsVariableToTensorCorrectly 2023-01-11T21:04:25.2812690Z [ OK ] AnyModuleTest.ConvertsVariableToTensorCorrectly (0 ms) 2023-01-11T21:04:25.2813393Z [----------] 18 tests from AnyModuleTest (29 ms total) 2023-01-11T21:04:25.2813672Z 2023-01-11T21:04:25.2813956Z [----------] 12 tests from AnyValueTest 2023-01-11T21:04:25.2814807Z [ RUN ] AnyValueTest.CorrectlyAccessesIntWhenCorrectType 2023-01-11T21:04:25.2815621Z [ OK ] AnyValueTest.CorrectlyAccessesIntWhenCorrectType (0 ms) 2023-01-11T21:04:25.2816445Z [ RUN ] AnyValueTest.CorrectlyAccessesStringLiteralWhenCorrectType 2023-01-11T21:04:25.2817130Z [ OK ] AnyValueTest.CorrectlyAccessesStringLiteralWhenCorrectType (0 ms) 2023-01-11T21:04:25.2817606Z [ RUN ] AnyValueTest.CorrectlyAccessesStringWhenCorrectType 2023-01-11T21:04:25.2818066Z [ OK ] AnyValueTest.CorrectlyAccessesStringWhenCorrectType (0 ms) 2023-01-11T21:04:25.2818530Z [ RUN ] AnyValueTest.CorrectlyAccessesPointersWhenCorrectType 2023-01-11T21:04:25.2818982Z [ OK ] AnyValueTest.CorrectlyAccessesPointersWhenCorrectType (0 ms) 2023-01-11T21:04:25.2819451Z [ RUN ] AnyValueTest.CorrectlyAccessesReferencesWhenCorrectType 2023-01-11T21:04:25.2819926Z [ OK ] AnyValueTest.CorrectlyAccessesReferencesWhenCorrectType (0 ms) 2023-01-11T21:04:25.2820362Z [ RUN ] AnyValueTest.TryGetReturnsNullptrForTheWrongType 2023-01-11T21:04:25.2820797Z [ OK ] AnyValueTest.TryGetReturnsNullptrForTheWrongType (0 ms) 2023-01-11T21:04:25.2821193Z [ RUN ] AnyValueTest.GetThrowsForTheWrongType 2023-01-11T21:04:25.2850963Z [ OK ] AnyValueTest.GetThrowsForTheWrongType (3 ms) 2023-01-11T21:04:25.2851442Z [ RUN ] AnyValueTest.MoveConstructionIsAllowed 2023-01-11T21:04:25.2852015Z [ OK ] AnyValueTest.MoveConstructionIsAllowed (0 ms) 2023-01-11T21:04:25.2852611Z [ RUN ] AnyValueTest.MoveAssignmentIsAllowed 2023-01-11T21:04:25.2852999Z [ OK ] AnyValueTest.MoveAssignmentIsAllowed (0 ms) 2023-01-11T21:04:25.2853366Z [ RUN ] AnyValueTest.TypeInfoIsCorrectForInt 2023-01-11T21:04:25.2853771Z [ OK ] AnyValueTest.TypeInfoIsCorrectForInt (0 ms) 2023-01-11T21:04:25.2854158Z [ RUN ] AnyValueTest.TypeInfoIsCorrectForStringLiteral 2023-01-11T21:04:25.2854851Z [ OK ] AnyValueTest.TypeInfoIsCorrectForStringLiteral (0 ms) 2023-01-11T21:04:25.2855259Z [ RUN ] AnyValueTest.TypeInfoIsCorrectForString 2023-01-11T21:04:25.2855634Z [ OK ] AnyValueTest.TypeInfoIsCorrectForString (0 ms) 2023-01-11T21:04:25.2856150Z [----------] 12 tests from AnyValueTest (3 ms total) 2023-01-11T21:04:25.2856301Z 2023-01-11T21:04:25.2856444Z [----------] 50 tests from DataTest 2023-01-11T21:04:25.2856749Z [ RUN ] DataTest.DatasetCallsGetCorrectly 2023-01-11T21:04:25.2857099Z [ OK ] DataTest.DatasetCallsGetCorrectly (0 ms) 2023-01-11T21:04:25.2857446Z [ RUN ] DataTest.TransformCallsGetApplyCorrectly 2023-01-11T21:04:25.2857832Z [ OK ] DataTest.TransformCallsGetApplyCorrectly (0 ms) 2023-01-11T21:04:25.2858226Z [ RUN ] DataTest.ChunkDataSetWithInvalidInitParameter 2023-01-11T21:04:25.2925247Z [ OK ] DataTest.ChunkDataSetWithInvalidInitParameter (7 ms) 2023-01-11T21:04:25.2926098Z [ RUN ] DataTest.InfiniteStreamDataset 2023-01-11T21:04:25.2926720Z [ OK ] DataTest.InfiniteStreamDataset (0 ms) 2023-01-11T21:04:25.2927219Z [ RUN ] DataTest.NoSequencerIsIdentity 2023-01-11T21:04:25.2927670Z [ OK ] DataTest.NoSequencerIsIdentity (0 ms) 2023-01-11T21:04:25.2928260Z [ RUN ] DataTest.OrderedSequencerIsSetUpWell 2023-01-11T21:04:25.2928894Z [ OK ] DataTest.OrderedSequencerIsSetUpWell (0 ms) 2023-01-11T21:04:25.2929559Z [ RUN ] DataTest.OrderedSequencerReOrdersValues 2023-01-11T21:04:25.2930106Z [ OK ] DataTest.OrderedSequencerReOrdersValues (0 ms) 2023-01-11T21:04:25.2930812Z [ RUN ] DataTest.BatchLambdaAppliesFunctionToBatch 2023-01-11T21:04:25.2931384Z [ OK ] DataTest.BatchLambdaAppliesFunctionToBatch (0 ms) 2023-01-11T21:04:25.2931771Z [ RUN ] DataTest.LambdaAppliesFunctionToExample 2023-01-11T21:04:25.2932154Z [ OK ] DataTest.LambdaAppliesFunctionToExample (0 ms) 2023-01-11T21:04:25.2932493Z [ RUN ] DataTest.CollateReducesBatch 2023-01-11T21:04:25.2932800Z [ OK ] DataTest.CollateReducesBatch (0 ms) 2023-01-11T21:04:25.2933116Z [ RUN ] DataTest.CollationReducesBatch 2023-01-11T21:04:25.2933439Z [ OK ] DataTest.CollationReducesBatch (0 ms) 2023-01-11T21:04:25.2933801Z [ RUN ] DataTest.SequentialSamplerReturnsIndicesInOrder 2023-01-11T21:04:25.2934227Z [ OK ] DataTest.SequentialSamplerReturnsIndicesInOrder (0 ms) 2023-01-11T21:04:25.2934996Z [ RUN ] DataTest.SequentialSamplerReturnsLessValuesForLastBatch 2023-01-11T21:04:25.2935474Z [ OK ] DataTest.SequentialSamplerReturnsLessValuesForLastBatch (0 ms) 2023-01-11T21:04:25.2935876Z [ RUN ] DataTest.SequentialSamplerResetsWell 2023-01-11T21:04:25.2936244Z [ OK ] DataTest.SequentialSamplerResetsWell (0 ms) 2023-01-11T21:04:25.2936636Z [ RUN ] DataTest.SequentialSamplerResetsWithNewSizeWell 2023-01-11T21:04:25.2937049Z [ OK ] DataTest.SequentialSamplerResetsWithNewSizeWell (0 ms) 2023-01-11T21:04:25.2937450Z [ RUN ] DataTest.CanSaveAndLoadSequentialSampler 2023-01-11T21:04:25.4635471Z [ OK ] DataTest.CanSaveAndLoadSequentialSampler (170 ms) 2023-01-11T21:04:25.4635956Z [ RUN ] DataTest.RandomSamplerReturnsIndicesInCorrectRange 2023-01-11T21:04:25.4636771Z [ OK ] DataTest.RandomSamplerReturnsIndicesInCorrectRange (0 ms) 2023-01-11T21:04:25.4637440Z [ RUN ] DataTest.RandomSamplerReturnsLessValuesForLastBatch 2023-01-11T21:04:25.4638177Z [ OK ] DataTest.RandomSamplerReturnsLessValuesForLastBatch (0 ms) 2023-01-11T21:04:25.4638738Z [ RUN ] DataTest.RandomSamplerResetsWell 2023-01-11T21:04:25.4639717Z [ OK ] DataTest.RandomSamplerResetsWell (0 ms) 2023-01-11T21:04:25.4640100Z [ RUN ] DataTest.RandomSamplerResetsWithNewSizeWell 2023-01-11T21:04:25.4642433Z [ OK ] DataTest.RandomSamplerResetsWithNewSizeWell (0 ms) 2023-01-11T21:04:25.4642940Z [ RUN ] DataTest.SavingAndLoadingRandomSamplerYieldsSameSequence 2023-01-11T21:04:25.4689100Z [ OK ] DataTest.SavingAndLoadingRandomSamplerYieldsSameSequence (4 ms) 2023-01-11T21:04:25.4689726Z [ RUN ] DataTest.StreamSamplerReturnsTheBatchSizeAndThenRemainder 2023-01-11T21:04:25.4690235Z [ OK ] DataTest.StreamSamplerReturnsTheBatchSizeAndThenRemainder (0 ms) 2023-01-11T21:04:25.4690660Z [ RUN ] DataTest.StreamSamplerResetsWell 2023-01-11T21:04:25.4691000Z [ OK ] DataTest.StreamSamplerResetsWell (0 ms) 2023-01-11T21:04:25.4691353Z [ RUN ] DataTest.StreamSamplerResetsWithNewSizeWell 2023-01-11T21:04:25.4691757Z [ OK ] DataTest.StreamSamplerResetsWithNewSizeWell (0 ms) 2023-01-11T21:04:25.4692340Z [ RUN ] DataTest.TensorDatasetConstructsFromSingleTensor 2023-01-11T21:04:25.4699645Z [ OK ] DataTest.TensorDatasetConstructsFromSingleTensor (0 ms) 2023-01-11T21:04:25.4700292Z [ RUN ] DataTest.TensorDatasetConstructsFromInitializerListOfTensors 2023-01-11T21:04:25.4710908Z [ OK ] DataTest.TensorDatasetConstructsFromInitializerListOfTensors (1 ms) 2023-01-11T21:04:25.4711552Z [ RUN ] DataTest.StackTransformWorksForExample 2023-01-11T21:04:25.4747124Z [ OK ] DataTest.StackTransformWorksForExample (3 ms) 2023-01-11T21:04:25.4747741Z [ RUN ] DataTest.StackTransformWorksForTensorExample 2023-01-11T21:04:25.4762792Z [ OK ] DataTest.StackTransformWorksForTensorExample (1 ms) 2023-01-11T21:04:25.4763409Z [ RUN ] DataTest.TensorTransformWorksForAnyTargetType 2023-01-11T21:04:25.4775738Z [ OK ] DataTest.TensorTransformWorksForAnyTargetType (1 ms) 2023-01-11T21:04:25.4776357Z [ RUN ] DataTest.TensorLambdaWorksforAnyTargetType 2023-01-11T21:04:25.4788359Z [ OK ] DataTest.TensorLambdaWorksforAnyTargetType (1 ms) 2023-01-11T21:04:25.4788928Z [ RUN ] DataTest.NormalizeTransform 2023-01-11T21:04:25.4858670Z [ OK ] DataTest.NormalizeTransform (7 ms) 2023-01-11T21:04:25.4859226Z [ RUN ] DataTest.MapDoesNotCopy 2023-01-11T21:04:25.4861873Z [ OK ] DataTest.MapDoesNotCopy (0 ms) 2023-01-11T21:04:25.4862207Z [ RUN ] DataTest.QueuePushAndPopFromSameThread 2023-01-11T21:04:25.4862586Z [ OK ] DataTest.QueuePushAndPopFromSameThread (0 ms) 2023-01-11T21:04:25.4862980Z [ RUN ] DataTest.QueuePopWithTimeoutThrowsUponTimeout 2023-01-11T21:04:25.4980671Z [ OK ] DataTest.QueuePopWithTimeoutThrowsUponTimeout (11 ms) 2023-01-11T21:04:25.4981136Z [ RUN ] DataTest.QueuePushAndPopFromDifferentThreads 2023-01-11T21:04:25.5197195Z [ OK ] DataTest.QueuePushAndPopFromDifferentThreads (21 ms) 2023-01-11T21:04:25.5197656Z [ RUN ] DataTest.QueueClearEmptiesTheQueue 2023-01-11T21:04:25.5224540Z [ OK ] DataTest.QueueClearEmptiesTheQueue (2 ms) 2023-01-11T21:04:25.5225046Z [ RUN ] DataTest.DataShuttleCanPushAndPopJob 2023-01-11T21:04:25.5225429Z [ OK ] DataTest.DataShuttleCanPushAndPopJob (0 ms) 2023-01-11T21:04:25.5226090Z [ RUN ] DataTest.DataShuttleCanPushAndPopResult 2023-01-11T21:04:25.5226578Z [ OK ] DataTest.DataShuttleCanPushAndPopResult (0 ms) 2023-01-11T21:04:25.5227038Z [ RUN ] DataTest.DataShuttlePopResultReturnsNulloptWhenNoJobsInFlight 2023-01-11T21:04:25.5227570Z [ OK ] DataTest.DataShuttlePopResultReturnsNulloptWhenNoJobsInFlight (0 ms) 2023-01-11T21:04:25.5228051Z [ RUN ] DataTest.DataShuttleDrainMeansPopResultReturnsNullopt 2023-01-11T21:04:25.5228526Z [ OK ] DataTest.DataShuttleDrainMeansPopResultReturnsNullopt (0 ms) 2023-01-11T21:04:25.5228939Z [ RUN ] DataTest.DataShuttlePopResultTimesOut 2023-01-11T21:04:25.5344196Z [ OK ] DataTest.DataShuttlePopResultTimesOut (11 ms) 2023-01-11T21:04:25.5345135Z [ RUN ] DataTest.SharedBatchDatasetReallyIsShared 2023-01-11T21:04:25.5394571Z [ OK ] DataTest.SharedBatchDatasetReallyIsShared (5 ms) 2023-01-11T21:04:25.5395585Z [ RUN ] DataTest.SharedBatchDatasetDoesNotIncurCopyWhenPassedDatasetObject 2023-01-11T21:04:25.5396626Z [ OK ] DataTest.SharedBatchDatasetDoesNotIncurCopyWhenPassedDatasetObject (0 ms) 2023-01-11T21:04:25.5397439Z [ RUN ] DataTest.CanUseCustomTypeAsIndexType 2023-01-11T21:04:25.5398104Z [ OK ] DataTest.CanUseCustomTypeAsIndexType (0 ms) 2023-01-11T21:04:25.5398972Z [ RUN ] DataTest.DistributedRandomSamplerSingleReplicaProduceCorrectSamples 2023-01-11T21:04:25.5400197Z [ OK ] DataTest.DistributedRandomSamplerSingleReplicaProduceCorrectSamples (0 ms) 2023-01-11T21:04:25.5401248Z [ RUN ] DataTest.DistributedRandomSamplerMultiReplicaProduceCorrectSamples 2023-01-11T21:04:25.5403427Z [ OK ] DataTest.DistributedRandomSamplerMultiReplicaProduceCorrectSamples (0 ms) 2023-01-11T21:04:25.5404266Z [ RUN ] DataTest.CanSaveAndLoadDistributedRandomSampler 2023-01-11T21:04:25.5469473Z [ OK ] DataTest.CanSaveAndLoadDistributedRandomSampler (6 ms) 2023-01-11T21:04:25.5470440Z [ RUN ] DataTest.DistributedSequentialSamplerSingleReplicaProduceCorrectSamples 2023-01-11T21:04:25.5471513Z [ OK ] DataTest.DistributedSequentialSamplerSingleReplicaProduceCorrectSamples (0 ms) 2023-01-11T21:04:25.5472593Z [ RUN ] DataTest.DistributedSequentialSamplerMultiReplicaProduceCorrectSamples 2023-01-11T21:04:25.5473641Z [ OK ] DataTest.DistributedSequentialSamplerMultiReplicaProduceCorrectSamples (0 ms) 2023-01-11T21:04:25.5474595Z [ RUN ] DataTest.CanSaveAndLoadDistributedSequentialSampler 2023-01-11T21:04:25.5506442Z [ OK ] DataTest.CanSaveAndLoadDistributedSequentialSampler (3 ms) 2023-01-11T21:04:25.5507165Z [----------] 50 tests from DataTest (265 ms total) 2023-01-11T21:04:25.5507410Z 2023-01-11T21:04:25.5507670Z [----------] 37 tests from DataLoaderTest 2023-01-11T21:04:25.5508333Z [ RUN ] DataLoaderTest.DataLoaderOptionsDefaultAsExpected 2023-01-11T21:04:25.5509141Z [ OK ] DataLoaderTest.DataLoaderOptionsDefaultAsExpected (0 ms) 2023-01-11T21:04:25.5509976Z [ RUN ] DataLoaderTest.DataLoaderOptionsCoalesceOptionalValues 2023-01-11T21:04:25.5510834Z [ OK ] DataLoaderTest.DataLoaderOptionsCoalesceOptionalValues (0 ms) 2023-01-11T21:04:25.5511650Z [ RUN ] DataLoaderTest.MakeDataLoaderDefaultsAsExpected 2023-01-11T21:04:25.5512447Z [ OK ] DataLoaderTest.MakeDataLoaderDefaultsAsExpected (0 ms) 2023-01-11T21:04:25.5513434Z [ RUN ] DataLoaderTest.MakeDataLoaderThrowsWhenConstructingSamplerWithUnsizedDataset 2023-01-11T21:04:25.5525870Z [ OK ] DataLoaderTest.MakeDataLoaderThrowsWhenConstructingSamplerWithUnsizedDataset (1 ms) 2023-01-11T21:04:25.5526880Z [ RUN ] DataLoaderTest.IteratorsCompareEqualToThemselves 2023-01-11T21:04:25.5527674Z [ OK ] DataLoaderTest.IteratorsCompareEqualToThemselves (0 ms) 2023-01-11T21:04:25.5528484Z [ RUN ] DataLoaderTest.ValidIteratorsCompareUnequalToEachOther 2023-01-11T21:04:25.5531732Z [ OK ] DataLoaderTest.ValidIteratorsCompareUnequalToEachOther (0 ms) 2023-01-11T21:04:25.5532607Z [ RUN ] DataLoaderTest.SentinelIteratorsCompareEqualToEachOther 2023-01-11T21:04:25.5533481Z [ OK ] DataLoaderTest.SentinelIteratorsCompareEqualToEachOther (0 ms) 2023-01-11T21:04:25.5534619Z [ RUN ] DataLoaderTest.IteratorsCompareEqualToSentinelWhenExhausted 2023-01-11T21:04:25.5536390Z [ OK ] DataLoaderTest.IteratorsCompareEqualToSentinelWhenExhausted (0 ms) 2023-01-11T21:04:25.5537344Z [ RUN ] DataLoaderTest.IteratorsShareState 2023-01-11T21:04:25.5540403Z [ OK ] DataLoaderTest.IteratorsShareState (0 ms) 2023-01-11T21:04:25.5541137Z [ RUN ] DataLoaderTest.CanDereferenceIteratorMultipleTimes 2023-01-11T21:04:25.5541978Z [ OK ] DataLoaderTest.CanDereferenceIteratorMultipleTimes (0 ms) 2023-01-11T21:04:25.5542410Z [ RUN ] DataLoaderTest.CanUseIteratorAlgorithms 2023-01-11T21:04:25.5542777Z [ OK ] DataLoaderTest.CanUseIteratorAlgorithms (0 ms) 2023-01-11T21:04:25.5543232Z [ RUN ] DataLoaderTest.CallingBeginWhileOtherIteratorIsInFlightThrows 2023-01-11T21:04:25.5571256Z [ OK ] DataLoaderTest.CallingBeginWhileOtherIteratorIsInFlightThrows (2 ms) 2023-01-11T21:04:25.5572032Z [ RUN ] DataLoaderTest.IncrementingExhaustedValidIteratorThrows 2023-01-11T21:04:25.5589303Z [ OK ] DataLoaderTest.IncrementingExhaustedValidIteratorThrows (1 ms) 2023-01-11T21:04:25.5589928Z [ RUN ] DataLoaderTest.DereferencingExhaustedValidIteratorThrows 2023-01-11T21:04:25.5607100Z [ OK ] DataLoaderTest.DereferencingExhaustedValidIteratorThrows (1 ms) 2023-01-11T21:04:25.5607708Z [ RUN ] DataLoaderTest.IncrementingSentinelIteratorThrows 2023-01-11T21:04:25.5623768Z [ OK ] DataLoaderTest.IncrementingSentinelIteratorThrows (1 ms) 2023-01-11T21:04:25.5624386Z [ RUN ] DataLoaderTest.DereferencingSentinelIteratorThrows 2023-01-11T21:04:25.5640478Z [ OK ] DataLoaderTest.DereferencingSentinelIteratorThrows (1 ms) 2023-01-11T21:04:25.5641040Z [ RUN ] DataLoaderTest.YieldsCorrectBatchSize 2023-01-11T21:04:25.5643277Z [ OK ] DataLoaderTest.YieldsCorrectBatchSize (0 ms) 2023-01-11T21:04:25.5644027Z [ RUN ] DataLoaderTest.ReturnsLastBatchWhenSmallerThanBatchSizeWhenDropLastIsFalse 2023-01-11T21:04:25.5646542Z [ OK ] DataLoaderTest.ReturnsLastBatchWhenSmallerThanBatchSizeWhenDropLastIsFalse (0 ms) 2023-01-11T21:04:25.5647255Z [ RUN ] DataLoaderTest.DoesNotReturnLastBatchWhenSmallerThanBatchSizeWhenDropLastIsTrue 2023-01-11T21:04:25.5649301Z [ OK ] DataLoaderTest.DoesNotReturnLastBatchWhenSmallerThanBatchSizeWhenDropLastIsTrue (0 ms) 2023-01-11T21:04:25.5649888Z [ RUN ] DataLoaderTest.RespectsTimeout 2023-01-11T21:04:25.5779823Z [ OK ] DataLoaderTest.RespectsTimeout (13 ms) 2023-01-11T21:04:25.5780745Z [ RUN ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured 2023-01-11T21:04:25.5854085Z [ OK ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured (7 ms) 2023-01-11T21:04:25.5854973Z [ RUN ] DataLoaderTest.Reset 2023-01-11T21:04:25.5859868Z [ OK ] DataLoaderTest.Reset (0 ms) 2023-01-11T21:04:25.5860284Z [ RUN ] DataLoaderTest.TestExceptionsArePropagatedFromWorkers 2023-01-11T21:04:25.5870414Z [ OK ] DataLoaderTest.TestExceptionsArePropagatedFromWorkers (1 ms) 2023-01-11T21:04:25.5870972Z [ RUN ] DataLoaderTest.StatefulDatasetWithNoWorkers 2023-01-11T21:04:25.5871781Z [ OK ] DataLoaderTest.StatefulDatasetWithNoWorkers (0 ms) 2023-01-11T21:04:25.5872481Z [ RUN ] DataLoaderTest.StatefulDatasetWithManyWorkers 2023-01-11T21:04:25.5919721Z [ OK ] DataLoaderTest.StatefulDatasetWithManyWorkers (4 ms) 2023-01-11T21:04:25.5920279Z [ RUN ] DataLoaderTest.StatefulDatasetWithMap 2023-01-11T21:04:25.5929426Z [ OK ] DataLoaderTest.StatefulDatasetWithMap (0 ms) 2023-01-11T21:04:25.5929972Z [ RUN ] DataLoaderTest.StatefulDatasetWithCollate 2023-01-11T21:04:25.5943869Z [ OK ] DataLoaderTest.StatefulDatasetWithCollate (1 ms) 2023-01-11T21:04:25.5944435Z [ RUN ] DataLoaderTest.ChunkDataSetGetBatch 2023-01-11T21:04:25.6295563Z [ OK ] DataLoaderTest.ChunkDataSetGetBatch (35 ms) 2023-01-11T21:04:25.6296204Z [ RUN ] DataLoaderTest.ChunkDataSetWithBatchSizeMismatch 2023-01-11T21:04:25.6320652Z [ OK ] DataLoaderTest.ChunkDataSetWithBatchSizeMismatch (2 ms) 2023-01-11T21:04:25.6321299Z [ RUN ] DataLoaderTest.ChunkDataSetWithEmptyBatch 2023-01-11T21:04:25.6326033Z [ OK ] DataLoaderTest.ChunkDataSetWithEmptyBatch (0 ms) 2023-01-11T21:04:25.6326689Z [ RUN ] DataLoaderTest.ChunkDataSetGetBatchWithUnevenBatchSize 2023-01-11T21:04:25.6334668Z [ OK ] DataLoaderTest.ChunkDataSetGetBatchWithUnevenBatchSize (0 ms) 2023-01-11T21:04:25.6335234Z [ RUN ] DataLoaderTest.CanAccessChunkSamplerWithChunkDataSet 2023-01-11T21:04:25.6342653Z [ OK ] DataLoaderTest.CanAccessChunkSamplerWithChunkDataSet (0 ms) 2023-01-11T21:04:25.6343158Z [ RUN ] DataLoaderTest.ChunkDatasetDoesNotHang 2023-01-11T21:04:25.6348929Z [ OK ] DataLoaderTest.ChunkDatasetDoesNotHang (0 ms) 2023-01-11T21:04:25.6349453Z [ RUN ] DataLoaderTest.ChunkDatasetSave 2023-01-11T21:04:25.6699440Z [ OK ] DataLoaderTest.ChunkDatasetSave (34 ms) 2023-01-11T21:04:25.6699850Z [ RUN ] DataLoaderTest.ChunkDatasetLoad 2023-01-11T21:04:25.6737864Z [ OK ] DataLoaderTest.ChunkDatasetLoad (3 ms) 2023-01-11T21:04:25.6738436Z [ RUN ] DataLoaderTest.ChunkDatasetCrossChunkShuffle 2023-01-11T21:04:25.6762928Z [ OK ] DataLoaderTest.ChunkDatasetCrossChunkShuffle (2 ms) 2023-01-11T21:04:25.6763348Z [ RUN ] DataLoaderTest.CustomPreprocessPolicy 2023-01-11T21:04:25.6777104Z [ OK ] DataLoaderTest.CustomPreprocessPolicy (1 ms) 2023-01-11T21:04:25.6777557Z [----------] 37 tests from DataLoaderTest (127 ms total) 2023-01-11T21:04:25.6777784Z 2023-01-11T21:04:25.6777998Z [----------] 1 test from EnumTest 2023-01-11T21:04:25.6778310Z [ RUN ] EnumTest.AllEnums 2023-01-11T21:04:25.6778890Z [ OK ] EnumTest.AllEnums (0 ms) 2023-01-11T21:04:25.6779316Z [----------] 1 test from EnumTest (0 ms total) 2023-01-11T21:04:25.6779515Z 2023-01-11T21:04:25.6779770Z [----------] 6 tests from ExpandingArrayTest 2023-01-11T21:04:25.6780302Z [ RUN ] ExpandingArrayTest.CanConstructFromInitializerList 2023-01-11T21:04:25.6780929Z [ OK ] ExpandingArrayTest.CanConstructFromInitializerList (0 ms) 2023-01-11T21:04:25.6781350Z [ RUN ] ExpandingArrayTest.CanConstructFromVector 2023-01-11T21:04:25.6781742Z [ OK ] ExpandingArrayTest.CanConstructFromVector (0 ms) 2023-01-11T21:04:25.6782112Z [ RUN ] ExpandingArrayTest.CanConstructFromArray 2023-01-11T21:04:25.6782505Z [ OK ] ExpandingArrayTest.CanConstructFromArray (0 ms) 2023-01-11T21:04:25.6782908Z [ RUN ] ExpandingArrayTest.CanConstructFromSingleValue 2023-01-11T21:04:25.6783320Z [ OK ] ExpandingArrayTest.CanConstructFromSingleValue (0 ms) 2023-01-11T21:04:25.6783914Z [ RUN ] ExpandingArrayTest.ThrowsWhenConstructedWithIncorrectNumberOfArgumentsInInitializerList 2023-01-11T21:04:25.6796611Z [ OK ] ExpandingArrayTest.ThrowsWhenConstructedWithIncorrectNumberOfArgumentsInInitializerList (1 ms) 2023-01-11T21:04:25.6797313Z [ RUN ] ExpandingArrayTest.ThrowsWhenConstructedWithIncorrectNumberOfArgumentsInVector 2023-01-11T21:04:25.6811608Z [ OK ] ExpandingArrayTest.ThrowsWhenConstructedWithIncorrectNumberOfArgumentsInVector (1 ms) 2023-01-11T21:04:25.6812125Z [----------] 6 tests from ExpandingArrayTest (3 ms total) 2023-01-11T21:04:25.6812296Z 2023-01-11T21:04:25.6812434Z [----------] 10 tests from FFTTest 2023-01-11T21:04:25.6812685Z [ RUN ] FFTTest.fft 2023-01-11T21:04:25.7036646Z [ OK ] FFTTest.fft (22 ms) 2023-01-11T21:04:25.7036944Z [ RUN ] FFTTest.fft_real 2023-01-11T21:04:25.7051198Z [ OK ] FFTTest.fft_real (1 ms) 2023-01-11T21:04:25.7051474Z [ RUN ] FFTTest.fft_pad 2023-01-11T21:04:25.7078821Z [ OK ] FFTTest.fft_pad (2 ms) 2023-01-11T21:04:25.7079100Z [ RUN ] FFTTest.fft_norm 2023-01-11T21:04:25.7100510Z [ OK ] FFTTest.fft_norm (2 ms) 2023-01-11T21:04:25.7100958Z [ RUN ] FFTTest.ifft 2023-01-11T21:04:25.7118891Z [ OK ] FFTTest.ifft (1 ms) 2023-01-11T21:04:25.7119370Z [ RUN ] FFTTest.fft_ifft 2023-01-11T21:04:25.7131694Z [ OK ] FFTTest.fft_ifft (1 ms) 2023-01-11T21:04:25.7132150Z [ RUN ] FFTTest.rfft 2023-01-11T21:04:25.7146039Z [ OK ] FFTTest.rfft (1 ms) 2023-01-11T21:04:25.7146723Z [ RUN ] FFTTest.rfft_irfft 2023-01-11T21:04:25.7155727Z [ OK ] FFTTest.rfft_irfft (0 ms) 2023-01-11T21:04:25.7156218Z [ RUN ] FFTTest.ihfft 2023-01-11T21:04:25.7170646Z [ OK ] FFTTest.ihfft (1 ms) 2023-01-11T21:04:25.7171111Z [ RUN ] FFTTest.hfft_ihfft 2023-01-11T21:04:25.7184819Z [ OK ] FFTTest.hfft_ihfft (1 ms) 2023-01-11T21:04:25.7185385Z [----------] 10 tests from FFTTest (37 ms total) 2023-01-11T21:04:25.7185634Z 2023-01-11T21:04:25.7185792Z [----------] 132 tests from FunctionalTest 2023-01-11T21:04:25.7186061Z [ RUN ] FunctionalTest.Conv1d 2023-01-11T21:04:25.7220000Z [ OK ] FunctionalTest.Conv1d (3 ms) 2023-01-11T21:04:25.7220337Z [ RUN ] FunctionalTest.Conv2dEven 2023-01-11T21:04:25.7247381Z [ OK ] FunctionalTest.Conv2dEven (2 ms) 2023-01-11T21:04:25.7247695Z [ RUN ] FunctionalTest.Conv2dUneven 2023-01-11T21:04:25.7274366Z [ OK ] FunctionalTest.Conv2dUneven (2 ms) 2023-01-11T21:04:25.7274742Z [ RUN ] FunctionalTest.Conv3d 2023-01-11T21:04:25.7313405Z [ OK ] FunctionalTest.Conv3d (3 ms) 2023-01-11T21:04:25.7313757Z [ RUN ] FunctionalTest.MaxPool1d 2023-01-11T21:04:25.7320713Z [ OK ] FunctionalTest.MaxPool1d (0 ms) 2023-01-11T21:04:25.7321009Z [ RUN ] FunctionalTest.MaxPool2d 2023-01-11T21:04:25.7329356Z [ OK ] FunctionalTest.MaxPool2d (0 ms) 2023-01-11T21:04:25.7329696Z [ RUN ] FunctionalTest.MaxPool2dBackward 2023-01-11T21:04:25.7338839Z [ OK ] FunctionalTest.MaxPool2dBackward (0 ms) 2023-01-11T21:04:25.7339408Z [ RUN ] FunctionalTest.MaxPool3d 2023-01-11T21:04:25.7348009Z [ OK ] FunctionalTest.MaxPool3d (0 ms) 2023-01-11T21:04:25.7348553Z [ RUN ] FunctionalTest.AvgPool1d 2023-01-11T21:04:25.7357572Z [ OK ] FunctionalTest.AvgPool1d (0 ms) 2023-01-11T21:04:25.7358102Z [ RUN ] FunctionalTest.AvgPool2d 2023-01-11T21:04:25.7365344Z [ OK ] FunctionalTest.AvgPool2d (0 ms) 2023-01-11T21:04:25.7365893Z [ RUN ] FunctionalTest.AvgPool3d 2023-01-11T21:04:25.7373455Z [ OK ] FunctionalTest.AvgPool3d (0 ms) 2023-01-11T21:04:25.7374077Z [ RUN ] FunctionalTest.FractionalMaxPool2d 2023-01-11T21:04:25.7416418Z [ OK ] FunctionalTest.FractionalMaxPool2d (4 ms) 2023-01-11T21:04:25.7416990Z [ RUN ] FunctionalTest.FractionalMaxPool3d 2023-01-11T21:04:25.7440088Z [ OK ] FunctionalTest.FractionalMaxPool3d (2 ms) 2023-01-11T21:04:25.7440420Z [ RUN ] FunctionalTest.LPPool1d 2023-01-11T21:04:25.7455940Z [ OK ] FunctionalTest.LPPool1d (1 ms) 2023-01-11T21:04:25.7456250Z [ RUN ] FunctionalTest.LPPool2d 2023-01-11T21:04:25.7470138Z [ OK ] FunctionalTest.LPPool2d (1 ms) 2023-01-11T21:04:25.7470466Z [ RUN ] FunctionalTest.CosineSimilarity 2023-01-11T21:04:25.7487160Z [ OK ] FunctionalTest.CosineSimilarity (1 ms) 2023-01-11T21:04:25.7487782Z [ RUN ] FunctionalTest.SmoothL1LossDefaultOptions 2023-01-11T21:04:25.7504293Z [ OK ] FunctionalTest.SmoothL1LossDefaultOptions (1 ms) 2023-01-11T21:04:25.7504766Z [ RUN ] FunctionalTest.SmoothL1LossBeta 2023-01-11T21:04:25.7518552Z [ OK ] FunctionalTest.SmoothL1LossBeta (1 ms) 2023-01-11T21:04:25.7519186Z [ RUN ] FunctionalTest.SmoothL1LossNoReduction 2023-01-11T21:04:25.7532685Z [ OK ] FunctionalTest.SmoothL1LossNoReduction (1 ms) 2023-01-11T21:04:25.7533283Z [ RUN ] FunctionalTest.HuberLossDefaultOptions 2023-01-11T21:04:25.7547763Z [ OK ] FunctionalTest.HuberLossDefaultOptions (1 ms) 2023-01-11T21:04:25.7548307Z [ RUN ] FunctionalTest.HuberLossDelta 2023-01-11T21:04:25.7562244Z [ OK ] FunctionalTest.HuberLossDelta (1 ms) 2023-01-11T21:04:25.7562709Z [ RUN ] FunctionalTest.HuberLossNoReduction 2023-01-11T21:04:25.7576243Z [ OK ] FunctionalTest.HuberLossNoReduction (1 ms) 2023-01-11T21:04:25.7576650Z [ RUN ] FunctionalTest.SoftMarginLossDefaultOptions 2023-01-11T21:04:25.7599496Z [ OK ] FunctionalTest.SoftMarginLossDefaultOptions (2 ms) 2023-01-11T21:04:25.7599922Z [ RUN ] FunctionalTest.MultiLabelSoftMarginLossDefaultOptions 2023-01-11T21:04:25.8349200Z error: decoding address ranges: invalid range list offset 0x1490 2023-01-11T21:04:25.8349707Z error: decoding address ranges: invalid range list offset 0x15bc 2023-01-11T21:04:25.8350145Z error: decoding address ranges: invalid range list offset 0x15f4 2023-01-11T21:04:25.8350688Z error: decoding address ranges: invalid range list offset 0x1629 2023-01-11T21:04:25.8351732Z error: decoding address ranges: invalid range list offset 0x1640 2023-01-11T21:04:25.8352549Z error: decoding address ranges: invalid range list offset 0x1661 2023-01-11T21:04:25.8354271Z error: decoding address ranges: invalid range list offset 0x168c 2023-01-11T21:04:25.8355248Z error: decoding address ranges: invalid range list offset 0x1760 2023-01-11T21:04:25.8356248Z error: decoding address ranges: invalid range list offset 0x1796 2023-01-11T21:04:25.8357009Z error: decoding address ranges: invalid range list offset 0x1801 2023-01-11T21:04:25.8358006Z error: decoding address ranges: invalid range list offset 0x1836 2023-01-11T21:04:25.8358951Z error: decoding address ranges: invalid range list offset 0x1857 2023-01-11T21:04:25.8359861Z error: decoding address ranges: invalid range list offset 0x18a2 2023-01-11T21:04:25.8360857Z error: decoding address ranges: invalid range list offset 0x18d8 2023-01-11T21:04:25.8361835Z error: decoding address ranges: invalid range list offset 0x18f9 2023-01-11T21:04:25.8362451Z error: decoding address ranges: invalid range list offset 0x1925 2023-01-11T21:04:25.8363490Z error: decoding address ranges: invalid range list offset 0x198f 2023-01-11T21:04:25.8365125Z error: decoding address ranges: invalid range list offset 0x19c5 2023-01-11T21:04:25.8365701Z error: decoding address ranges: invalid range list offset 0x19e6 2023-01-11T21:04:25.8366230Z error: decoding address ranges: invalid range list offset 0x1a12 2023-01-11T21:04:25.8366940Z error: decoding address ranges: invalid range list offset 0x1a33 2023-01-11T21:04:25.8368421Z error: decoding address ranges: invalid range list offset 0x1a4a 2023-01-11T21:04:25.8369028Z error: decoding address ranges: invalid range list offset 0x1a61 2023-01-11T21:04:25.8369951Z error: decoding address ranges: invalid range list offset 0x1a78 2023-01-11T21:04:25.8370549Z error: decoding address ranges: invalid range list offset 0x1a8f 2023-01-11T21:04:25.8371207Z error: decoding address ranges: invalid range list offset 0x1aa6 2023-01-11T21:04:25.8372604Z error: decoding address ranges: invalid range list offset 0x1b25 2023-01-11T21:04:25.8373953Z error: decoding address ranges: invalid range list offset 0x1b7b 2023-01-11T21:04:25.8379335Z error: decoding address ranges: invalid range list offset 0x1bb6 2023-01-11T21:04:25.8379898Z error: decoding address ranges: invalid range list offset 0x1bec 2023-01-11T21:04:25.8381408Z error: decoding address ranges: invalid range list offset 0x1c26 2023-01-11T21:04:25.8382786Z error: decoding address ranges: invalid range list offset 0x1c76 2023-01-11T21:04:25.8384332Z error: decoding address ranges: invalid range list offset 0x1e7d 2023-01-11T21:04:25.8386268Z error: decoding address ranges: invalid range list offset 0x21b3 2023-01-11T21:04:25.8387415Z error: decoding address ranges: invalid range list offset 0x226e 2023-01-11T21:04:25.8389188Z error: decoding address ranges: invalid range list offset 0x3e69 2023-01-11T21:04:25.8393760Z error: decoding address ranges: invalid range list offset 0x4c18 2023-01-11T21:04:25.8397292Z error: decoding address ranges: invalid range list offset 0x527f 2023-01-11T21:04:25.8399427Z error: decoding address ranges: invalid range list offset 0x5f80 2023-01-11T21:04:25.8402019Z error: decoding address ranges: invalid range list offset 0x6288 2023-01-11T21:04:25.8404668Z error: decoding address ranges: invalid range list offset 0x7ee1 2023-01-11T21:04:25.8410840Z error: decoding address ranges: invalid range list offset 0x8084 2023-01-11T21:04:25.8413414Z error: decoding address ranges: invalid range list offset 0x82d4 2023-01-11T21:04:25.8416388Z error: decoding address ranges: invalid range list offset 0x87df 2023-01-11T21:04:25.8419532Z error: decoding address ranges: invalid range list offset 0x882c 2023-01-11T21:04:25.8422093Z error: decoding address ranges: invalid range list offset 0x88a1 2023-01-11T21:04:25.8422772Z error: decoding address ranges: invalid range list offset 0x8921 2023-01-11T21:04:25.8423501Z error: decoding address ranges: invalid range list offset 0x8981 2023-01-11T21:04:25.8424309Z error: decoding address ranges: invalid range list offset 0x89f6 2023-01-11T21:04:25.8425121Z error: decoding address ranges: invalid range list offset 0x8a56 2023-01-11T21:04:25.8426984Z error: decoding address ranges: invalid range list offset 0x9643 2023-01-11T21:04:25.8430925Z error: decoding address ranges: invalid range list offset 0xa031 2023-01-11T21:04:25.8435801Z error: decoding address ranges: invalid range list offset 0xa140 2023-01-11T21:04:25.8438066Z error: decoding address ranges: invalid range list offset 0xaf07 2023-01-11T21:04:25.8442998Z error: decoding address ranges: invalid range list offset 0xb159 2023-01-11T21:04:25.8445053Z error: decoding address ranges: invalid range list offset 0xbbdd 2023-01-11T21:04:25.8448153Z error: decoding address ranges: invalid range list offset 0xc162 2023-01-11T21:04:25.8449805Z error: decoding address ranges: invalid range list offset 0xca72 2023-01-11T21:04:25.8452682Z error: decoding address ranges: invalid range list offset 0xd23f 2023-01-11T21:04:25.8455911Z error: decoding address ranges: invalid range list offset 0xd496 2023-01-11T21:04:25.8457300Z error: decoding address ranges: invalid range list offset 0xd669 2023-01-11T21:04:25.8459443Z error: decoding address ranges: invalid range list offset 0xdc22 2023-01-11T21:04:25.8462375Z error: decoding address ranges: invalid range list offset 0xdc71 2023-01-11T21:04:25.8464190Z error: decoding address ranges: invalid range list offset 0xe056 2023-01-11T21:04:25.8468371Z error: decoding address ranges: invalid range list offset 0xe429 2023-01-11T21:04:25.8471727Z error: decoding address ranges: invalid range list offset 0xe709 2023-01-11T21:04:25.8474392Z error: decoding address ranges: invalid range list offset 0xe840 2023-01-11T21:04:25.8475998Z error: decoding address ranges: invalid range list offset 0xe882 2023-01-11T21:04:25.8477699Z error: decoding address ranges: invalid range list offset 0xebba 2023-01-11T21:04:25.8481951Z error: decoding address ranges: invalid range list offset 0xef24 2023-01-11T21:04:25.8485086Z error: decoding address ranges: invalid range list offset 0xf15c 2023-01-11T21:04:25.8487902Z error: decoding address ranges: invalid range list offset 0xf203 2023-01-11T21:04:25.8490240Z error: decoding address ranges: invalid range list offset 0xf2bb 2023-01-11T21:04:25.8492623Z error: decoding address ranges: invalid range list offset 0xf76b 2023-01-11T21:04:25.8496215Z error: decoding address ranges: invalid range list offset 0xf872 2023-01-11T21:04:25.8497574Z error: decoding address ranges: invalid range list offset 0xf8bb 2023-01-11T21:04:25.8500872Z error: decoding address ranges: invalid range list offset 0xf9e4 2023-01-11T21:04:25.8503370Z error: decoding address ranges: invalid range list offset 0x10301 2023-01-11T21:04:25.8506319Z error: decoding address ranges: invalid range list offset 0x10426 2023-01-11T21:04:25.8507313Z error: decoding address ranges: invalid range list offset 0x104b2 2023-01-11T21:04:25.8509119Z error: decoding address ranges: invalid range list offset 0x11586 2023-01-11T21:04:25.8514574Z error: decoding address ranges: invalid range list offset 0x11a21 2023-01-11T21:04:25.8516935Z error: decoding address ranges: invalid range list offset 0x121ff 2023-01-11T21:04:25.8520806Z error: decoding address ranges: invalid range list offset 0x12607 2023-01-11T21:04:25.8523816Z error: decoding address ranges: invalid range list offset 0x1302f 2023-01-11T21:04:25.8526942Z error: decoding address ranges: invalid range list offset 0x13301 2023-01-11T21:04:25.8528578Z error: decoding address ranges: invalid range list offset 0x133af 2023-01-11T21:04:25.8529441Z error: decoding address ranges: invalid range list offset 0x13488 2023-01-11T21:04:25.8531803Z error: decoding address ranges: invalid range list offset 0x13974 2023-01-11T21:04:25.8535914Z error: decoding address ranges: invalid range list offset 0x13a57 2023-01-11T21:04:25.8536649Z error: decoding address ranges: invalid range list offset 0x13ab9 2023-01-11T21:04:25.8538981Z error: decoding address ranges: invalid range list offset 0x13c1a 2023-01-11T21:04:25.8542508Z error: decoding address ranges: invalid range list offset 0x13c99 2023-01-11T21:04:25.8544544Z error: decoding address ranges: invalid range list offset 0x13ef0 2023-01-11T21:04:25.8547117Z error: decoding address ranges: invalid range list offset 0x13f83 2023-01-11T21:04:25.8548704Z error: decoding address ranges: invalid range list offset 0x140f3 2023-01-11T21:04:25.8550470Z error: decoding address ranges: invalid range list offset 0x141e1 2023-01-11T21:04:25.8552582Z error: decoding address ranges: invalid range list offset 0x1442e 2023-01-11T21:04:25.8555939Z error: decoding address ranges: invalid range list offset 0x14aa8 2023-01-11T21:04:25.8560244Z error: decoding address ranges: invalid range list offset 0x15673 2023-01-11T21:04:25.8564792Z error: decoding address ranges: invalid range list offset 0x18bf6 2023-01-11T21:04:25.8574847Z error: decoding address ranges: invalid range list offset 0x19009 2023-01-11T21:04:25.8577958Z error: decoding address ranges: invalid range list offset 0x194ee 2023-01-11T21:04:25.8581866Z error: decoding address ranges: invalid range list offset 0x1c9ef 2023-01-11T21:04:25.8591414Z error: decoding address ranges: invalid range list offset 0x1ce3f 2023-01-11T21:04:25.8593565Z error: decoding address ranges: invalid range list offset 0x1cf18 2023-01-11T21:04:25.8596190Z error: decoding address ranges: invalid range list offset 0x1d103 2023-01-11T21:04:25.8599070Z error: decoding address ranges: invalid range list offset 0x1da2f 2023-01-11T21:04:25.8602922Z error: decoding address ranges: invalid range list offset 0x2312d 2023-01-11T21:04:25.8615119Z error: decoding address ranges: invalid range list offset 0x2508a 2023-01-11T21:04:25.8621424Z error: decoding address ranges: invalid range list offset 0x257f6 2023-01-11T21:04:25.8623603Z error: decoding address ranges: invalid range list offset 0x272cb 2023-01-11T21:04:25.8630127Z error: decoding address ranges: invalid range list offset 0x27ae8 2023-01-11T21:04:25.8633276Z error: decoding address ranges: invalid range list offset 0x30283 2023-01-11T21:04:25.8647100Z error: decoding address ranges: invalid range list offset 0x389b2 2023-01-11T21:04:25.8661413Z error: decoding address ranges: invalid range list offset 0x394a0 2023-01-11T21:04:25.8664344Z error: decoding address ranges: invalid range list offset 0x39903 2023-01-11T21:04:25.8668032Z error: decoding address ranges: invalid range list offset 0x3d5d9 2023-01-11T21:04:25.8676844Z error: decoding address ranges: invalid range list offset 0x3e1c7 2023-01-11T21:04:25.8680020Z error: decoding address ranges: invalid range list offset 0x3e9d0 2023-01-11T21:04:25.8683228Z error: decoding address ranges: invalid range list offset 0x40b5a 2023-01-11T21:04:25.8692245Z error: decoding address ranges: invalid range list offset 0x47c6b 2023-01-11T21:04:25.8707198Z error: decoding address ranges: invalid range list offset 0x4a364 2023-01-11T21:04:25.8714407Z error: decoding address ranges: invalid range list offset 0x50490 2023-01-11T21:04:25.8726398Z error: decoding address ranges: invalid range list offset 0x50fe7 2023-01-11T21:04:25.8729420Z error: decoding address ranges: invalid range list offset 0x5362f 2023-01-11T21:04:25.8735587Z error: decoding address ranges: invalid range list offset 0x53d79 2023-01-11T21:04:25.8737941Z error: decoding address ranges: invalid range list offset 0x5b070 2023-01-11T21:04:25.8753749Z error: decoding address ranges: invalid range list offset 0x5dd4d 2023-01-11T21:04:25.8760712Z error: decoding address ranges: invalid range list offset 0x5e5ad 2023-01-11T21:04:25.8763686Z error: decoding address ranges: invalid range list offset 0x5f058 2023-01-11T21:04:25.8767726Z error: decoding address ranges: invalid range list offset 0x61d90 2023-01-11T21:04:25.8775302Z error: decoding address ranges: invalid range list offset 0x64b74 2023-01-11T21:04:25.8789187Z error: decoding address ranges: invalid range list offset 0x6d03f 2023-01-11T21:04:25.8812017Z error: decoding address ranges: invalid range list offset 0x7466e 2023-01-11T21:04:25.8831490Z error: decoding address ranges: invalid range list offset 0x76491 2023-01-11T21:04:25.8838133Z error: decoding address ranges: invalid range list offset 0x79c86 2023-01-11T21:04:25.8852144Z error: decoding address ranges: invalid range list offset 0x81ad6 2023-01-11T21:04:25.8872575Z error: decoding address ranges: invalid range list offset 0x89601 2023-01-11T21:04:25.8889959Z error: decoding address ranges: invalid range list offset 0x89a15 2023-01-11T21:04:25.8891534Z error: decoding address ranges: invalid range list offset 0x89bba 2023-01-11T21:04:25.8894160Z error: decoding address ranges: invalid range list offset 0x89d86 2023-01-11T21:04:25.8897214Z error: decoding address ranges: invalid range list offset 0x8e6cd 2023-01-11T21:04:25.8906091Z error: decoding address ranges: invalid range list offset 0x8ea4c 2023-01-11T21:04:26.0264301Z ================== 2023-01-11T21:04:26.0264984Z WARNING: ThreadSanitizer: data race (pid=64) 2023-01-11T21:04:26.0265569Z  Read of size 8 at 0x7ff6cf5b4760 by thread T136: 2023-01-11T21:04:26.0266067Z  #0 Sleef_expf8_u10 (libtorch_cpu.so+0xb09bdc1) 2023-01-11T21:04:26.0267520Z #1 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73c7) 2023-01-11T21:04:26.0268604Z #2 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:26.0269460Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:04:26.0269992Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:04:26.0270596Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:04:26.0271151Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:04:26.0271428Z 2023-01-11T21:04:26.0271738Z  Previous write of size 8 at 0x7ff6cf5b4760 by main thread: 2023-01-11T21:04:26.0272294Z  #0 disp_expf8_u10 (libtorch_cpu.so+0xb0a15b0) 2023-01-11T21:04:26.0272759Z #1 Sleef_expf8_u10 (libtorch_cpu.so+0xb09bdcc) 2023-01-11T21:04:26.0273808Z #2 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73c7) 2023-01-11T21:04:26.0274793Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:26.0275478Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:04:26.0276062Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8dbb4e6) 2023-01-11T21:04:26.0276507Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11f0e20) 2023-01-11T21:04:26.0277330Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__log_sigmoid_forward(at::Tensor const&))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x2c6436e) 2023-01-11T21:04:26.0278093Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x2329422) 2023-01-11T21:04:26.0279091Z #9 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&), &(torch::autograd::VariableType::(anonymous namespace)::log_sigmoid_forward(c10::DispatchKeySet, at::Tensor const&))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (c10::DispatchKeySet, at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x51e8cc8) 2023-01-11T21:04:26.0279888Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x2329111) 2023-01-11T21:04:26.0280257Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11f1a63) 2023-01-11T21:04:26.0280969Z #12 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor, c10::guts::typelist::typelist >, at::Tensor (at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x3252d3e) 2023-01-11T21:04:26.0281654Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x27b8111) 2023-01-11T21:04:26.0282105Z #14 torch::nn::functional::detail::multilabel_soft_margin_loss(at::Tensor const&, at::Tensor const&, at::Tensor const&, c10::variant) (test_api+0x7813e3) 2023-01-11T21:04:26.0282604Z #15 FunctionalTest_MultiLabelSoftMarginLossDefaultOptions_Test::TestBody() (test_api+0x5f0a7d) 2023-01-11T21:04:26.0283063Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x13200cc) 2023-01-11T21:04:26.0283440Z #17 testing::Test::Run() (test_api+0x12e361f) 2023-01-11T21:04:26.0283696Z #18 testing::TestInfo::Run() (test_api+0x12e530a) 2023-01-11T21:04:26.0283956Z #19 testing::TestSuite::Run() (test_api+0x12e6016) 2023-01-11T21:04:26.0284229Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12ff75b) 2023-01-11T21:04:26.0284704Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x132141c) 2023-01-11T21:04:26.0285143Z #22 testing::UnitTest::Run() (test_api+0x12fee50) 2023-01-11T21:04:26.0285376Z #23 main (test_api+0x35fb31) 2023-01-11T21:04:26.0285492Z 2023-01-11T21:04:26.0285776Z  Location is global 'pnt_expf8_u10' of size 8 at 0x7ff6cf5b4760 (libtorch_cpu.so+0x00000d81f760) 2023-01-11T21:04:26.0285968Z 2023-01-11T21:04:26.0286189Z  Thread T136 'PTThreadPool' (tid=344, running) created by main thread at: 2023-01-11T21:04:26.0286526Z  #0 pthread_create (test_api+0x2d5155) 2023-01-11T21:04:26.0286883Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:04:26.0287414Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:04:26.0287904Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:04:26.0288383Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:04:26.0288869Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:04:26.0289230Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:04:26.0289673Z #7 at::native::(anonymous namespace)::compute_columns2d(at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x1372e31) 2023-01-11T21:04:26.0290175Z #8 at::native::slow_conv2d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x136d5be) 2023-01-11T21:04:26.0290731Z #9 at::native::slow_conv2d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x1375543) 2023-01-11T21:04:26.0291982Z #10 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___slow_conv2d_forward(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::optional const&, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c8f277) 2023-01-11T21:04:26.0293302Z #11 at::_ops::_slow_conv2d_forward::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x206a2a0) 2023-01-11T21:04:26.0293999Z #12 at::native::thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x137909d) 2023-01-11T21:04:26.0296162Z #13 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::optional const&, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x3259027) 2023-01-11T21:04:26.0298246Z #14 at::_ops::thnn_conv2d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2069150) 2023-01-11T21:04:26.0299194Z #15 at::native::_convolution_nogroup_backend(at::Tensor const&, at::Tensor const&, at::Tensor const&, at::native::ConvBackend, at::native::ConvParams const&) (libtorch_cpu.so+0x133cdde) 2023-01-11T21:04:26.0300267Z #16 at::native::_convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x133fb8f) 2023-01-11T21:04:26.0301498Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x2dff0fe) 2023-01-11T21:04:26.0303226Z #18 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x2ebc357) 2023-01-11T21:04:26.0304840Z #19 at::_ops::_convolution::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x1fb3319) 2023-01-11T21:04:26.0305704Z #20 at::_convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x1357b6f) 2023-01-11T21:04:26.0306501Z #21 at::native::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x13373c0) 2023-01-11T21:04:26.0307439Z #22 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x2dfcab0) 2023-01-11T21:04:26.0309110Z #23 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x2eb7960) 2023-01-11T21:04:26.0311100Z #24 at::Tensor c10::Dispatcher::redispatch const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long>(c10::TypedOperatorHandle const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)> const&, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) const (libtorch_cpu.so+0x210415c) 2023-01-11T21:04:26.0312057Z #25 at::_ops::convolution::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x1fb2402) 2023-01-11T21:04:26.0312721Z #26 torch::autograd::VariableType::(anonymous namespace)::convolution(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x4f40bc8) 2023-01-11T21:04:26.0314289Z #27 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(torch::autograd::VariableType::(anonymous namespace)::convolution(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x4f3ef83) 2023-01-11T21:04:26.0315922Z #28 at::_ops::convolution::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x1fb1bc6) 2023-01-11T21:04:26.0316479Z #29 at::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0xe78789) 2023-01-11T21:04:26.0317000Z #30 at::native::conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x132373d) 2023-01-11T21:04:26.0318352Z #31 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x31dd108) 2023-01-11T21:04:26.0319695Z #32 at::_ops::conv1d::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x2732b52) 2023-01-11T21:04:26.0320676Z #33 auto torch::nn::functional::detail::conv1d(at::Tensor const&, at::Tensor const&, at::Tensor const&, torch::ExpandingArray<1ul, long>, c10::variant, torch::enumtype::kValid, torch::enumtype::kSame> const&, torch::ExpandingArray<1ul, long>, long)::'lambda'(auto const&)::operator() >(auto const&) const (test_api+0x77b0e3) 2023-01-11T21:04:26.0321225Z #34 FunctionalTest_Conv1d_Test::TestBody() (test_api+0x5c93ef) 2023-01-11T21:04:26.0321646Z #35 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x13200cc) 2023-01-11T21:04:26.0322028Z #36 testing::Test::Run() (test_api+0x12e361f) 2023-01-11T21:04:26.0322286Z #37 testing::TestInfo::Run() (test_api+0x12e530a) 2023-01-11T21:04:26.0322534Z #38 testing::TestSuite::Run() (test_api+0x12e6016) 2023-01-11T21:04:26.0322821Z #39 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12ff75b) 2023-01-11T21:04:26.0323302Z #40 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x132141c) 2023-01-11T21:04:26.0323740Z #41 testing::UnitTest::Run() (test_api+0x12fee50) 2023-01-11T21:04:26.0323964Z #42 main (test_api+0x35fb31) 2023-01-11T21:04:26.0324093Z 2023-01-11T21:04:26.0324417Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09bdc1) in Sleef_expf8_u10 2023-01-11T21:04:26.0362088Z ================== 2023-01-11T21:04:26.0362326Z ================== 2023-01-11T21:04:26.0362793Z WARNING: ThreadSanitizer: data race (pid=64) 2023-01-11T21:04:26.0363303Z  Read of size 8 at 0x7ff6cf5b48a8 by thread T136: 2023-01-11T21:04:26.0363905Z  #0 Sleef_log1pf8_u10 (libtorch_cpu.so+0xb09ca91) 2023-01-11T21:04:26.0364708Z #1 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73d8) 2023-01-11T21:04:26.0365738Z #2 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:26.0366886Z #3 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:04:26.0367459Z #4 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:04:26.0368172Z #5 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:04:26.0368663Z #6 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:04:26.0368896Z 2023-01-11T21:04:26.0369261Z  Previous write of size 8 at 0x7ff6cf5b48a8 by main thread: 2023-01-11T21:04:26.0369862Z  #0 disp_log1pf8_u10 (libtorch_cpu.so+0xb0a4bb0) 2023-01-11T21:04:26.0370134Z #1 Sleef_log1pf8_u10 (libtorch_cpu.so+0xb09ca9c) 2023-01-11T21:04:26.0370769Z #2 std::_Function_handler(at::TensorBase&, at::TensorBase&, at::TensorBase const&)::'lambda0'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x8dc73d8) 2023-01-11T21:04:26.0371388Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:26.0371872Z #4 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:04:26.0372298Z #5 at::native::(anonymous namespace)::log_sigmoid_cpu_kernel(at::TensorBase&, at::TensorBase&, at::TensorBase const&) (libtorch_cpu.so+0x8dbb4e6) 2023-01-11T21:04:26.0372687Z #6 at::native::log_sigmoid_forward_cpu(at::Tensor const&) (libtorch_cpu.so+0x11f0e20) 2023-01-11T21:04:26.0373442Z #7 c10::impl::wrap_kernel_functor_unboxed_ (at::Tensor const&), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU__log_sigmoid_forward(at::Tensor const&))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x2c6436e) 2023-01-11T21:04:26.0374198Z #8 at::_ops::log_sigmoid_forward::redispatch(c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x2329422) 2023-01-11T21:04:26.0375294Z #9 c10::impl::wrap_kernel_functor_unboxed_ (c10::DispatchKeySet, at::Tensor const&), &(torch::autograd::VariableType::(anonymous namespace)::log_sigmoid_forward(c10::DispatchKeySet, at::Tensor const&))>, std::tuple, c10::guts::typelist::typelist >, std::tuple (c10::DispatchKeySet, at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x51e8cc8) 2023-01-11T21:04:26.0376089Z #10 at::_ops::log_sigmoid_forward::call(at::Tensor const&) (libtorch_cpu.so+0x2329111) 2023-01-11T21:04:26.0376399Z #11 at::native::log_sigmoid(at::Tensor const&) (libtorch_cpu.so+0x11f1a63) 2023-01-11T21:04:26.0377106Z #12 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor, c10::guts::typelist::typelist >, at::Tensor (at::Tensor const&)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&) (libtorch_cpu.so+0x3252d3e) 2023-01-11T21:04:26.0377847Z #13 at::_ops::log_sigmoid::call(at::Tensor const&) (libtorch_cpu.so+0x27b8111) 2023-01-11T21:04:26.0378298Z #14 torch::nn::functional::detail::multilabel_soft_margin_loss(at::Tensor const&, at::Tensor const&, at::Tensor const&, c10::variant) (test_api+0x7813e3) 2023-01-11T21:04:26.0378793Z #15 FunctionalTest_MultiLabelSoftMarginLossDefaultOptions_Test::TestBody() (test_api+0x5f0a7d) 2023-01-11T21:04:26.0379260Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x13200cc) 2023-01-11T21:04:26.0379624Z #17 testing::Test::Run() (test_api+0x12e361f) 2023-01-11T21:04:26.0379920Z #18 testing::TestInfo::Run() (test_api+0x12e530a) 2023-01-11T21:04:26.0380181Z #19 testing::TestSuite::Run() (test_api+0x12e6016) 2023-01-11T21:04:26.0380471Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12ff75b) 2023-01-11T21:04:26.0380934Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x132141c) 2023-01-11T21:04:26.0381402Z #22 testing::UnitTest::Run() (test_api+0x12fee50) 2023-01-11T21:04:26.0381632Z #23 main (test_api+0x35fb31) 2023-01-11T21:04:26.0381761Z 2023-01-11T21:04:26.0382034Z  Location is global 'pnt_log1pf8_u10' of size 8 at 0x7ff6cf5b48a8 (libtorch_cpu.so+0x00000d81f8a8) 2023-01-11T21:04:26.0382230Z 2023-01-11T21:04:26.0382451Z  Thread T136 'PTThreadPool' (tid=344, running) created by main thread at: 2023-01-11T21:04:26.0382770Z  #0 pthread_create (test_api+0x2d5155) 2023-01-11T21:04:26.0383129Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:04:26.0383677Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:04:26.0384166Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:04:26.0384644Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:04:26.0385080Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:04:26.0385440Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:04:26.0385881Z #7 at::native::(anonymous namespace)::compute_columns2d(at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x1372e31) 2023-01-11T21:04:26.0386393Z #8 at::native::slow_conv2d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x136d5be) 2023-01-11T21:04:26.0387057Z #9 at::native::slow_conv2d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x1375543) 2023-01-11T21:04:26.0388296Z #10 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___slow_conv2d_forward(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::optional const&, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c8f277) 2023-01-11T21:04:26.0389706Z #11 at::_ops::_slow_conv2d_forward::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x206a2a0) 2023-01-11T21:04:26.0390201Z #12 at::native::thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x137909d) 2023-01-11T21:04:26.0391460Z #13 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::optional const&, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x3259027) 2023-01-11T21:04:26.0392771Z #14 at::_ops::thnn_conv2d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2069150) 2023-01-11T21:04:26.0393279Z #15 at::native::_convolution_nogroup_backend(at::Tensor const&, at::Tensor const&, at::Tensor const&, at::native::ConvBackend, at::native::ConvParams const&) (libtorch_cpu.so+0x133cdde) 2023-01-11T21:04:26.0393839Z #16 at::native::_convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x133fb8f) 2023-01-11T21:04:26.0394522Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x2dff0fe) 2023-01-11T21:04:26.0396254Z #18 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x2ebc357) 2023-01-11T21:04:26.0397950Z #19 at::_ops::_convolution::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x1fb3319) 2023-01-11T21:04:26.0398536Z #20 at::_convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x1357b6f) 2023-01-11T21:04:26.0399095Z #21 at::native::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x13373c0) 2023-01-11T21:04:26.0399740Z #22 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x2dfcab0) 2023-01-11T21:04:26.0401280Z #23 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x2eb7960) 2023-01-11T21:04:26.0403176Z #24 at::Tensor c10::Dispatcher::redispatch const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long>(c10::TypedOperatorHandle const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)> const&, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) const (libtorch_cpu.so+0x210415c) 2023-01-11T21:04:26.0404167Z #25 at::_ops::convolution::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x1fb2402) 2023-01-11T21:04:26.0404814Z #26 torch::autograd::VariableType::(anonymous namespace)::convolution(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x4f40bc8) 2023-01-11T21:04:26.0406414Z #27 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(torch::autograd::VariableType::(anonymous namespace)::convolution(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x4f3ef83) 2023-01-11T21:04:26.0407969Z #28 at::_ops::convolution::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x1fb1bc6) 2023-01-11T21:04:26.0408519Z #29 at::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0xe78789) 2023-01-11T21:04:26.0409020Z #30 at::native::conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x132373d) 2023-01-11T21:04:26.0410296Z #31 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x31dd108) 2023-01-11T21:04:26.0411627Z #32 at::_ops::conv1d::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x2732b52) 2023-01-11T21:04:26.0412612Z #33 auto torch::nn::functional::detail::conv1d(at::Tensor const&, at::Tensor const&, at::Tensor const&, torch::ExpandingArray<1ul, long>, c10::variant, torch::enumtype::kValid, torch::enumtype::kSame> const&, torch::ExpandingArray<1ul, long>, long)::'lambda'(auto const&)::operator() >(auto const&) const (test_api+0x77b0e3) 2023-01-11T21:04:26.0413179Z #34 FunctionalTest_Conv1d_Test::TestBody() (test_api+0x5c93ef) 2023-01-11T21:04:26.0413594Z #35 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x13200cc) 2023-01-11T21:04:26.0413971Z #36 testing::Test::Run() (test_api+0x12e361f) 2023-01-11T21:04:26.0414256Z #37 testing::TestInfo::Run() (test_api+0x12e530a) 2023-01-11T21:04:26.0414649Z #38 testing::TestSuite::Run() (test_api+0x12e6016) 2023-01-11T21:04:26.0414942Z #39 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12ff75b) 2023-01-11T21:04:26.0415419Z #40 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x132141c) 2023-01-11T21:04:26.0415842Z #41 testing::UnitTest::Run() (test_api+0x12fee50) 2023-01-11T21:04:26.0416071Z #42 main (test_api+0x35fb31) 2023-01-11T21:04:26.0416200Z 2023-01-11T21:04:26.0416532Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09ca91) in Sleef_log1pf8_u10 2023-01-11T21:04:26.0416829Z ================== 2023-01-11T21:04:26.0417183Z [ OK ] FunctionalTest.MultiLabelSoftMarginLossDefaultOptions (275 ms) 2023-01-11T21:04:26.0417602Z [ RUN ] FunctionalTest.SoftMarginLossNoReduction 2023-01-11T21:04:26.0417996Z [ OK ] FunctionalTest.SoftMarginLossNoReduction (2 ms) 2023-01-11T21:04:26.0418444Z [ RUN ] FunctionalTest.MultiLabelSoftMarginLossWeightedNoReduction 2023-01-11T21:04:26.0426364Z [ OK ] FunctionalTest.MultiLabelSoftMarginLossWeightedNoReduction (3 ms) 2023-01-11T21:04:26.0426775Z [ RUN ] FunctionalTest.PairwiseDistance 2023-01-11T21:04:26.0442227Z [ OK ] FunctionalTest.PairwiseDistance (1 ms) 2023-01-11T21:04:26.0442524Z [ RUN ] FunctionalTest.PDist 2023-01-11T21:04:26.0463759Z [ OK ] FunctionalTest.PDist (2 ms) 2023-01-11T21:04:26.0464086Z [ RUN ] FunctionalTest.AdaptiveMaxPool1d 2023-01-11T21:04:26.0473275Z [ OK ] FunctionalTest.AdaptiveMaxPool1d (0 ms) 2023-01-11T21:04:26.0473610Z [ RUN ] FunctionalTest.AdaptiveMaxPool2d 2023-01-11T21:04:26.0482220Z [ OK ] FunctionalTest.AdaptiveMaxPool2d (0 ms) 2023-01-11T21:04:26.0482558Z [ RUN ] FunctionalTest.AdaptiveMaxPool3d 2023-01-11T21:04:26.0491377Z [ OK ] FunctionalTest.AdaptiveMaxPool3d (0 ms) 2023-01-11T21:04:26.0491720Z [ RUN ] FunctionalTest.AdaptiveAvgPool1d 2023-01-11T21:04:26.0501217Z [ OK ] FunctionalTest.AdaptiveAvgPool1d (0 ms) 2023-01-11T21:04:26.0501807Z [ RUN ] FunctionalTest.AdaptiveAvgPool2d 2023-01-11T21:04:26.0509834Z [ OK ] FunctionalTest.AdaptiveAvgPool2d (0 ms) 2023-01-11T21:04:26.0510387Z [ RUN ] FunctionalTest.AdaptiveAvgPool3d 2023-01-11T21:04:26.0519393Z [ OK ] FunctionalTest.AdaptiveAvgPool3d (0 ms) 2023-01-11T21:04:26.0519928Z [ RUN ] FunctionalTest.L1Loss 2023-01-11T21:04:26.0534288Z [ OK ] FunctionalTest.L1Loss (1 ms) 2023-01-11T21:04:26.0534981Z [ RUN ] FunctionalTest.MSELoss 2023-01-11T21:04:26.0545907Z [ OK ] FunctionalTest.MSELoss (1 ms) 2023-01-11T21:04:26.0546433Z [ RUN ] FunctionalTest.BCELoss 2023-01-11T21:04:26.0559291Z [ OK ] FunctionalTest.BCELoss (1 ms) 2023-01-11T21:04:26.0559836Z [ RUN ] FunctionalTest.KLDivLoss 2023-01-11T21:04:26.0562526Z [W loss.h:57] Warning: reduction: 'mean' divides the total loss by both the batch size and the support size.'batchmean' divides only by the batch size, and aligns with the KL div math definition.'mean' will be changed to behave the same as 'batchmean' in the next major release. (function kl_div) 2023-01-11T21:04:26.0574056Z [ OK ] FunctionalTest.KLDivLoss (1 ms) 2023-01-11T21:04:26.0574760Z [ RUN ] FunctionalTest.HingeEmbeddingLoss 2023-01-11T21:04:26.0591301Z [ OK ] FunctionalTest.HingeEmbeddingLoss (1 ms) 2023-01-11T21:04:26.0591852Z [ RUN ] FunctionalTest.GridSample 2023-01-11T21:04:26.0619612Z [W vision.h:87] Warning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details. (function grid_sample) 2023-01-11T21:04:26.0654722Z [ OK ] FunctionalTest.GridSample (6 ms) 2023-01-11T21:04:26.0655287Z [ RUN ] FunctionalTest.AffineGrid 2023-01-11T21:04:26.0935238Z [ OK ] FunctionalTest.AffineGrid (27 ms) 2023-01-11T21:04:26.0935722Z [ RUN ] FunctionalTest.MultiMarginLoss 2023-01-11T21:04:26.0947855Z [ OK ] FunctionalTest.MultiMarginLoss (1 ms) 2023-01-11T21:04:26.0948417Z [ RUN ] FunctionalTest.CosineEmbeddingLoss 2023-01-11T21:04:26.0971109Z [ OK ] FunctionalTest.CosineEmbeddingLoss (2 ms) 2023-01-11T21:04:26.0971516Z [ RUN ] FunctionalTest.MultiLabelMarginLossDefaultOptions 2023-01-11T21:04:26.0988166Z [ OK ] FunctionalTest.MultiLabelMarginLossDefaultOptions (1 ms) 2023-01-11T21:04:26.0988585Z [ RUN ] FunctionalTest.MultiLabelMarginLossNoReduction 2023-01-11T21:04:26.1003976Z [ OK ] FunctionalTest.MultiLabelMarginLossNoReduction (1 ms) 2023-01-11T21:04:26.1004366Z [ RUN ] FunctionalTest.TripletMarginLoss 2023-01-11T21:04:26.1019814Z [ OK ] FunctionalTest.TripletMarginLoss (1 ms) 2023-01-11T21:04:26.1020225Z [ RUN ] FunctionalTest.TripletMarginWithDistanceLossDefaultParity 2023-01-11T21:04:26.2364193Z [ OK ] FunctionalTest.TripletMarginWithDistanceLossDefaultParity (134 ms) 2023-01-11T21:04:26.2364632Z [ RUN ] FunctionalTest.NLLLoss 2023-01-11T21:04:26.2379556Z [ OK ] FunctionalTest.NLLLoss (1 ms) 2023-01-11T21:04:26.2379866Z [ RUN ] FunctionalTest.CrossEntropy 2023-01-11T21:04:26.2420893Z [ OK ] FunctionalTest.CrossEntropy (4 ms) 2023-01-11T21:04:26.2421221Z [ RUN ] FunctionalTest.MaxUnpool1d 2023-01-11T21:04:26.2463112Z [ OK ] FunctionalTest.MaxUnpool1d (4 ms) 2023-01-11T21:04:26.2463450Z [ RUN ] FunctionalTest.MaxUnpool2d 2023-01-11T21:04:26.2496775Z [ OK ] FunctionalTest.MaxUnpool2d (3 ms) 2023-01-11T21:04:26.2497082Z [ RUN ] FunctionalTest.MaxUnpool3d 2023-01-11T21:04:26.2515829Z [ OK ] FunctionalTest.MaxUnpool3d (1 ms) 2023-01-11T21:04:26.2516116Z [ RUN ] FunctionalTest.ELU 2023-01-11T21:04:26.2729935Z [ OK ] FunctionalTest.ELU (21 ms) 2023-01-11T21:04:26.2730266Z [ RUN ] FunctionalTest.SELU 2023-01-11T21:04:26.2782880Z [ OK ] FunctionalTest.SELU (5 ms) 2023-01-11T21:04:26.2783216Z [ RUN ] FunctionalTest.GLU 2023-01-11T21:04:26.2800390Z [ OK ] FunctionalTest.GLU (1 ms) 2023-01-11T21:04:26.2800652Z [ RUN ] FunctionalTest.GELU 2023-01-11T21:04:26.2812087Z [ OK ] FunctionalTest.GELU (1 ms) 2023-01-11T21:04:26.2812552Z [ RUN ] FunctionalTest.TanhGELU 2023-01-11T21:04:26.2825086Z [ OK ] FunctionalTest.TanhGELU (1 ms) 2023-01-11T21:04:26.2825641Z [ RUN ] FunctionalTest.Hardshrink 2023-01-11T21:04:26.2927439Z [ OK ] FunctionalTest.Hardshrink (10 ms) 2023-01-11T21:04:26.2927815Z [ RUN ] FunctionalTest.OneHot 2023-01-11T21:04:26.2971683Z [ OK ] FunctionalTest.OneHot (4 ms) 2023-01-11T21:04:26.2971993Z [ RUN ] FunctionalTest.Hardtanh 2023-01-11T21:04:26.3434073Z [ OK ] FunctionalTest.Hardtanh (46 ms) 2023-01-11T21:04:26.3434365Z [ RUN ] FunctionalTest.LeakyReLU 2023-01-11T21:04:26.3581205Z [ OK ] FunctionalTest.LeakyReLU (14 ms) 2023-01-11T21:04:26.3581533Z [ RUN ] FunctionalTest.LogSigmoid 2023-01-11T21:04:26.3593521Z [ OK ] FunctionalTest.LogSigmoid (1 ms) 2023-01-11T21:04:26.3594022Z [ RUN ] FunctionalTest.GumbelSoftmax 2023-01-11T21:04:26.4089549Z [ OK ] FunctionalTest.GumbelSoftmax (49 ms) 2023-01-11T21:04:26.4089889Z [ RUN ] FunctionalTest.Softmax 2023-01-11T21:04:26.4107378Z [ OK ] FunctionalTest.Softmax (1 ms) 2023-01-11T21:04:26.4107686Z [ RUN ] FunctionalTest.Softmin 2023-01-11T21:04:26.4126284Z [ OK ] FunctionalTest.Softmin (1 ms) 2023-01-11T21:04:26.4126598Z [ RUN ] FunctionalTest.LogSoftmax 2023-01-11T21:04:26.4145062Z [ OK ] FunctionalTest.LogSoftmax (1 ms) 2023-01-11T21:04:26.4145416Z [ RUN ] FunctionalTest.PReLU 2023-01-11T21:04:26.4168171Z [ OK ] FunctionalTest.PReLU (2 ms) 2023-01-11T21:04:26.4168540Z [ RUN ] FunctionalTest.LayerNorm 2023-01-11T21:04:26.4177209Z [ OK ] FunctionalTest.LayerNorm (0 ms) 2023-01-11T21:04:26.4177583Z [ RUN ] FunctionalTest.GroupNorm 2023-01-11T21:04:26.4187006Z [ OK ] FunctionalTest.GroupNorm (0 ms) 2023-01-11T21:04:26.4187394Z [ RUN ] FunctionalTest.LocalResponseNorm 2023-01-11T21:04:26.4207527Z [ OK ] FunctionalTest.LocalResponseNorm (2 ms) 2023-01-11T21:04:26.4207905Z [ RUN ] FunctionalTest.Linear 2023-01-11T21:04:26.4243415Z [ OK ] FunctionalTest.Linear (3 ms) 2023-01-11T21:04:26.4243769Z [ RUN ] FunctionalTest.Embedding 2023-01-11T21:04:26.4255752Z [ OK ] FunctionalTest.Embedding (1 ms) 2023-01-11T21:04:26.4256131Z [ RUN ] FunctionalTest.EmbeddingBag 2023-01-11T21:04:26.4298743Z [ OK ] FunctionalTest.EmbeddingBag (4 ms) 2023-01-11T21:04:26.4299091Z [ RUN ] FunctionalTest.Bilinear 2023-01-11T21:04:26.4334225Z [ OK ] FunctionalTest.Bilinear (3 ms) 2023-01-11T21:04:26.4334760Z [ RUN ] FunctionalTest.Normalize 2023-01-11T21:04:26.4385111Z [ OK ] FunctionalTest.Normalize (5 ms) 2023-01-11T21:04:26.4385470Z [ RUN ] FunctionalTest.ReLU 2023-01-11T21:04:26.4428479Z [ OK ] FunctionalTest.ReLU (4 ms) 2023-01-11T21:04:26.4428869Z [ RUN ] FunctionalTest.ReLUDefaultOptions 2023-01-11T21:04:26.4439582Z [ OK ] FunctionalTest.ReLUDefaultOptions (1 ms) 2023-01-11T21:04:26.4439953Z [ RUN ] FunctionalTest.ReLU6 2023-01-11T21:04:26.4489804Z [ OK ] FunctionalTest.ReLU6 (4 ms) 2023-01-11T21:04:26.4490177Z [ RUN ] FunctionalTest.ReLU6DefaultOptions 2023-01-11T21:04:26.4504183Z [ OK ] FunctionalTest.ReLU6DefaultOptions (1 ms) 2023-01-11T21:04:26.4504561Z [ RUN ] FunctionalTest.RReLU 2023-01-11T21:04:26.5070456Z [ OK ] FunctionalTest.RReLU (56 ms) 2023-01-11T21:04:26.5070781Z [ RUN ] FunctionalTest.RReLUDefaultOptions 2023-01-11T21:04:26.5099188Z [ OK ] FunctionalTest.RReLUDefaultOptions (2 ms) 2023-01-11T21:04:26.5099538Z [ RUN ] FunctionalTest.CELU 2023-01-11T21:04:26.5276703Z [ OK ] FunctionalTest.CELU (17 ms) 2023-01-11T21:04:26.5277307Z [ RUN ] FunctionalTest.CELUDefaultOptions 2023-01-11T21:04:26.5296008Z [ OK ] FunctionalTest.CELUDefaultOptions (1 ms) 2023-01-11T21:04:26.5296381Z [ RUN ] FunctionalTest.PixelShuffle 2023-01-11T21:04:26.5315025Z [ OK ] FunctionalTest.PixelShuffle (1 ms) 2023-01-11T21:04:26.5315420Z [ RUN ] FunctionalTest.PixelUnshuffle 2023-01-11T21:04:26.5333475Z [ OK ] FunctionalTest.PixelUnshuffle (1 ms) 2023-01-11T21:04:26.5333846Z [ RUN ] FunctionalTest.Softplus 2023-01-11T21:04:26.5447657Z [ OK ] FunctionalTest.Softplus (11 ms) 2023-01-11T21:04:26.5448265Z [ RUN ] FunctionalTest.SoftplusDefaultOptions 2023-01-11T21:04:26.5462734Z [ OK ] FunctionalTest.SoftplusDefaultOptions (1 ms) 2023-01-11T21:04:26.5463142Z [ RUN ] FunctionalTest.Fold 2023-01-11T21:04:26.5475637Z [ OK ] FunctionalTest.Fold (1 ms) 2023-01-11T21:04:26.5476177Z [ RUN ] FunctionalTest.Unfold 2023-01-11T21:04:26.5491828Z [ OK ] FunctionalTest.Unfold (1 ms) 2023-01-11T21:04:26.5492384Z [ RUN ] FunctionalTest.Softshrink 2023-01-11T21:04:26.5578780Z [ OK ] FunctionalTest.Softshrink (8 ms) 2023-01-11T21:04:26.5579412Z [ RUN ] FunctionalTest.SoftshrinkDefaultOptions 2023-01-11T21:04:26.5591209Z [ OK ] FunctionalTest.SoftshrinkDefaultOptions (1 ms) 2023-01-11T21:04:26.5591769Z [ RUN ] FunctionalTest.Softsign 2023-01-11T21:04:26.5602939Z [ OK ] FunctionalTest.Softsign (1 ms) 2023-01-11T21:04:26.5603447Z [ RUN ] FunctionalTest.Mish 2023-01-11T21:04:26.5615301Z [ OK ] FunctionalTest.Mish (1 ms) 2023-01-11T21:04:26.5615858Z [ RUN ] FunctionalTest.Tanhshrink 2023-01-11T21:04:26.5625288Z [ OK ] FunctionalTest.Tanhshrink (1 ms) 2023-01-11T21:04:26.5625822Z [ RUN ] FunctionalTest.Threshold 2023-01-11T21:04:26.5833368Z [ OK ] FunctionalTest.Threshold (20 ms) 2023-01-11T21:04:26.5833935Z [ RUN ] FunctionalTest.BatchNorm1d 2023-01-11T21:04:26.5846743Z [ OK ] FunctionalTest.BatchNorm1d (1 ms) 2023-01-11T21:04:26.5847423Z [ RUN ] FunctionalTest.BatchNorm1dDefaultOptions 2023-01-11T21:04:26.5858935Z [ OK ] FunctionalTest.BatchNorm1dDefaultOptions (1 ms) 2023-01-11T21:04:26.5859489Z [ RUN ] FunctionalTest.BatchNorm2d 2023-01-11T21:04:26.5873148Z [ OK ] FunctionalTest.BatchNorm2d (1 ms) 2023-01-11T21:04:26.5873751Z [ RUN ] FunctionalTest.BatchNorm2dDefaultOptions 2023-01-11T21:04:26.5887070Z [ OK ] FunctionalTest.BatchNorm2dDefaultOptions (1 ms) 2023-01-11T21:04:26.5887640Z [ RUN ] FunctionalTest.BatchNorm3d 2023-01-11T21:04:26.5900936Z [ OK ] FunctionalTest.BatchNorm3d (1 ms) 2023-01-11T21:04:26.5901541Z [ RUN ] FunctionalTest.BatchNorm3dDefaultOptions 2023-01-11T21:04:26.5914316Z [ OK ] FunctionalTest.BatchNorm3dDefaultOptions (1 ms) 2023-01-11T21:04:26.5914919Z [ RUN ] FunctionalTest.InstanceNorm1d 2023-01-11T21:04:26.5946065Z [ OK ] FunctionalTest.InstanceNorm1d (3 ms) 2023-01-11T21:04:26.5946685Z [ RUN ] FunctionalTest.InstanceNorm1dDefaultOptions 2023-01-11T21:04:26.5966983Z [ OK ] FunctionalTest.InstanceNorm1dDefaultOptions (2 ms) 2023-01-11T21:04:26.5967540Z [ RUN ] FunctionalTest.InstanceNorm2d 2023-01-11T21:04:26.6000353Z [ OK ] FunctionalTest.InstanceNorm2d (3 ms) 2023-01-11T21:04:26.6000963Z [ RUN ] FunctionalTest.InstanceNorm2dDefaultOptions 2023-01-11T21:04:26.6025379Z [ OK ] FunctionalTest.InstanceNorm2dDefaultOptions (2 ms) 2023-01-11T21:04:26.6025960Z [ RUN ] FunctionalTest.InstanceNorm3d 2023-01-11T21:04:26.6073635Z [ OK ] FunctionalTest.InstanceNorm3d (4 ms) 2023-01-11T21:04:26.6074418Z [ RUN ] FunctionalTest.InstanceNorm3dDefaultOptions 2023-01-11T21:04:26.6113684Z [ OK ] FunctionalTest.InstanceNorm3dDefaultOptions (3 ms) 2023-01-11T21:04:26.6114180Z [ RUN ] FunctionalTest.Interpolate 2023-01-11T21:04:26.6123055Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:04:26.6130391Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:04:26.6142615Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:04:26.6148646Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:04:26.6160936Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:04:26.6169911Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:04:26.6186443Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:04:26.6194023Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:04:26.6383985Z [ OK ] FunctionalTest.Interpolate (26 ms) 2023-01-11T21:04:26.6384479Z [ RUN ] FunctionalTest.Pad1 2023-01-11T21:04:26.6398013Z [ OK ] FunctionalTest.Pad1 (1 ms) 2023-01-11T21:04:26.6398545Z [ RUN ] FunctionalTest.Pad2 2023-01-11T21:04:26.6422166Z [ OK ] FunctionalTest.Pad2 (2 ms) 2023-01-11T21:04:26.6422824Z [ RUN ] FunctionalTest.Pad3 2023-01-11T21:04:26.6489731Z [ OK ] FunctionalTest.Pad3 (6 ms) 2023-01-11T21:04:26.6490245Z [ RUN ] FunctionalTest.Pad4 2023-01-11T21:04:26.6514055Z [ OK ] FunctionalTest.Pad4 (2 ms) 2023-01-11T21:04:26.6514541Z [ RUN ] FunctionalTest.Pad5 2023-01-11T21:04:26.6555608Z [ OK ] FunctionalTest.Pad5 (4 ms) 2023-01-11T21:04:26.6556095Z [ RUN ] FunctionalTest.Pad6 2023-01-11T21:04:26.6584339Z [ OK ] FunctionalTest.Pad6 (2 ms) 2023-01-11T21:04:26.6584843Z [ RUN ] FunctionalTest.Pad7 2023-01-11T21:04:26.6587879Z [ OK ] FunctionalTest.Pad7 (0 ms) 2023-01-11T21:04:26.6588580Z [ RUN ] FunctionalTest.Pad8 2023-01-11T21:04:26.6591519Z [ OK ] FunctionalTest.Pad8 (0 ms) 2023-01-11T21:04:26.6592049Z [ RUN ] FunctionalTest.CTCLoss 2023-01-11T21:04:26.6745086Z ================== 2023-01-11T21:04:26.6745987Z WARNING: ThreadSanitizer: data race (pid=64) 2023-01-11T21:04:26.6746616Z  Read of size 8 at 0x7ff6cf5b4738 by thread T136: 2023-01-11T21:04:26.6747139Z  #0 Sleef_logd4_u10 (libtorch_cpu.so+0xb09bc31) 2023-01-11T21:04:26.6748011Z #1 void at::native::(anonymous namespace)::_vec_log_softmax_lastdim(double*, double*, long, long)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x858b91d) 2023-01-11T21:04:26.6749481Z #2 std::_Function_handler(double*, double*, long, long)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x858bdb6) 2023-01-11T21:04:26.6750534Z #3 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:26.6751477Z #4 std::_Function_handler const&, unsigned long)::$_3>::_M_invoke(std::_Any_data const&) (libtorch_cpu.so+0xcd5682) 2023-01-11T21:04:26.6752158Z #5 c10::ThreadPool::main_loop(unsigned long) (libc10.so+0x50ee4) 2023-01-11T21:04:26.6752835Z #6 std::thread::_State_impl)::$_0> > >::_M_run() (libc10.so+0x515b6) 2023-01-11T21:04:26.6753485Z #7 execute_native_thread_routine (libstdc++.so.6+0xdbbf3) 2023-01-11T21:04:26.6753756Z 2023-01-11T21:04:26.6754154Z  Previous write of size 8 at 0x7ff6cf5b4738 by main thread: 2023-01-11T21:04:26.6754587Z  #0 disp_logd4_u10 (libtorch_cpu.so+0xb0a0f20) 2023-01-11T21:04:26.6755042Z #1 Sleef_logd4_u10 (libtorch_cpu.so+0xb09bc3c) 2023-01-11T21:04:26.6755898Z #2 void at::native::(anonymous namespace)::_vec_log_softmax_lastdim(double*, double*, long, long)::'lambda'(long, long)::operator()(long, long) const (libtorch_cpu.so+0x858b91d) 2023-01-11T21:04:26.6757134Z #3 std::_Function_handler(double*, double*, long, long)::'lambda'(long, long)>::_M_invoke(std::_Any_data const&, long&&, long&&) (libtorch_cpu.so+0x858bdb6) 2023-01-11T21:04:26.6758097Z #4 std::_Function_handler const&)::$_0>::_M_invoke(std::_Any_data const&, int&&, unsigned long&&) (libtorch_cpu.so+0xcd596c) 2023-01-11T21:04:26.6758902Z #5 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd44f5) 2023-01-11T21:04:26.6759363Z #6 at::native::(anonymous namespace)::log_softmax_lastdim_kernel_impl(at::Tensor const&, at::Tensor const&) (libtorch_cpu.so+0x85819fd) 2023-01-11T21:04:26.6760090Z #7 at::native::structured_log_softmax_cpu_out::impl(at::Tensor const&, long, bool, at::Tensor const&) (libtorch_cpu.so+0x17e1252) 2023-01-11T21:04:26.6761142Z #8 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor, c10::guts::typelist::typelist >, at::Tensor (at::Tensor const&, long, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, bool) (libtorch_cpu.so+0x2bca026) 2023-01-11T21:04:26.6762357Z #9 at::_ops::_log_softmax::redispatch(c10::DispatchKeySet, at::Tensor const&, long, bool) (libtorch_cpu.so+0x1fd68da) 2023-01-11T21:04:26.6763203Z #10 c10::impl::wrap_kernel_functor_unboxed_, at::Tensor, c10::guts::typelist::typelist >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, long, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, bool) (libtorch_cpu.so+0x4edaef9) 2023-01-11T21:04:26.6763986Z #11 at::_ops::_log_softmax::call(at::Tensor const&, long, bool) (libtorch_cpu.so+0x1fd658b) 2023-01-11T21:04:26.6764350Z #12 at::native::log_softmax(at::Tensor const&, long, c10::optional) (libtorch_cpu.so+0x17e400b) 2023-01-11T21:04:26.6765254Z #13 c10::impl::wrap_kernel_functor_unboxed_), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd_int_log_softmax(at::Tensor const&, long, c10::optional))>, at::Tensor, c10::guts::typelist::typelist > >, at::Tensor (at::Tensor const&, long, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, long, c10::optional) (libtorch_cpu.so+0x31f8e6d) 2023-01-11T21:04:26.6766129Z #14 at::_ops::log_softmax_int::call(at::Tensor const&, long, c10::optional) (libtorch_cpu.so+0x2502ef9) 2023-01-11T21:04:26.6766471Z #15 FunctionalTest_CTCLoss_Test::TestBody() (test_api+0x70b718) 2023-01-11T21:04:26.6766890Z #16 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x13200cc) 2023-01-11T21:04:26.6767255Z #17 testing::Test::Run() (test_api+0x12e361f) 2023-01-11T21:04:26.6767510Z #18 testing::TestInfo::Run() (test_api+0x12e530a) 2023-01-11T21:04:26.6767771Z #19 testing::TestSuite::Run() (test_api+0x12e6016) 2023-01-11T21:04:26.6768055Z #20 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12ff75b) 2023-01-11T21:04:26.6768524Z #21 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x132141c) 2023-01-11T21:04:26.6768962Z #22 testing::UnitTest::Run() (test_api+0x12fee50) 2023-01-11T21:04:26.6769194Z #23 main (test_api+0x35fb31) 2023-01-11T21:04:26.6769323Z 2023-01-11T21:04:26.6769608Z  Location is global 'pnt_logd4_u10' of size 8 at 0x7ff6cf5b4738 (libtorch_cpu.so+0x00000d81f738) 2023-01-11T21:04:26.6769797Z 2023-01-11T21:04:26.6770004Z  Thread T136 'PTThreadPool' (tid=344, running) created by main thread at: 2023-01-11T21:04:26.6770387Z  #0 pthread_create (test_api+0x2d5155) 2023-01-11T21:04:26.6770752Z #1 std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (libstdc++.so.6+0xdbea9) 2023-01-11T21:04:26.6771299Z #2 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count, int&>(at::PTThreadPool*&, std::_Sp_alloc_shared_tag >, int&) (libtorch_cpu.so+0xce1794) 2023-01-11T21:04:26.6771783Z #3 at::(anonymous namespace)::create_c10_threadpool(int, int, bool) (libtorch_cpu.so+0xce05a5) 2023-01-11T21:04:26.6772285Z #4 std::_Function_handler (int, int, bool), std::shared_ptr (*)(int, int, bool)>::_M_invoke(std::_Any_data const&, int&&, int&&, bool&&) (libtorch_cpu.so+0xce1ac0) 2023-01-11T21:04:26.6772737Z #5 at::(anonymous namespace)::_get_intraop_pool() (libtorch_cpu.so+0xcd4bde) 2023-01-11T21:04:26.6773093Z #6 at::internal::invoke_parallel(long, long, long, std::function const&) (libtorch_cpu.so+0xcd4374) 2023-01-11T21:04:26.6773532Z #7 at::native::(anonymous namespace)::compute_columns2d(at::Tensor const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool) (libtorch_cpu.so+0x1372e31) 2023-01-11T21:04:26.6774041Z #8 at::native::slow_conv2d_forward_out_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef, at::Tensor&) (libtorch_cpu.so+0x136d5be) 2023-01-11T21:04:26.6774733Z #9 at::native::slow_conv2d_forward_cpu(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x1375543) 2023-01-11T21:04:26.6776234Z #10 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CPU___slow_conv2d_forward(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::optional const&, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2c8f277) 2023-01-11T21:04:26.6777565Z #11 at::_ops::_slow_conv2d_forward::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x206a2a0) 2023-01-11T21:04:26.6778067Z #12 at::native::thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x137909d) 2023-01-11T21:04:26.6779314Z #13 c10::impl::wrap_kernel_functor_unboxed_, c10::optional const&, c10::ArrayRef, c10::ArrayRef), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__thnn_conv2d(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef))>, at::Tensor, c10::guts::typelist::typelist, c10::optional const&, c10::ArrayRef, c10::ArrayRef > >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x3259027) 2023-01-11T21:04:26.6780713Z #14 at::_ops::thnn_conv2d::call(at::Tensor const&, at::Tensor const&, c10::ArrayRef, c10::optional const&, c10::ArrayRef, c10::ArrayRef) (libtorch_cpu.so+0x2069150) 2023-01-11T21:04:26.6781270Z #15 at::native::_convolution_nogroup_backend(at::Tensor const&, at::Tensor const&, at::Tensor const&, at::native::ConvBackend, at::native::ConvParams const&) (libtorch_cpu.so+0x133cdde) 2023-01-11T21:04:26.6781835Z #16 at::native::_convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x133fb8f) 2023-01-11T21:04:26.6782519Z #17 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x2dff0fe) 2023-01-11T21:04:26.6784171Z #18 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd___convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x2ebc357) 2023-01-11T21:04:26.6785788Z #19 at::_ops::_convolution::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x1fb3319) 2023-01-11T21:04:26.6786378Z #20 at::_convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long, bool, bool, bool, bool) (libtorch_cpu.so+0x1357b6f) 2023-01-11T21:04:26.6786940Z #21 at::native::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x13373c0) 2023-01-11T21:04:26.6787584Z #22 at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x2dfcab0) 2023-01-11T21:04:26.6789209Z #23 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeExplicitAutograd__convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x2eb7960) 2023-01-11T21:04:26.6791126Z #24 at::Tensor c10::Dispatcher::redispatch const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long>(c10::TypedOperatorHandle const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)> const&, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) const (libtorch_cpu.so+0x210415c) 2023-01-11T21:04:26.6792073Z #25 at::_ops::convolution::redispatch(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x1fb2402) 2023-01-11T21:04:26.6792742Z #26 torch::autograd::VariableType::(anonymous namespace)::convolution(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x4f40bc8) 2023-01-11T21:04:26.6794315Z #27 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long), &(torch::autograd::VariableType::(anonymous namespace)::convolution(c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long> >, at::Tensor (c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x4f3ef83) 2023-01-11T21:04:26.6795979Z #28 at::_ops::convolution::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0x1fb1bc6) 2023-01-11T21:04:26.6796526Z #29 at::convolution(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, bool, c10::ArrayRef, long) (libtorch_cpu.so+0xe78789) 2023-01-11T21:04:26.6797094Z #30 at::native::conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x132373d) 2023-01-11T21:04:26.6798378Z #31 c10::impl::wrap_kernel_functor_unboxed_ const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long), &(at::(anonymous namespace)::(anonymous namespace)::wrapper_CompositeImplicitAutograd__conv1d(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long))>, at::Tensor, c10::guts::typelist::typelist const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long> >, at::Tensor (at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x31dd108) 2023-01-11T21:04:26.6799717Z #32 at::_ops::conv1d::call(at::Tensor const&, at::Tensor const&, c10::optional const&, c10::ArrayRef, c10::ArrayRef, c10::ArrayRef, long) (libtorch_cpu.so+0x2732b52) 2023-01-11T21:04:26.6800683Z #33 auto torch::nn::functional::detail::conv1d(at::Tensor const&, at::Tensor const&, at::Tensor const&, torch::ExpandingArray<1ul, long>, c10::variant, torch::enumtype::kValid, torch::enumtype::kSame> const&, torch::ExpandingArray<1ul, long>, long)::'lambda'(auto const&)::operator() >(auto const&) const (test_api+0x77b0e3) 2023-01-11T21:04:26.6801245Z #34 FunctionalTest_Conv1d_Test::TestBody() (test_api+0x5c93ef) 2023-01-11T21:04:26.6801662Z #35 void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (test_api+0x13200cc) 2023-01-11T21:04:26.6802046Z #36 testing::Test::Run() (test_api+0x12e361f) 2023-01-11T21:04:26.6802287Z #37 testing::TestInfo::Run() (test_api+0x12e530a) 2023-01-11T21:04:26.6802547Z #38 testing::TestSuite::Run() (test_api+0x12e6016) 2023-01-11T21:04:26.6802837Z #39 testing::internal::UnitTestImpl::RunAllTests() (test_api+0x12ff75b) 2023-01-11T21:04:26.6803317Z #40 bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (test_api+0x132141c) 2023-01-11T21:04:26.6803748Z #41 testing::UnitTest::Run() (test_api+0x12fee50) 2023-01-11T21:04:26.6803983Z #42 main (test_api+0x35fb31) 2023-01-11T21:04:26.6804115Z 2023-01-11T21:04:26.6804441Z SUMMARY: ThreadSanitizer: data race (/opt/conda/lib/python3.7/site-packages/torch/bin/libtorch_cpu.so+0xb09bc31) in Sleef_logd4_u10 2023-01-11T21:04:26.6804740Z ================== 2023-01-11T21:04:26.6815670Z [ OK ] FunctionalTest.CTCLoss (22 ms) 2023-01-11T21:04:26.6815994Z [ RUN ] FunctionalTest.PoissonNLLLoss 2023-01-11T21:04:26.6853062Z [ OK ] FunctionalTest.PoissonNLLLoss (3 ms) 2023-01-11T21:04:26.6853389Z [ RUN ] FunctionalTest.MarginRankingLoss 2023-01-11T21:04:26.6894615Z [ OK ] FunctionalTest.MarginRankingLoss (4 ms) 2023-01-11T21:04:26.6894995Z [ RUN ] FunctionalTest.ConvTranspose1d 2023-01-11T21:04:26.6925218Z [ OK ] FunctionalTest.ConvTranspose1d (3 ms) 2023-01-11T21:04:26.6925756Z [ RUN ] FunctionalTest.ConvTranspose2dEven 2023-01-11T21:04:26.6975765Z [ OK ] FunctionalTest.ConvTranspose2dEven (5 ms) 2023-01-11T21:04:26.6976530Z [ RUN ] FunctionalTest.ConvTranspose2dUneven 2023-01-11T21:04:26.7019277Z [ OK ] FunctionalTest.ConvTranspose2dUneven (4 ms) 2023-01-11T21:04:26.7019876Z [ RUN ] FunctionalTest.ConvTranspose3d 2023-01-11T21:04:26.7053457Z [ OK ] FunctionalTest.ConvTranspose3d (3 ms) 2023-01-11T21:04:26.7054038Z [ RUN ] FunctionalTest.AlphaDropout 2023-01-11T21:04:26.7214729Z [ OK ] FunctionalTest.AlphaDropout (16 ms) 2023-01-11T21:04:26.7215223Z [ RUN ] FunctionalTest.FeatureAlphaDropout 2023-01-11T21:04:26.7372312Z [ OK ] FunctionalTest.FeatureAlphaDropout (15 ms) 2023-01-11T21:04:26.7372844Z [ RUN ] FunctionalTest.Dropout 2023-01-11T21:04:26.7432720Z [ OK ] FunctionalTest.Dropout (6 ms) 2023-01-11T21:04:26.7433274Z [ RUN ] FunctionalTest.Dropout2d 2023-01-11T21:04:26.7499207Z [ OK ] FunctionalTest.Dropout2d (6 ms) 2023-01-11T21:04:26.7499735Z [ RUN ] FunctionalTest.Dropout3d 2023-01-11T21:04:26.7561896Z [ OK ] FunctionalTest.Dropout3d (6 ms) 2023-01-11T21:04:26.7562447Z [ RUN ] FunctionalTest.isfinite 2023-01-11T21:04:26.7643868Z [ OK ] FunctionalTest.isfinite (8 ms) 2023-01-11T21:04:26.7644342Z [ RUN ] FunctionalTest.isinf 2023-01-11T21:04:26.7712193Z [ OK ] FunctionalTest.isinf (6 ms) 2023-01-11T21:04:26.7712734Z [ RUN ] FunctionalTest.AllClose 2023-01-11T21:04:26.9004443Z [ OK ] FunctionalTest.AllClose (129 ms) 2023-01-11T21:04:26.9004928Z [ RUN ] FunctionalTest.BCEWithLogitsLoss 2023-01-11T21:04:26.9249943Z [ OK ] FunctionalTest.BCEWithLogitsLoss (24 ms) 2023-01-11T21:04:26.9250594Z [----------] 132 tests from FunctionalTest (1206 ms total) 2023-01-11T21:04:26.9250761Z 2023-01-11T21:04:26.9250919Z [----------] 1 test from IntegrationTest 2023-01-11T21:04:26.9251217Z [ RUN ] IntegrationTest.CartPole 2023-01-11T21:08:11.7338456Z [ OK ] IntegrationTest.CartPole (224808 ms) 2023-01-11T21:08:11.7338877Z [----------] 1 test from IntegrationTest (224808 ms total) 2023-01-11T21:08:11.7339100Z 2023-01-11T21:08:11.7340867Z [----------] 9 tests from InitTest 2023-01-11T21:08:11.7341316Z [ RUN ] InitTest.ProducesPyTorchValues_XavierUniform 2023-01-11T21:08:11.7551828Z [ OK ] InitTest.ProducesPyTorchValues_XavierUniform (21 ms) 2023-01-11T21:08:11.7552522Z [ RUN ] InitTest.ProducesPyTorchValues_XavierNormal 2023-01-11T21:08:11.7764856Z [ OK ] InitTest.ProducesPyTorchValues_XavierNormal (21 ms) 2023-01-11T21:08:11.7765551Z [ RUN ] InitTest.ProducesPyTorchValues_KaimingNormal 2023-01-11T21:08:11.7976666Z [ OK ] InitTest.ProducesPyTorchValues_KaimingNormal (21 ms) 2023-01-11T21:08:11.7977406Z [ RUN ] InitTest.ProducesPyTorchValues_KaimingUniform 2023-01-11T21:08:11.8186418Z [ OK ] InitTest.ProducesPyTorchValues_KaimingUniform (20 ms) 2023-01-11T21:08:11.8187166Z [ RUN ] InitTest.CanInitializeTensorThatRequiresGrad 2023-01-11T21:08:11.8218050Z [ OK ] InitTest.CanInitializeTensorThatRequiresGrad (3 ms) 2023-01-11T21:08:11.8218734Z [ RUN ] InitTest.CalculateGainWithTanh 2023-01-11T21:08:11.8219062Z [ OK ] InitTest.CalculateGainWithTanh (0 ms) 2023-01-11T21:08:11.8219392Z [ RUN ] InitTest.CalculateGainWithRelu 2023-01-11T21:08:11.8219726Z [ OK ] InitTest.CalculateGainWithRelu (0 ms) 2023-01-11T21:08:11.8220047Z [ RUN ] InitTest.CalculateGainWithLeakyRelu 2023-01-11T21:08:11.8220396Z [ OK ] InitTest.CalculateGainWithLeakyRelu (0 ms) 2023-01-11T21:08:11.8220758Z [ RUN ] InitTest.CanInitializeCnnWithOrthogonal 2023-01-11T21:08:11.8231952Z [ OK ] InitTest.CanInitializeCnnWithOrthogonal (1 ms) 2023-01-11T21:08:11.8232794Z [----------] 9 tests from InitTest (89 ms total) 2023-01-11T21:08:11.8232957Z 2023-01-11T21:08:11.8233121Z [----------] 6 tests from TorchScriptTest 2023-01-11T21:08:11.8233484Z [ RUN ] TorchScriptTest.CanCompileMultipleFunctions 2023-01-11T21:08:12.4528498Z [ OK ] TorchScriptTest.CanCompileMultipleFunctions (629 ms) 2023-01-11T21:08:12.4528985Z [ RUN ] TorchScriptTest.TestNestedIValueModuleArgMatching 2023-01-11T21:08:12.4661000Z [ OK ] TorchScriptTest.TestNestedIValueModuleArgMatching (13 ms) 2023-01-11T21:08:12.4661412Z [ RUN ] TorchScriptTest.TestDictArgMatching 2023-01-11T21:08:12.4702359Z [ OK ] TorchScriptTest.TestDictArgMatching (4 ms) 2023-01-11T21:08:12.4702722Z [ RUN ] TorchScriptTest.TestTupleArgMatching 2023-01-11T21:08:12.4724273Z [ OK ] TorchScriptTest.TestTupleArgMatching (2 ms) 2023-01-11T21:08:12.4724663Z [ RUN ] TorchScriptTest.TestOptionalArgMatching 2023-01-11T21:08:12.4796588Z [ OK ] TorchScriptTest.TestOptionalArgMatching (7 ms) 2023-01-11T21:08:12.4797177Z [ RUN ] TorchScriptTest.TestPickle 2023-01-11T21:08:12.4797679Z [ OK ] TorchScriptTest.TestPickle (0 ms) 2023-01-11T21:08:12.4798330Z [----------] 6 tests from TorchScriptTest (656 ms total) 2023-01-11T21:08:12.4798567Z 2023-01-11T21:08:12.4798723Z [----------] 3 tests from MakeUniqueTest 2023-01-11T21:08:12.4799035Z [ RUN ] MakeUniqueTest.ForwardRvaluesCorrectly 2023-01-11T21:08:12.4799408Z [ OK ] MakeUniqueTest.ForwardRvaluesCorrectly (0 ms) 2023-01-11T21:08:12.4799779Z [ RUN ] MakeUniqueTest.ForwardLvaluesCorrectly 2023-01-11T21:08:12.4800288Z [ OK ] MakeUniqueTest.ForwardLvaluesCorrectly (0 ms) 2023-01-11T21:08:12.4800777Z [ RUN ] MakeUniqueTest.CanConstructUniquePtrOfArray 2023-01-11T21:08:12.4801232Z [ OK ] MakeUniqueTest.CanConstructUniquePtrOfArray (0 ms) 2023-01-11T21:08:12.4801805Z [----------] 3 tests from MakeUniqueTest (0 ms total) 2023-01-11T21:08:12.4802029Z 2023-01-11T21:08:12.4802218Z [----------] 2 tests from MetaTensorTest 2023-01-11T21:08:12.4802542Z [ RUN ] MetaTensorTest.MetaDeviceApi 2023-01-11T21:08:12.4802973Z [ OK ] MetaTensorTest.MetaDeviceApi (0 ms) 2023-01-11T21:08:12.4803431Z [ RUN ] MetaTensorTest.MetaNamespaceApi 2023-01-11T21:08:12.4803778Z [ OK ] MetaTensorTest.MetaNamespaceApi (0 ms) 2023-01-11T21:08:12.4804161Z [----------] 2 tests from MetaTensorTest (0 ms total) 2023-01-11T21:08:12.4804332Z 2023-01-11T21:08:12.4804489Z [----------] 2 tests from UtilsTest 2023-01-11T21:08:12.4804738Z [ RUN ] UtilsTest.WarnOnce 2023-01-11T21:08:12.4805125Z [ OK ] UtilsTest.WarnOnce (0 ms) 2023-01-11T21:08:12.4805442Z [ RUN ] UtilsTest.AmbiguousOperatorDefaults 2023-01-11T21:08:12.4805797Z [ OK ] UtilsTest.AmbiguousOperatorDefaults (0 ms) 2023-01-11T21:08:12.4806133Z [----------] 2 tests from UtilsTest (0 ms total) 2023-01-11T21:08:12.4806517Z 2023-01-11T21:08:12.4806662Z [----------] 1 test from NoGradTest 2023-01-11T21:08:12.4806965Z [ RUN ] NoGradTest.SetsGradModeCorrectly 2023-01-11T21:08:12.4845270Z [ OK ] NoGradTest.SetsGradModeCorrectly (4 ms) 2023-01-11T21:08:12.4845682Z [----------] 1 test from NoGradTest (4 ms total) 2023-01-11T21:08:12.4845833Z 2023-01-11T21:08:12.4845982Z [----------] 3 tests from AutogradTest 2023-01-11T21:08:12.4846289Z [ RUN ] AutogradTest.CanTakeDerivatives 2023-01-11T21:08:12.4857550Z [ OK ] AutogradTest.CanTakeDerivatives (1 ms) 2023-01-11T21:08:12.4857945Z [ RUN ] AutogradTest.CanTakeDerivativesOfZeroDimTensors 2023-01-11T21:08:12.4870134Z [ OK ] AutogradTest.CanTakeDerivativesOfZeroDimTensors (1 ms) 2023-01-11T21:08:12.4870544Z [ RUN ] AutogradTest.CanPassCustomGradientInputs 2023-01-11T21:08:12.4884151Z [ OK ] AutogradTest.CanPassCustomGradientInputs (1 ms) 2023-01-11T21:08:12.4884710Z [----------] 3 tests from AutogradTest (3 ms total) 2023-01-11T21:08:12.4884881Z 2023-01-11T21:08:12.4885052Z [----------] 1 test from OptionalArrayRefTest 2023-01-11T21:08:12.4885380Z [ RUN ] OptionalArrayRefTest.DanglingPointerFix 2023-01-11T21:08:12.4885760Z [ OK ] OptionalArrayRefTest.DanglingPointerFix (0 ms) 2023-01-11T21:08:12.4886139Z [----------] 1 test from OptionalArrayRefTest (0 ms total) 2023-01-11T21:08:12.4886334Z 2023-01-11T21:08:12.4886507Z [----------] 52 tests from ModuleTest 2023-01-11T21:08:12.4886887Z [ RUN ] ModuleTest.CanEnableAndDisableTrainingMode 2023-01-11T21:08:12.4887590Z [ OK ] ModuleTest.CanEnableAndDisableTrainingMode (0 ms) 2023-01-11T21:08:12.4887922Z [ RUN ] ModuleTest.ZeroGrad 2023-01-11T21:08:12.4904758Z [ OK ] ModuleTest.ZeroGrad (1 ms) 2023-01-11T21:08:12.4905074Z [ RUN ] ModuleTest.ZeroGradWithUndefined 2023-01-11T21:08:12.4912966Z [ OK ] ModuleTest.ZeroGradWithUndefined (0 ms) 2023-01-11T21:08:12.4913382Z [ RUN ] ModuleTest.RegisterModuleThrowsForEmptyOrDottedName 2023-01-11T21:08:12.4950732Z [ OK ] ModuleTest.RegisterModuleThrowsForEmptyOrDottedName (3 ms) 2023-01-11T21:08:12.4951205Z [ RUN ] ModuleTest.RegisterModuleThrowsForDuplicateModuleName 2023-01-11T21:08:12.4972143Z [ OK ] ModuleTest.RegisterModuleThrowsForDuplicateModuleName (2 ms) 2023-01-11T21:08:12.4972592Z [ RUN ] ModuleTest.ReplaceModuleThrowsForUnknownModuleName 2023-01-11T21:08:12.4992615Z [ OK ] ModuleTest.ReplaceModuleThrowsForUnknownModuleName (2 ms) 2023-01-11T21:08:12.4992989Z [ RUN ] ModuleTest.ReplaceModule 2023-01-11T21:08:12.4995771Z [ OK ] ModuleTest.ReplaceModule (0 ms) 2023-01-11T21:08:12.4996063Z [ RUN ] ModuleTest.UnregisterModule 2023-01-11T21:08:12.5018141Z [ OK ] ModuleTest.UnregisterModule (2 ms) 2023-01-11T21:08:12.5018551Z [ RUN ] ModuleTest.RegisterParameterThrowsForEmptyOrDottedName 2023-01-11T21:08:12.5059400Z [ OK ] ModuleTest.RegisterParameterThrowsForEmptyOrDottedName (4 ms) 2023-01-11T21:08:12.5059898Z [ RUN ] ModuleTest.RegisterParameterThrowsForDuplicateModuleName 2023-01-11T21:08:12.5086218Z [ OK ] ModuleTest.RegisterParameterThrowsForDuplicateModuleName (2 ms) 2023-01-11T21:08:12.5086851Z [ RUN ] ModuleTest.RegisterParameterUndefinedTensor 2023-01-11T21:08:12.5087329Z [ OK ] ModuleTest.RegisterParameterUndefinedTensor (0 ms) 2023-01-11T21:08:12.5087762Z [ RUN ] ModuleTest.RegisterBufferThrowsForEmptyOrDottedName 2023-01-11T21:08:12.5128793Z [ OK ] ModuleTest.RegisterBufferThrowsForEmptyOrDottedName (4 ms) 2023-01-11T21:08:12.5129316Z [ RUN ] ModuleTest.RegisterBufferThrowsForDuplicateModuleName 2023-01-11T21:08:12.5155956Z [ OK ] ModuleTest.RegisterBufferThrowsForDuplicateModuleName (2 ms) 2023-01-11T21:08:12.5156517Z [ RUN ] ModuleTest.CanGetName 2023-01-11T21:08:12.5156815Z [ OK ] ModuleTest.CanGetName (0 ms) 2023-01-11T21:08:12.5157121Z [ RUN ] ModuleTest.AsCastsModulesCorrectly 2023-01-11T21:08:12.5158590Z [ OK ] ModuleTest.AsCastsModulesCorrectly (0 ms) 2023-01-11T21:08:12.5159027Z [ RUN ] ModuleTest.DeviceOrDtypeConversionSkipsUndefinedTensor 2023-01-11T21:08:12.5164559Z [ OK ] ModuleTest.DeviceOrDtypeConversionSkipsUndefinedTensor (0 ms) 2023-01-11T21:08:12.5165054Z [ RUN ] ModuleTest.ParametersAndBuffersAccessorSkipsUndefinedTensor 2023-01-11T21:08:12.5169536Z [ OK ] ModuleTest.ParametersAndBuffersAccessorSkipsUndefinedTensor (0 ms) 2023-01-11T21:08:12.5170115Z [ RUN ] ModuleTest.CallingCloneOnModuleThatDoesNotOverrideCloneThrows 2023-01-11T21:08:12.5190500Z [ OK ] ModuleTest.CallingCloneOnModuleThatDoesNotOverrideCloneThrows (2 ms) 2023-01-11T21:08:12.5191181Z [ RUN ] ModuleTest.CallingCloneOnModuleThatDoesOverrideCloneDoesNotThrow 2023-01-11T21:08:12.5192258Z [ OK ] ModuleTest.CallingCloneOnModuleThatDoesOverrideCloneDoesNotThrow (0 ms) 2023-01-11T21:08:12.5192769Z [ RUN ] ModuleTest.CloneCreatesDistinctParameters 2023-01-11T21:08:12.5289287Z [ OK ] ModuleTest.CloneCreatesDistinctParameters (9 ms) 2023-01-11T21:08:12.5289927Z [ RUN ] ModuleTest.ClonePreservesExternalReferences 2023-01-11T21:08:12.5309261Z [ OK ] ModuleTest.ClonePreservesExternalReferences (1 ms) 2023-01-11T21:08:12.5309901Z [ RUN ] ModuleTest.CloneCopiesTheValuesOfVariablesOfSubmodules 2023-01-11T21:08:12.5324371Z [ OK ] ModuleTest.CloneCopiesTheValuesOfVariablesOfSubmodules (1 ms) 2023-01-11T21:08:12.5324927Z [ RUN ] ModuleTest.HasCorrectNumberOfParameters 2023-01-11T21:08:12.5327190Z [ OK ] ModuleTest.HasCorrectNumberOfParameters (0 ms) 2023-01-11T21:08:12.5327808Z [ RUN ] ModuleTest.ContainsParametersWithTheCorrectName 2023-01-11T21:08:12.5329877Z [ OK ] ModuleTest.ContainsParametersWithTheCorrectName (0 ms) 2023-01-11T21:08:12.5330460Z [ RUN ] ModuleTest.HasCorrectNumberOfBuffers 2023-01-11T21:08:12.5332547Z [ OK ] ModuleTest.HasCorrectNumberOfBuffers (0 ms) 2023-01-11T21:08:12.5333157Z [ RUN ] ModuleTest.ContainsBuffersWithTheCorrectName 2023-01-11T21:08:12.5335356Z [ OK ] ModuleTest.ContainsBuffersWithTheCorrectName (0 ms) 2023-01-11T21:08:12.5336315Z [ RUN ] ModuleTest.DefaultConstructorOfModuleHolderCallsDefaultConstructorOfImpl 2023-01-11T21:08:12.5337123Z [ OK ] ModuleTest.DefaultConstructorOfModuleHolderCallsDefaultConstructorOfImpl (0 ms) 2023-01-11T21:08:12.5337730Z [ RUN ] ModuleTest.ValueConstructorOfModuleHolderCallsCorrectConstructorInImpl 2023-01-11T21:08:12.5338314Z [ OK ] ModuleTest.ValueConstructorOfModuleHolderCallsCorrectConstructorInImpl (0 ms) 2023-01-11T21:08:12.5338870Z [ RUN ] ModuleTest.NullptrConstructorLeavesTheModuleHolderInEmptyState 2023-01-11T21:08:12.5351882Z [ OK ] ModuleTest.NullptrConstructorLeavesTheModuleHolderInEmptyState (1 ms) 2023-01-11T21:08:12.5352507Z [ RUN ] ModuleTest.ModulesReturnsExpectedSubmodulesForFlatModel 2023-01-11T21:08:12.5357667Z [ OK ] ModuleTest.ModulesReturnsExpectedSubmodulesForFlatModel (0 ms) 2023-01-11T21:08:12.5358304Z [ RUN ] ModuleTest.ModulesExcludesSelfWhenIncludeSelfSetToFalse 2023-01-11T21:08:12.5362758Z [ OK ] ModuleTest.ModulesExcludesSelfWhenIncludeSelfSetToFalse (0 ms) 2023-01-11T21:08:12.5363442Z [ RUN ] ModuleTest.NamedModulesReturnsExpectedNamedSubmodulesForFlatModel 2023-01-11T21:08:12.5368145Z [ OK ] ModuleTest.NamedModulesReturnsExpectedNamedSubmodulesForFlatModel (0 ms) 2023-01-11T21:08:12.5368795Z [ RUN ] ModuleTest.NamedModulesExcludesSelfWhenIncludeSelfSetToFalse 2023-01-11T21:08:12.5373322Z [ OK ] ModuleTest.NamedModulesExcludesSelfWhenIncludeSelfSetToFalse (0 ms) 2023-01-11T21:08:12.5373951Z [ RUN ] ModuleTest.ChildrenReturnsExpectedSubmodulesForFlatModel 2023-01-11T21:08:12.5378769Z [ OK ] ModuleTest.ChildrenReturnsExpectedSubmodulesForFlatModel (0 ms) 2023-01-11T21:08:12.5379451Z [ RUN ] ModuleTest.NamedChildrenReturnsExpectedNamedSubmodulesForFlatModel 2023-01-11T21:08:12.5384109Z [ OK ] ModuleTest.NamedChildrenReturnsExpectedNamedSubmodulesForFlatModel (0 ms) 2023-01-11T21:08:12.5384851Z [ RUN ] ModuleTest.ParametersReturnsExpectedTensorsForFlatModel 2023-01-11T21:08:12.5386353Z [ OK ] ModuleTest.ParametersReturnsExpectedTensorsForFlatModel (0 ms) 2023-01-11T21:08:12.5387028Z [ RUN ] ModuleTest.NamedParametersReturnsExpectedTensorsForFlatModel 2023-01-11T21:08:12.5388512Z [ OK ] ModuleTest.NamedParametersReturnsExpectedTensorsForFlatModel (0 ms) 2023-01-11T21:08:12.5389135Z [ RUN ] ModuleTest.BuffersReturnsExpectedTensorsForFlatModel 2023-01-11T21:08:12.5390741Z [ OK ] ModuleTest.BuffersReturnsExpectedTensorsForFlatModel (0 ms) 2023-01-11T21:08:12.5391406Z [ RUN ] ModuleTest.NamedBuffersReturnsExpectedTensorsForFlatModel 2023-01-11T21:08:12.5392791Z [ OK ] ModuleTest.NamedBuffersReturnsExpectedTensorsForFlatModel (0 ms) 2023-01-11T21:08:12.5393453Z [ RUN ] ModuleTest.ModulesReturnsExpectedSubmodulesForDeepModel 2023-01-11T21:08:12.5397298Z [ OK ] ModuleTest.ModulesReturnsExpectedSubmodulesForDeepModel (0 ms) 2023-01-11T21:08:12.5397991Z [ RUN ] ModuleTest.NamedModulesReturnsExpectedNamedSubmodulesForDeepModel 2023-01-11T21:08:12.5401846Z [ OK ] ModuleTest.NamedModulesReturnsExpectedNamedSubmodulesForDeepModel (0 ms) 2023-01-11T21:08:12.5402511Z [ RUN ] ModuleTest.ChildrensReturnsExpectedSubmodulesForDeepModel 2023-01-11T21:08:12.5405435Z [ OK ] ModuleTest.ChildrensReturnsExpectedSubmodulesForDeepModel (0 ms) 2023-01-11T21:08:12.5406144Z [ RUN ] ModuleTest.NamedChildrensReturnsExpectedNamedSubmodulesForDeepModel 2023-01-11T21:08:12.5409240Z [ OK ] ModuleTest.NamedChildrensReturnsExpectedNamedSubmodulesForDeepModel (0 ms) 2023-01-11T21:08:12.5409840Z [ RUN ] ModuleTest.ModuleApplyIteratesCorreclty 2023-01-11T21:08:12.5412954Z [ OK ] ModuleTest.ModuleApplyIteratesCorreclty (0 ms) 2023-01-11T21:08:12.5413582Z [ RUN ] ModuleTest.ConstModuleApplyIteratesCorreclty 2023-01-11T21:08:12.5416859Z [ OK ] ModuleTest.ConstModuleApplyIteratesCorreclty (0 ms) 2023-01-11T21:08:12.5417476Z [ RUN ] ModuleTest.NamedModuleApplyIteratesCorreclty 2023-01-11T21:08:12.5420828Z [ OK ] ModuleTest.NamedModuleApplyIteratesCorreclty (0 ms) 2023-01-11T21:08:12.5421452Z [ RUN ] ModuleTest.ConstNamedModuleApplyIteratesCorreclty 2023-01-11T21:08:12.5424874Z [ OK ] ModuleTest.ConstNamedModuleApplyIteratesCorreclty (0 ms) 2023-01-11T21:08:12.5425497Z [ RUN ] ModuleTest.ModulePointerApplyIteratesCorreclty 2023-01-11T21:08:12.5428599Z [ OK ] ModuleTest.ModulePointerApplyIteratesCorreclty (0 ms) 2023-01-11T21:08:12.5429236Z [ RUN ] ModuleTest.NamedModulePointerApplyIteratesCorreclty 2023-01-11T21:08:12.5432544Z [ OK ] ModuleTest.NamedModulePointerApplyIteratesCorreclty (0 ms) 2023-01-11T21:08:12.5433229Z [ RUN ] ModuleTest.ThrowsWhenAttemptingtoGetTopLevelModuleAsSharedPtr 2023-01-11T21:08:12.5469008Z [ OK ] ModuleTest.ThrowsWhenAttemptingtoGetTopLevelModuleAsSharedPtr (3 ms) 2023-01-11T21:08:12.5469892Z [ RUN ] ModuleTest.PrettyPrint 2023-01-11T21:08:12.5470267Z [ OK ] ModuleTest.PrettyPrint (0 ms) 2023-01-11T21:08:12.5470840Z [ RUN ] ModuleTest.CanCallForwardOnNonTensorForwardThroughPimpl 2023-01-11T21:08:12.5471396Z [ OK ] ModuleTest.CanCallForwardOnNonTensorForwardThroughPimpl (0 ms) 2023-01-11T21:08:12.5471995Z [----------] 52 tests from ModuleTest (58 ms total) 2023-01-11T21:08:12.5472164Z 2023-01-11T21:08:12.5472321Z [----------] 11 tests from ModuleDictTest 2023-01-11T21:08:12.5472645Z [ RUN ] ModuleDictTest.ConstructsFromList 2023-01-11T21:08:12.5473097Z [ OK ] ModuleDictTest.ConstructsFromList (0 ms) 2023-01-11T21:08:12.5473582Z [ RUN ] ModuleDictTest.ConstructsFromordereddict 2023-01-11T21:08:12.5474024Z [ OK ] ModuleDictTest.ConstructsFromordereddict (0 ms) 2023-01-11T21:08:12.5474410Z [ RUN ] ModuleDictTest.UpdatePopClearContains 2023-01-11T21:08:12.5491861Z [ OK ] ModuleDictTest.UpdatePopClearContains (1 ms) 2023-01-11T21:08:12.5492251Z [ RUN ] ModuleDictTest.UpdateExist 2023-01-11T21:08:12.5494061Z [ OK ] ModuleDictTest.UpdateExist (0 ms) 2023-01-11T21:08:12.5494498Z [ RUN ] ModuleDictTest.Keys 2023-01-11T21:08:12.5517642Z [ OK ] ModuleDictTest.Keys (2 ms) 2023-01-11T21:08:12.5518084Z [ RUN ] ModuleDictTest.Values 2023-01-11T21:08:12.5518575Z [ OK ] ModuleDictTest.Values (0 ms) 2023-01-11T21:08:12.5518959Z [ RUN ] ModuleDictTest.SanityCheckForHoldingStandardModules 2023-01-11T21:08:12.5534540Z [ OK ] ModuleDictTest.SanityCheckForHoldingStandardModules (1 ms) 2023-01-11T21:08:12.5534963Z [ RUN ] ModuleDictTest.HasReferenceSemantics 2023-01-11T21:08:12.5538820Z [ OK ] ModuleDictTest.HasReferenceSemantics (0 ms) 2023-01-11T21:08:12.5539217Z [ RUN ] ModuleDictTest.IsCloneable 2023-01-11T21:08:12.5591924Z [ OK ] ModuleDictTest.IsCloneable (5 ms) 2023-01-11T21:08:12.5592355Z [ RUN ] ModuleDictTest.RegistersElementsAsSubmodules 2023-01-11T21:08:12.5605814Z [ OK ] ModuleDictTest.RegistersElementsAsSubmodules (1 ms) 2023-01-11T21:08:12.5606260Z [ RUN ] ModuleDictTest.PrettyPrintModuleDict 2023-01-11T21:08:12.5622664Z [ OK ] ModuleDictTest.PrettyPrintModuleDict (1 ms) 2023-01-11T21:08:12.5623282Z [----------] 11 tests from ModuleDictTest (15 ms total) 2023-01-11T21:08:12.5623495Z 2023-01-11T21:08:12.5623752Z [----------] 15 tests from ModuleListTest 2023-01-11T21:08:12.5624162Z [ RUN ] ModuleListTest.ConstructsFromSharedPointer 2023-01-11T21:08:12.5624653Z [ OK ] ModuleListTest.ConstructsFromSharedPointer (0 ms) 2023-01-11T21:08:12.5625265Z [ RUN ] ModuleListTest.ConstructsFromConcreteType 2023-01-11T21:08:12.5625724Z [ OK ] ModuleListTest.ConstructsFromConcreteType (0 ms) 2023-01-11T21:08:12.5626158Z [ RUN ] ModuleListTest.ConstructsFromModuleHolder 2023-01-11T21:08:12.5626629Z [ OK ] ModuleListTest.ConstructsFromModuleHolder (0 ms) 2023-01-11T21:08:12.5626986Z [ RUN ] ModuleListTest.PushBackAddsAnElement 2023-01-11T21:08:12.5628870Z [ OK ] ModuleListTest.PushBackAddsAnElement (0 ms) 2023-01-11T21:08:12.5629207Z [ RUN ] ModuleListTest.Insertion 2023-01-11T21:08:12.5630249Z [ OK ] ModuleListTest.Insertion (0 ms) 2023-01-11T21:08:12.5630559Z [ RUN ] ModuleListTest.AccessWithAt 2023-01-11T21:08:12.5661105Z [ OK ] ModuleListTest.AccessWithAt (2 ms) 2023-01-11T21:08:12.5661583Z [ RUN ] ModuleListTest.AccessWithPtr 2023-01-11T21:08:12.5690671Z [ OK ] ModuleListTest.AccessWithPtr (2 ms) 2023-01-11T21:08:12.5691223Z [ RUN ] ModuleListTest.SanityCheckForHoldingStandardModules 2023-01-11T21:08:12.5706657Z [ OK ] ModuleListTest.SanityCheckForHoldingStandardModules (1 ms) 2023-01-11T21:08:12.5707483Z [ RUN ] ModuleListTest.ExtendPushesModulesFromOtherModuleList 2023-01-11T21:08:12.5708340Z [ OK ] ModuleListTest.ExtendPushesModulesFromOtherModuleList (0 ms) 2023-01-11T21:08:12.5709061Z [ RUN ] ModuleListTest.HasReferenceSemantics 2023-01-11T21:08:12.5712957Z [ OK ] ModuleListTest.HasReferenceSemantics (0 ms) 2023-01-11T21:08:12.5713548Z [ RUN ] ModuleListTest.IsCloneable 2023-01-11T21:08:12.5765072Z [ OK ] ModuleListTest.IsCloneable (5 ms) 2023-01-11T21:08:12.5765892Z [ RUN ] ModuleListTest.RegistersElementsAsSubmodules 2023-01-11T21:08:12.5770911Z [ OK ] ModuleListTest.RegistersElementsAsSubmodules (0 ms) 2023-01-11T21:08:12.5771413Z [ RUN ] ModuleListTest.NestingIsPossible 2023-01-11T21:08:12.5772085Z [ OK ] ModuleListTest.NestingIsPossible (0 ms) 2023-01-11T21:08:12.5772746Z [ RUN ] ModuleListTest.PrettyPrintModuleList 2023-01-11T21:08:12.5787719Z [ OK ] ModuleListTest.PrettyPrintModuleList (1 ms) 2023-01-11T21:08:12.5788286Z [ RUN ] ModuleListTest.RangeBasedForLoop 2023-01-11T21:08:12.5791613Z [ OK ] ModuleListTest.RangeBasedForLoop (0 ms) 2023-01-11T21:08:12.5792215Z [----------] 15 tests from ModuleListTest (16 ms total) 2023-01-11T21:08:12.5792380Z 2023-01-11T21:08:12.5793218Z [----------] 256 tests from ModulesTest 2023-01-11T21:08:12.5793720Z [ RUN ] ModulesTest.Conv1d 2023-01-11T21:08:12.5825120Z [ OK ] ModulesTest.Conv1d (3 ms) 2023-01-11T21:08:12.5825677Z [ RUN ] ModulesTest.Conv1dSameStrided 2023-01-11T21:08:12.5865563Z [ OK ] ModulesTest.Conv1dSameStrided (4 ms) 2023-01-11T21:08:12.5866125Z [ RUN ] ModulesTest.Conv2dEven 2023-01-11T21:08:12.5896417Z [ OK ] ModulesTest.Conv2dEven (3 ms) 2023-01-11T21:08:12.5896967Z [ RUN ] ModulesTest.Conv2dUneven 2023-01-11T21:08:12.5925916Z [ OK ] ModulesTest.Conv2dUneven (2 ms) 2023-01-11T21:08:12.5926493Z [ RUN ] ModulesTest.Conv2dSameStrided 2023-01-11T21:08:12.6001478Z [ OK ] ModulesTest.Conv2dSameStrided (7 ms) 2023-01-11T21:08:12.6001891Z [ RUN ] ModulesTest.Conv3d 2023-01-11T21:08:12.6042218Z [ OK ] ModulesTest.Conv3d (4 ms) 2023-01-11T21:08:12.6042762Z [ RUN ] ModulesTest.Conv3dSameStrided 2023-01-11T21:08:12.6117318Z [ OK ] ModulesTest.Conv3dSameStrided (7 ms) 2023-01-11T21:08:12.6117901Z [ RUN ] ModulesTest.ConvTranspose1d 2023-01-11T21:08:12.6148256Z [ OK ] ModulesTest.ConvTranspose1d (3 ms) 2023-01-11T21:08:12.6148813Z [ RUN ] ModulesTest.ConvTranspose2dEven 2023-01-11T21:08:12.6198648Z [ OK ] ModulesTest.ConvTranspose2dEven (4 ms) 2023-01-11T21:08:12.6199225Z [ RUN ] ModulesTest.ConvTranspose2dUneven 2023-01-11T21:08:12.6240883Z [ OK ] ModulesTest.ConvTranspose2dUneven (4 ms) 2023-01-11T21:08:12.6241447Z [ RUN ] ModulesTest.ConvTranspose3d 2023-01-11T21:08:12.6274906Z [ OK ] ModulesTest.ConvTranspose3d (3 ms) 2023-01-11T21:08:12.6275457Z [ RUN ] ModulesTest.MaxPool1d 2023-01-11T21:08:12.6291998Z [ OK ] ModulesTest.MaxPool1d (1 ms) 2023-01-11T21:08:12.6292538Z [ RUN ] ModulesTest.MaxPool1dReturnIndices 2023-01-11T21:08:12.6309298Z [ OK ] ModulesTest.MaxPool1dReturnIndices (1 ms) 2023-01-11T21:08:12.6309857Z [ RUN ] ModulesTest.MaxPool2dEven 2023-01-11T21:08:12.6323671Z [ OK ] ModulesTest.MaxPool2dEven (1 ms) 2023-01-11T21:08:12.6324207Z [ RUN ] ModulesTest.MaxPool2dUneven 2023-01-11T21:08:12.6337671Z [ OK ] ModulesTest.MaxPool2dUneven (1 ms) 2023-01-11T21:08:12.6338303Z [ RUN ] ModulesTest.MaxPool2dReturnIndices 2023-01-11T21:08:12.6355972Z [ OK ] ModulesTest.MaxPool2dReturnIndices (1 ms) 2023-01-11T21:08:12.6356521Z [ RUN ] ModulesTest.MaxPool3d 2023-01-11T21:08:12.6370760Z [ OK ] ModulesTest.MaxPool3d (1 ms) 2023-01-11T21:08:12.6371366Z [ RUN ] ModulesTest.MaxPool3dReturnIndices 2023-01-11T21:08:12.6392471Z [ OK ] ModulesTest.MaxPool3dReturnIndices (2 ms) 2023-01-11T21:08:12.6393009Z [ RUN ] ModulesTest.AvgPool1d 2023-01-11T21:08:12.6408240Z [ OK ] ModulesTest.AvgPool1d (1 ms) 2023-01-11T21:08:12.6408969Z [ RUN ] ModulesTest.AvgPool2dEven 2023-01-11T21:08:12.6422134Z [ OK ] ModulesTest.AvgPool2dEven (1 ms) 2023-01-11T21:08:12.6422680Z [ RUN ] ModulesTest.AvgPool2dUneven 2023-01-11T21:08:12.6435906Z [ OK ] ModulesTest.AvgPool2dUneven (1 ms) 2023-01-11T21:08:12.6436451Z [ RUN ] ModulesTest.AvgPool3d 2023-01-11T21:08:12.6450520Z [ OK ] ModulesTest.AvgPool3d (1 ms) 2023-01-11T21:08:12.6451119Z [ RUN ] ModulesTest.FractionalMaxPool2d 2023-01-11T21:08:12.6466220Z [ OK ] ModulesTest.FractionalMaxPool2d (1 ms) 2023-01-11T21:08:12.6466846Z [ RUN ] ModulesTest.FractionalMaxPool2dReturnIndices 2023-01-11T21:08:12.6485198Z [ OK ] ModulesTest.FractionalMaxPool2dReturnIndices (1 ms) 2023-01-11T21:08:12.6485772Z [ RUN ] ModulesTest.FractionalMaxPool3d 2023-01-11T21:08:12.6500423Z [ OK ] ModulesTest.FractionalMaxPool3d (1 ms) 2023-01-11T21:08:12.6501023Z [ RUN ] ModulesTest.FractionalMaxPool3dReturnIndices 2023-01-11T21:08:12.6522674Z [ OK ] ModulesTest.FractionalMaxPool3dReturnIndices (2 ms) 2023-01-11T21:08:12.6523217Z [ RUN ] ModulesTest.LPPool1d 2023-01-11T21:08:12.6538010Z [ OK ] ModulesTest.LPPool1d (1 ms) 2023-01-11T21:08:12.6538517Z [ RUN ] ModulesTest.LPPool2d 2023-01-11T21:08:12.6552489Z [ OK ] ModulesTest.LPPool2d (1 ms) 2023-01-11T21:08:12.6553016Z [ RUN ] ModulesTest.Identity 2023-01-11T21:08:12.6561645Z [ OK ] ModulesTest.Identity (0 ms) 2023-01-11T21:08:12.6562200Z [ RUN ] ModulesTest.Flatten 2023-01-11T21:08:12.6586774Z [ OK ] ModulesTest.Flatten (2 ms) 2023-01-11T21:08:12.6587301Z [ RUN ] ModulesTest.Unflatten 2023-01-11T21:08:12.6593606Z [W TensorImpl.h:1816] Warning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (function operator()) 2023-01-11T21:08:12.6597408Z [ OK ] ModulesTest.Unflatten (1 ms) 2023-01-11T21:08:12.6597993Z [ RUN ] ModulesTest.AdaptiveMaxPool1d 2023-01-11T21:08:12.6615558Z [ OK ] ModulesTest.AdaptiveMaxPool1d (1 ms) 2023-01-11T21:08:12.6616167Z [ RUN ] ModulesTest.AdaptiveMaxPool1dReturnIndices 2023-01-11T21:08:12.6635195Z [ OK ] ModulesTest.AdaptiveMaxPool1dReturnIndices (1 ms) 2023-01-11T21:08:12.6635791Z [ RUN ] ModulesTest.AdaptiveMaxPool2dEven 2023-01-11T21:08:12.6654296Z [ OK ] ModulesTest.AdaptiveMaxPool2dEven (1 ms) 2023-01-11T21:08:12.6655098Z [ RUN ] ModulesTest.AdaptiveMaxPool2dUneven 2023-01-11T21:08:12.6672531Z [ OK ] ModulesTest.AdaptiveMaxPool2dUneven (1 ms) 2023-01-11T21:08:12.6673167Z [ RUN ] ModulesTest.AdaptiveMaxPool2dReturnIndicesEven 2023-01-11T21:08:12.6703659Z [ OK ] ModulesTest.AdaptiveMaxPool2dReturnIndicesEven (3 ms) 2023-01-11T21:08:12.6704334Z [ RUN ] ModulesTest.AdaptiveMaxPool2dReturnIndicesUneven 2023-01-11T21:08:12.6732068Z [ OK ] ModulesTest.AdaptiveMaxPool2dReturnIndicesUneven (2 ms) 2023-01-11T21:08:12.6732654Z [ RUN ] ModulesTest.AdaptiveMaxPool3d 2023-01-11T21:08:12.6752980Z [ OK ] ModulesTest.AdaptiveMaxPool3d (2 ms) 2023-01-11T21:08:12.6753624Z [ RUN ] ModulesTest.AdaptiveMaxPool3dReturnIndices 2023-01-11T21:08:12.6787391Z [ OK ] ModulesTest.AdaptiveMaxPool3dReturnIndices (3 ms) 2023-01-11T21:08:12.6787963Z [ RUN ] ModulesTest.AdaptiveAvgPool1d 2023-01-11T21:08:12.6805286Z [ OK ] ModulesTest.AdaptiveAvgPool1d (1 ms) 2023-01-11T21:08:12.6805886Z [ RUN ] ModulesTest.AdaptiveAvgPool2dEven 2023-01-11T21:08:12.6824342Z [ OK ] ModulesTest.AdaptiveAvgPool2dEven (1 ms) 2023-01-11T21:08:12.6825069Z [ RUN ] ModulesTest.AdaptiveAvgPool2dUneven 2023-01-11T21:08:12.6842349Z [ OK ] ModulesTest.AdaptiveAvgPool2dUneven (1 ms) 2023-01-11T21:08:12.6842920Z [ RUN ] ModulesTest.AdaptiveAvgPool3d 2023-01-11T21:08:12.6863054Z [ OK ] ModulesTest.AdaptiveAvgPool3d (2 ms) 2023-01-11T21:08:12.6863617Z [ RUN ] ModulesTest.MaxUnpool1d 2023-01-11T21:08:12.6890817Z [ OK ] ModulesTest.MaxUnpool1d (2 ms) 2023-01-11T21:08:12.6891397Z [ RUN ] ModulesTest.MaxPool1d_MaxUnpool1d 2023-01-11T21:08:12.6929171Z [ OK ] ModulesTest.MaxPool1d_MaxUnpool1d (3 ms) 2023-01-11T21:08:12.6929722Z [ RUN ] ModulesTest.MaxUnpool2d 2023-01-11T21:08:12.6960278Z [ OK ] ModulesTest.MaxUnpool2d (3 ms) 2023-01-11T21:08:12.6960839Z [ RUN ] ModulesTest.MaxPool2d_MaxUnpool2d 2023-01-11T21:08:12.6990554Z [ OK ] ModulesTest.MaxPool2d_MaxUnpool2d (2 ms) 2023-01-11T21:08:12.6991099Z [ RUN ] ModulesTest.MaxUnpool3d 2023-01-11T21:08:12.7008981Z [ OK ] ModulesTest.MaxUnpool3d (1 ms) 2023-01-11T21:08:12.7009551Z [ RUN ] ModulesTest.MaxUnpool3dOutputSize 2023-01-11T21:08:12.7039662Z [ OK ] ModulesTest.MaxUnpool3dOutputSize (3 ms) 2023-01-11T21:08:12.7040243Z [ RUN ] ModulesTest.MaxPool3d_MaxUnpool3d 2023-01-11T21:08:13.4929719Z [ OK ] ModulesTest.MaxPool3d_MaxUnpool3d (788 ms) 2023-01-11T21:08:13.4930205Z [ RUN ] ModulesTest.Linear 2023-01-11T21:08:13.4973549Z [ OK ] ModulesTest.Linear (4 ms) 2023-01-11T21:08:13.4973971Z [ RUN ] ModulesTest.LocalResponseNorm 2023-01-11T21:08:13.5023285Z [ OK ] ModulesTest.LocalResponseNorm (4 ms) 2023-01-11T21:08:13.5023797Z [ RUN ] ModulesTest.LayerNorm 2023-01-11T21:08:13.5041886Z [ OK ] ModulesTest.LayerNorm (1 ms) 2023-01-11T21:08:13.5042453Z [ RUN ] ModulesTest.GroupNorm 2023-01-11T21:08:13.5063288Z [ OK ] ModulesTest.GroupNorm (2 ms) 2023-01-11T21:08:13.5063802Z [ RUN ] ModulesTest.Bilinear 2023-01-11T21:08:13.5105230Z [ OK ] ModulesTest.Bilinear (4 ms) 2023-01-11T21:08:13.5105740Z [ RUN ] ModulesTest.Fold 2023-01-11T21:08:13.5154245Z [ OK ] ModulesTest.Fold (4 ms) 2023-01-11T21:08:13.5154845Z [ RUN ] ModulesTest.Unfold 2023-01-11T21:08:13.5255219Z [ OK ] ModulesTest.Unfold (9 ms) 2023-01-11T21:08:13.5255667Z [ RUN ] ModulesTest.SimpleContainer 2023-01-11T21:08:13.5412297Z [ OK ] ModulesTest.SimpleContainer (15 ms) 2023-01-11T21:08:13.5412651Z [ RUN ] ModulesTest.EmbeddingBasic 2023-01-11T21:08:13.5420796Z [ OK ] ModulesTest.EmbeddingBasic (0 ms) 2023-01-11T21:08:13.5421173Z [ RUN ] ModulesTest.EmbeddingList 2023-01-11T21:08:13.5428908Z [ OK ] ModulesTest.EmbeddingList (0 ms) 2023-01-11T21:08:13.5429403Z [ RUN ] ModulesTest.EmbeddingFromPretrained 2023-01-11T21:08:13.5440315Z [ OK ] ModulesTest.EmbeddingFromPretrained (1 ms) 2023-01-11T21:08:13.5440913Z [ RUN ] ModulesTest.EmbeddingBagFromPretrained 2023-01-11T21:08:13.5458217Z [ OK ] ModulesTest.EmbeddingBagFromPretrained (1 ms) 2023-01-11T21:08:13.5458606Z [ RUN ] ModulesTest.AlphaDropout 2023-01-11T21:08:13.5470687Z [ OK ] ModulesTest.AlphaDropout (1 ms) 2023-01-11T21:08:13.5471048Z [ RUN ] ModulesTest.FeatureAlphaDropout 2023-01-11T21:08:13.5483590Z [ OK ] ModulesTest.FeatureAlphaDropout (1 ms) 2023-01-11T21:08:13.5483959Z [ RUN ] ModulesTest.Dropout 2023-01-11T21:08:13.5503685Z [ OK ] ModulesTest.Dropout (1 ms) 2023-01-11T21:08:13.5504046Z [ RUN ] ModulesTest.Dropout2d 2023-01-11T21:08:13.5564093Z [ OK ] ModulesTest.Dropout2d (5 ms) 2023-01-11T21:08:13.5564589Z [ RUN ] ModulesTest.Dropout3d 2023-01-11T21:08:13.5670725Z [ OK ] ModulesTest.Dropout3d (10 ms) 2023-01-11T21:08:13.5671038Z [ RUN ] ModulesTest.Parameters 2023-01-11T21:08:13.5678066Z [ OK ] ModulesTest.Parameters (0 ms) 2023-01-11T21:08:13.5678405Z [ RUN ] ModulesTest.FunctionalCallsSuppliedFunction 2023-01-11T21:08:13.5680962Z [ OK ] ModulesTest.FunctionalCallsSuppliedFunction (0 ms) 2023-01-11T21:08:13.5681360Z [ RUN ] ModulesTest.FunctionalWithTorchFunction 2023-01-11T21:08:13.5683880Z [ OK ] ModulesTest.FunctionalWithTorchFunction (0 ms) 2023-01-11T21:08:13.5684349Z [ RUN ] ModulesTest.FunctionalArgumentBinding 2023-01-11T21:08:13.5685648Z [ OK ] ModulesTest.FunctionalArgumentBinding (0 ms) 2023-01-11T21:08:13.5686001Z [ RUN ] ModulesTest.BatchNorm1dStateful 2023-01-11T21:08:13.5687983Z [ OK ] ModulesTest.BatchNorm1dStateful (0 ms) 2023-01-11T21:08:13.5688372Z [ RUN ] ModulesTest.BatchNorm1dStateless 2023-01-11T21:08:13.5688718Z [ OK ] ModulesTest.BatchNorm1dStateless (0 ms) 2023-01-11T21:08:13.5689057Z [ RUN ] ModulesTest.BatchNorm1d 2023-01-11T21:08:13.5716028Z [ OK ] ModulesTest.BatchNorm1d (2 ms) 2023-01-11T21:08:13.5716373Z [ RUN ] ModulesTest.BatchNorm2dStateful 2023-01-11T21:08:13.5718371Z [ OK ] ModulesTest.BatchNorm2dStateful (0 ms) 2023-01-11T21:08:13.5718772Z [ RUN ] ModulesTest.BatchNorm2dStateless 2023-01-11T21:08:13.5719189Z [ OK ] ModulesTest.BatchNorm2dStateless (0 ms) 2023-01-11T21:08:13.5719500Z [ RUN ] ModulesTest.BatchNorm2d 2023-01-11T21:08:13.5788990Z [ OK ] ModulesTest.BatchNorm2d (3 ms) 2023-01-11T21:08:13.5789618Z [ RUN ] ModulesTest.BatchNorm3dStateful 2023-01-11T21:08:13.5790204Z [ OK ] ModulesTest.BatchNorm3dStateful (0 ms) 2023-01-11T21:08:13.5790536Z [ RUN ] ModulesTest.BatchNorm3dStateless 2023-01-11T21:08:13.5790859Z [ OK ] ModulesTest.BatchNorm3dStateless (0 ms) 2023-01-11T21:08:13.5792477Z [ RUN ] ModulesTest.BatchNorm3d 2023-01-11T21:08:13.5803191Z [ OK ] ModulesTest.BatchNorm3d (4 ms) 2023-01-11T21:08:13.5803590Z [ RUN ] ModulesTest.InstanceNorm1dStateful 2023-01-11T21:08:13.5805588Z [ OK ] ModulesTest.InstanceNorm1dStateful (0 ms) 2023-01-11T21:08:13.5806040Z [ RUN ] ModulesTest.InstanceNorm1dStateless 2023-01-11T21:08:13.5806405Z [ OK ] ModulesTest.InstanceNorm1dStateless (0 ms) 2023-01-11T21:08:13.5806786Z [ RUN ] ModulesTest.InstanceNorm1d 2023-01-11T21:08:13.5832554Z [ OK ] ModulesTest.InstanceNorm1d (2 ms) 2023-01-11T21:08:13.5832900Z [ RUN ] ModulesTest.InstanceNorm2dStateful 2023-01-11T21:08:13.5834950Z [ OK ] ModulesTest.InstanceNorm2dStateful (0 ms) 2023-01-11T21:08:13.5835411Z [ RUN ] ModulesTest.InstanceNorm2dStateless 2023-01-11T21:08:13.5836300Z [ OK ] ModulesTest.InstanceNorm2dStateless (0 ms) 2023-01-11T21:08:13.5836655Z [ RUN ] ModulesTest.InstanceNorm2d 2023-01-11T21:08:13.5869756Z [ OK ] ModulesTest.InstanceNorm2d (3 ms) 2023-01-11T21:08:13.5870305Z [ RUN ] ModulesTest.InstanceNorm3dStateful 2023-01-11T21:08:13.5872160Z [ OK ] ModulesTest.InstanceNorm3dStateful (0 ms) 2023-01-11T21:08:13.5872611Z [ RUN ] ModulesTest.InstanceNorm3dStateless 2023-01-11T21:08:13.5873025Z [ OK ] ModulesTest.InstanceNorm3dStateless (0 ms) 2023-01-11T21:08:13.5873334Z [ RUN ] ModulesTest.InstanceNorm3d 2023-01-11T21:08:13.5921688Z [ OK ] ModulesTest.InstanceNorm3d (4 ms) 2023-01-11T21:08:13.5921980Z [ RUN ] ModulesTest.L1Loss 2023-01-11T21:08:13.5935557Z [ OK ] ModulesTest.L1Loss (1 ms) 2023-01-11T21:08:13.5935831Z [ RUN ] ModulesTest.MSELoss 2023-01-11T21:08:13.5945202Z [ OK ] ModulesTest.MSELoss (0 ms) 2023-01-11T21:08:13.5945718Z [ RUN ] ModulesTest.BCELoss 2023-01-11T21:08:13.5956707Z [ OK ] ModulesTest.BCELoss (1 ms) 2023-01-11T21:08:13.5957227Z [ RUN ] ModulesTest.KLDivLoss 2023-01-11T21:08:13.5959658Z [W loss.h:57] Warning: reduction: 'mean' divides the total loss by both the batch size and the support size.'batchmean' divides only by the batch size, and aligns with the KL div math definition.'mean' will be changed to behave the same as 'batchmean' in the next major release. (function kl_div) 2023-01-11T21:08:13.5969780Z [ OK ] ModulesTest.KLDivLoss (1 ms) 2023-01-11T21:08:13.5970364Z [ RUN ] ModulesTest.HingeEmbeddingLoss 2023-01-11T21:08:13.5998519Z [ OK ] ModulesTest.HingeEmbeddingLoss (2 ms) 2023-01-11T21:08:13.5999100Z [ RUN ] ModulesTest.MultiMarginLoss 2023-01-11T21:08:13.6014894Z [ OK ] ModulesTest.MultiMarginLoss (1 ms) 2023-01-11T21:08:13.6015407Z [ RUN ] ModulesTest.CosineEmbeddingLoss 2023-01-11T21:08:13.6066188Z [ OK ] ModulesTest.CosineEmbeddingLoss (5 ms) 2023-01-11T21:08:13.6066770Z [ RUN ] ModulesTest.SmoothL1LossDefaultOptions 2023-01-11T21:08:13.6080198Z [ OK ] ModulesTest.SmoothL1LossDefaultOptions (1 ms) 2023-01-11T21:08:13.6080842Z [ RUN ] ModulesTest.HuberLossDefaultOptions 2023-01-11T21:08:13.6094529Z [ OK ] ModulesTest.HuberLossDefaultOptions (1 ms) 2023-01-11T21:08:13.6095164Z [ RUN ] ModulesTest.MultiLabelMarginLossDefaultOptions 2023-01-11T21:08:13.6110174Z [ OK ] ModulesTest.MultiLabelMarginLossDefaultOptions (1 ms) 2023-01-11T21:08:13.6110739Z [ RUN ] ModulesTest.SmoothL1LossNoReduction 2023-01-11T21:08:13.6124019Z [ OK ] ModulesTest.SmoothL1LossNoReduction (1 ms) 2023-01-11T21:08:13.6124601Z [ RUN ] ModulesTest.HuberLossNoReduction 2023-01-11T21:08:13.6137770Z [ OK ] ModulesTest.HuberLossNoReduction (1 ms) 2023-01-11T21:08:13.6138426Z [ RUN ] ModulesTest.MultiLabelMarginLossNoReduction 2023-01-11T21:08:13.6153098Z [ OK ] ModulesTest.MultiLabelMarginLossNoReduction (1 ms) 2023-01-11T21:08:13.6153677Z [ RUN ] ModulesTest.SmoothL1LossBeta 2023-01-11T21:08:13.6167226Z [ OK ] ModulesTest.SmoothL1LossBeta (1 ms) 2023-01-11T21:08:13.6167794Z [ RUN ] ModulesTest.HuberLossDelta 2023-01-11T21:08:13.6181520Z [ OK ] ModulesTest.HuberLossDelta (1 ms) 2023-01-11T21:08:13.6182088Z [ RUN ] ModulesTest.TripletMarginLoss 2023-01-11T21:08:13.6216992Z [ OK ] ModulesTest.TripletMarginLoss (3 ms) 2023-01-11T21:08:13.6217645Z [ RUN ] ModulesTest.TripletMarginWithDistanceLossDefaultParity 2023-01-11T21:08:13.8105488Z [ OK ] ModulesTest.TripletMarginWithDistanceLossDefaultParity (188 ms) 2023-01-11T21:08:13.8106216Z [ RUN ] ModulesTest.TripletMarginWithDistanceLossFunctionalParity 2023-01-11T21:08:14.1375472Z [ OK ] ModulesTest.TripletMarginWithDistanceLossFunctionalParity (326 ms) 2023-01-11T21:08:14.1375884Z [ RUN ] ModulesTest.NLLLoss 2023-01-11T21:08:14.1397109Z [ OK ] ModulesTest.NLLLoss (2 ms) 2023-01-11T21:08:14.1397667Z [ RUN ] ModulesTest.CrossEntropyLoss 2023-01-11T21:08:14.1475497Z [ OK ] ModulesTest.CrossEntropyLoss (7 ms) 2023-01-11T21:08:14.1476060Z [ RUN ] ModulesTest.CosineSimilarity 2023-01-11T21:08:14.1516083Z [ OK ] ModulesTest.CosineSimilarity (4 ms) 2023-01-11T21:08:14.1516681Z [ RUN ] ModulesTest.SoftMarginLossDefaultOptions 2023-01-11T21:08:14.1537487Z [ OK ] ModulesTest.SoftMarginLossDefaultOptions (2 ms) 2023-01-11T21:08:14.1537954Z [ RUN ] ModulesTest.MultiLabelSoftMarginLossDefaultOptions 2023-01-11T21:08:14.1569930Z [ OK ] ModulesTest.MultiLabelSoftMarginLossDefaultOptions (3 ms) 2023-01-11T21:08:14.1570353Z [ RUN ] ModulesTest.SoftMarginLossNoReduction 2023-01-11T21:08:14.1590378Z [ OK ] ModulesTest.SoftMarginLossNoReduction (1 ms) 2023-01-11T21:08:14.1591215Z [ RUN ] ModulesTest.MultiLabelSoftMarginLossWeightedNoReduction 2023-01-11T21:08:14.1623861Z [ OK ] ModulesTest.MultiLabelSoftMarginLossWeightedNoReduction (3 ms) 2023-01-11T21:08:14.1624649Z [ RUN ] ModulesTest.PairwiseDistance 2023-01-11T21:08:14.1645279Z [ OK ] ModulesTest.PairwiseDistance (2 ms) 2023-01-11T21:08:14.1645788Z [ RUN ] ModulesTest.ELU 2023-01-11T21:08:14.1805053Z [ OK ] ModulesTest.ELU (15 ms) 2023-01-11T21:08:14.1805560Z [ RUN ] ModulesTest.SELU 2023-01-11T21:08:14.1841007Z [ OK ] ModulesTest.SELU (3 ms) 2023-01-11T21:08:14.1841520Z [ RUN ] ModulesTest.Hardshrink 2023-01-11T21:08:14.1940417Z [ OK ] ModulesTest.Hardshrink (9 ms) 2023-01-11T21:08:14.1940934Z [ RUN ] ModulesTest.Hardtanh 2023-01-11T21:08:14.2362392Z [ OK ] ModulesTest.Hardtanh (42 ms) 2023-01-11T21:08:14.2363006Z [ RUN ] ModulesTest.HardtanhMinValGEMaxVal 2023-01-11T21:08:14.2443397Z [ OK ] ModulesTest.HardtanhMinValGEMaxVal (8 ms) 2023-01-11T21:08:14.2443950Z [ RUN ] ModulesTest.LeakyReLU 2023-01-11T21:08:14.2629311Z [ OK ] ModulesTest.LeakyReLU (18 ms) 2023-01-11T21:08:14.2629774Z [ RUN ] ModulesTest.LogSigmoid 2023-01-11T21:08:14.2647825Z [ OK ] ModulesTest.LogSigmoid (1 ms) 2023-01-11T21:08:14.2648427Z [ RUN ] ModulesTest.Softmax 2023-01-11T21:08:14.2666529Z [ OK ] ModulesTest.Softmax (1 ms) 2023-01-11T21:08:14.2667015Z [ RUN ] ModulesTest.Softmin 2023-01-11T21:08:14.2685968Z [ OK ] ModulesTest.Softmin (1 ms) 2023-01-11T21:08:14.2686486Z [ RUN ] ModulesTest.LogSoftmax 2023-01-11T21:08:14.2705072Z [ OK ] ModulesTest.LogSoftmax (1 ms) 2023-01-11T21:08:14.2705646Z [ RUN ] ModulesTest.AdaptiveLogSoftmaxWithLoss 2023-01-11T21:08:14.3004604Z [ OK ] ModulesTest.AdaptiveLogSoftmaxWithLoss (29 ms) 2023-01-11T21:08:14.3005308Z [ RUN ] ModulesTest.Softmax2d 2023-01-11T21:08:14.3198956Z [ OK ] ModulesTest.Softmax2d (19 ms) 2023-01-11T21:08:14.3199460Z [ RUN ] ModulesTest.PReLU 2023-01-11T21:08:14.3251996Z [ OK ] ModulesTest.PReLU (5 ms) 2023-01-11T21:08:14.3252467Z [ RUN ] ModulesTest.ReLU 2023-01-11T21:08:14.3285693Z [ OK ] ModulesTest.ReLU (3 ms) 2023-01-11T21:08:14.3286168Z [ RUN ] ModulesTest.ReLU6 2023-01-11T21:08:14.3325735Z [ OK ] ModulesTest.ReLU6 (3 ms) 2023-01-11T21:08:14.3326218Z [ RUN ] ModulesTest.RReLU 2023-01-11T21:08:14.3940975Z [ OK ] ModulesTest.RReLU (61 ms) 2023-01-11T21:08:14.3941369Z [ RUN ] ModulesTest.CELU 2023-01-11T21:08:14.4073466Z [ OK ] ModulesTest.CELU (13 ms) 2023-01-11T21:08:14.4073958Z [ RUN ] ModulesTest.GLU 2023-01-11T21:08:14.4096616Z [ OK ] ModulesTest.GLU (2 ms) 2023-01-11T21:08:14.4097111Z [ RUN ] ModulesTest.GELU 2023-01-11T21:08:14.4107739Z [ OK ] ModulesTest.GELU (1 ms) 2023-01-11T21:08:14.4108244Z [ RUN ] ModulesTest.TanhGELU 2023-01-11T21:08:14.4120255Z [ OK ] ModulesTest.TanhGELU (1 ms) 2023-01-11T21:08:14.4120767Z [ RUN ] ModulesTest.Mish 2023-01-11T21:08:14.4131723Z [ OK ] ModulesTest.Mish (1 ms) 2023-01-11T21:08:14.4132240Z [ RUN ] ModulesTest.Sigmoid 2023-01-11T21:08:14.4142974Z [ OK ] ModulesTest.Sigmoid (1 ms) 2023-01-11T21:08:14.4143344Z [ RUN ] ModulesTest.PixelShuffle 2023-01-11T21:08:14.4161098Z [ OK ] ModulesTest.PixelShuffle (1 ms) 2023-01-11T21:08:14.4161423Z [ RUN ] ModulesTest.PixelUnshuffle 2023-01-11T21:08:14.4178849Z [ OK ] ModulesTest.PixelUnshuffle (1 ms) 2023-01-11T21:08:14.4179157Z [ RUN ] ModulesTest.Softplus 2023-01-11T21:08:14.4289999Z [ OK ] ModulesTest.Softplus (11 ms) 2023-01-11T21:08:14.4290307Z [ RUN ] ModulesTest.Softshrink 2023-01-11T21:08:14.4368987Z [ OK ] ModulesTest.Softshrink (7 ms) 2023-01-11T21:08:14.4369314Z [ RUN ] ModulesTest.Softsign 2023-01-11T21:08:14.4380402Z [ OK ] ModulesTest.Softsign (1 ms) 2023-01-11T21:08:14.4380710Z [ RUN ] ModulesTest.Tanh 2023-01-11T21:08:14.4392640Z [ OK ] ModulesTest.Tanh (1 ms) 2023-01-11T21:08:14.4392995Z [ RUN ] ModulesTest.Tanhshrink 2023-01-11T21:08:14.4402369Z [ OK ] ModulesTest.Tanhshrink (0 ms) 2023-01-11T21:08:14.4402664Z [ RUN ] ModulesTest.Threshold 2023-01-11T21:08:14.4611485Z [ OK ] ModulesTest.Threshold (20 ms) 2023-01-11T21:08:14.4611877Z [ RUN ] ModulesTest.Upsampling1D 2023-01-11T21:08:14.4625872Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4638867Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4661469Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4672191Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4703727Z [ OK ] ModulesTest.Upsampling1D (9 ms) 2023-01-11T21:08:14.4704236Z [ RUN ] ModulesTest.Upsampling2D 2023-01-11T21:08:14.4717656Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4729539Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4750980Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4761428Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4782876Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4796803Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4822046Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4833932Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4858453Z [ OK ] ModulesTest.Upsampling2D (15 ms) 2023-01-11T21:08:14.4858855Z [ RUN ] ModulesTest.Upsampling3D 2023-01-11T21:08:14.4875680Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4889211Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4915038Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4926860Z [W upsampling.h:66] Warning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and uses scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. (function _interp_output_size) 2023-01-11T21:08:14.4951197Z [ OK ] ModulesTest.Upsampling3D (9 ms) 2023-01-11T21:08:14.4951565Z [ RUN ] ModulesTest.CTCLoss 2023-01-11T21:08:14.4969401Z [ OK ] ModulesTest.CTCLoss (1 ms) 2023-01-11T21:08:14.4969772Z [ RUN ] ModulesTest.PoissonNLLLoss 2023-01-11T21:08:14.4997560Z [ OK ] ModulesTest.PoissonNLLLoss (2 ms) 2023-01-11T21:08:14.4997946Z [ RUN ] ModulesTest.MarginRankingLoss 2023-01-11T21:08:14.5037738Z [ OK ] ModulesTest.MarginRankingLoss (3 ms) 2023-01-11T21:08:14.5038115Z [ RUN ] ModulesTest.BCEWithLogitsLoss 2023-01-11T21:08:14.5304858Z [ OK ] ModulesTest.BCEWithLogitsLoss (26 ms) 2023-01-11T21:08:14.5305201Z [ RUN ] ModulesTest.MultiheadAttention 2023-01-11T21:10:56.5465097Z [ OK ] ModulesTest.MultiheadAttention (162015 ms) 2023-01-11T21:10:56.5465637Z [ RUN ] ModulesTest.PrettyPrintIdentity 2023-01-11T21:10:56.5465996Z [ OK ] ModulesTest.PrettyPrintIdentity (0 ms) 2023-01-11T21:10:56.5466327Z [ RUN ] ModulesTest.PrettyPrintFlatten 2023-01-11T21:10:56.5468912Z [ OK ] ModulesTest.PrettyPrintFlatten (0 ms) 2023-01-11T21:10:56.5469552Z [ RUN ] ModulesTest.PrettyPrintUnflatten 2023-01-11T21:10:56.5469917Z [ OK ] ModulesTest.PrettyPrintUnflatten (0 ms) 2023-01-11T21:10:56.5470245Z [ RUN ] ModulesTest.ReflectionPad1d 2023-01-11T21:10:56.5492885Z [ OK ] ModulesTest.ReflectionPad1d (2 ms) 2023-01-11T21:10:56.5493305Z [ RUN ] ModulesTest.ReflectionPad2d 2023-01-11T21:10:56.5522660Z [ OK ] ModulesTest.ReflectionPad2d (2 ms) 2023-01-11T21:10:56.5523067Z [ RUN ] ModulesTest.ReflectionPad3d 2023-01-11T21:10:56.5570446Z [ OK ] ModulesTest.ReflectionPad3d (4 ms) 2023-01-11T21:10:56.5570787Z [ RUN ] ModulesTest.ReplicationPad1d 2023-01-11T21:10:56.5593622Z [ OK ] ModulesTest.ReplicationPad1d (2 ms) 2023-01-11T21:10:56.5594010Z [ RUN ] ModulesTest.ReplicationPad2d 2023-01-11T21:10:56.5624348Z [ OK ] ModulesTest.ReplicationPad2d (3 ms) 2023-01-11T21:10:56.5624678Z [ RUN ] ModulesTest.ReplicationPad3d 2023-01-11T21:10:56.5679716Z [ OK ] ModulesTest.ReplicationPad3d (5 ms) 2023-01-11T21:10:56.5680008Z [ RUN ] ModulesTest.ZeroPad2d 2023-01-11T21:10:56.5712388Z [ OK ] ModulesTest.ZeroPad2d (3 ms) 2023-01-11T21:10:56.5712705Z [ RUN ] ModulesTest.ConstantPad1d 2023-01-11T21:10:56.5735040Z [ OK ] ModulesTest.ConstantPad1d (2 ms) 2023-01-11T21:10:56.5735361Z [ RUN ] ModulesTest.ConstantPad2d 2023-01-11T21:10:56.5766413Z [ OK ] ModulesTest.ConstantPad2d (3 ms) 2023-01-11T21:10:56.5766721Z [ RUN ] ModulesTest.ConstantPad3d 2023-01-11T21:10:56.5824332Z [ OK ] ModulesTest.ConstantPad3d (5 ms) 2023-01-11T21:10:56.5824641Z [ RUN ] ModulesTest.CrossMapLRN2d 2023-01-11T21:10:56.5915182Z [ OK ] ModulesTest.CrossMapLRN2d (9 ms) 2023-01-11T21:10:56.5915460Z [ RUN ] ModulesTest.RNNCell 2023-01-11T21:10:56.5947146Z [ OK ] ModulesTest.RNNCell (3 ms) 2023-01-11T21:10:56.5947440Z [ RUN ] ModulesTest.LSTMCell 2023-01-11T21:10:56.6007608Z [ OK ] ModulesTest.LSTMCell (6 ms) 2023-01-11T21:10:56.6007883Z [ RUN ] ModulesTest.GRUCell 2023-01-11T21:10:56.6054116Z [ OK ] ModulesTest.GRUCell (4 ms) 2023-01-11T21:10:56.6054580Z [ RUN ] ModulesTest.PrettyPrintLinear 2023-01-11T21:10:56.6056228Z [ OK ] ModulesTest.PrettyPrintLinear (0 ms) 2023-01-11T21:10:56.6056603Z [ RUN ] ModulesTest.PrettyPrintBilinear 2023-01-11T21:10:56.6058696Z [ OK ] ModulesTest.PrettyPrintBilinear (0 ms) 2023-01-11T21:10:56.6059296Z [ RUN ] ModulesTest.PrettyPrintConv 2023-01-11T21:10:56.6080751Z [ OK ] ModulesTest.PrettyPrintConv (2 ms) 2023-01-11T21:10:56.6081124Z [ RUN ] ModulesTest.PrettyPrintConvTranspose 2023-01-11T21:10:56.6103216Z [ OK ] ModulesTest.PrettyPrintConvTranspose (2 ms) 2023-01-11T21:10:56.6103742Z [ RUN ] ModulesTest.PrettyPrintUpsample 2023-01-11T21:10:56.6104341Z [ OK ] ModulesTest.PrettyPrintUpsample (0 ms) 2023-01-11T21:10:56.6104842Z [ RUN ] ModulesTest.PrettyPrintFold 2023-01-11T21:10:56.6105684Z [ OK ] ModulesTest.PrettyPrintFold (0 ms) 2023-01-11T21:10:56.6106198Z [ RUN ] ModulesTest.PrettyPrintUnfold 2023-01-11T21:10:56.6107058Z [ OK ] ModulesTest.PrettyPrintUnfold (0 ms) 2023-01-11T21:10:56.6107495Z [ RUN ] ModulesTest.PrettyPrintMaxPool 2023-01-11T21:10:56.6108172Z [ OK ] ModulesTest.PrettyPrintMaxPool (0 ms) 2023-01-11T21:10:56.6108539Z [ RUN ] ModulesTest.PrettyPrintAvgPool 2023-01-11T21:10:56.6109793Z [ OK ] ModulesTest.PrettyPrintAvgPool (0 ms) 2023-01-11T21:10:56.6110333Z [ RUN ] ModulesTest.PrettyPrinFractionalMaxPool 2023-01-11T21:10:56.6110728Z [ OK ] ModulesTest.PrettyPrinFractionalMaxPool (0 ms) 2023-01-11T21:10:56.6111073Z [ RUN ] ModulesTest.PrettyPrintLPPool 2023-01-11T21:10:56.6112025Z [ OK ] ModulesTest.PrettyPrintLPPool (0 ms) 2023-01-11T21:10:56.6112382Z [ RUN ] ModulesTest.PrettyPrintAdaptiveMaxPool 2023-01-11T21:10:56.6114442Z [ OK ] ModulesTest.PrettyPrintAdaptiveMaxPool (0 ms) 2023-01-11T21:10:56.6114881Z [ RUN ] ModulesTest.PrettyPrintAdaptiveAvgPool 2023-01-11T21:10:56.6116754Z [ OK ] ModulesTest.PrettyPrintAdaptiveAvgPool (0 ms) 2023-01-11T21:10:56.6117211Z [ RUN ] ModulesTest.PrettyPrintMaxUnpool 2023-01-11T21:10:56.6118279Z [ OK ] ModulesTest.PrettyPrintMaxUnpool (0 ms) 2023-01-11T21:10:56.6118679Z [ RUN ] ModulesTest.PrettyPrintDropout 2023-01-11T21:10:56.6119262Z [ OK ] ModulesTest.PrettyPrintDropout (0 ms) 2023-01-11T21:10:56.6119722Z [ RUN ] ModulesTest.PrettyPrintDropout2d 2023-01-11T21:10:56.6120409Z [ OK ] ModulesTest.PrettyPrintDropout2d (0 ms) 2023-01-11T21:10:56.6120865Z [ RUN ] ModulesTest.PrettyPrintDropout3d 2023-01-11T21:10:56.6121621Z [ OK ] ModulesTest.PrettyPrintDropout3d (0 ms) 2023-01-11T21:10:56.6122177Z [ RUN ] ModulesTest.PrettyPrintFunctional 2023-01-11T21:10:56.6122757Z [ OK ] ModulesTest.PrettyPrintFunctional (0 ms) 2023-01-11T21:10:56.6123113Z [ RUN ] ModulesTest.PrettyPrintBatchNorm1d 2023-01-11T21:10:56.6124564Z [ OK ] ModulesTest.PrettyPrintBatchNorm1d (0 ms) 2023-01-11T21:10:56.6125183Z [ RUN ] ModulesTest.PrettyPrintBatchNorm2d 2023-01-11T21:10:56.6126919Z [ OK ] ModulesTest.PrettyPrintBatchNorm2d (0 ms) 2023-01-11T21:10:56.6127313Z [ RUN ] ModulesTest.PrettyPrintBatchNorm3d 2023-01-11T21:10:56.6128670Z [ OK ] ModulesTest.PrettyPrintBatchNorm3d (0 ms) 2023-01-11T21:10:56.6129039Z [ RUN ] ModulesTest.PrettyPrintInstanceNorm1d 2023-01-11T21:10:56.6130845Z [ OK ] ModulesTest.PrettyPrintInstanceNorm1d (0 ms) 2023-01-11T21:10:56.6131225Z [ RUN ] ModulesTest.PrettyPrintInstanceNorm2d 2023-01-11T21:10:56.6133214Z [ OK ] ModulesTest.PrettyPrintInstanceNorm2d (0 ms) 2023-01-11T21:10:56.6133578Z [ RUN ] ModulesTest.PrettyPrintInstanceNorm3d 2023-01-11T21:10:56.6135253Z [ OK ] ModulesTest.PrettyPrintInstanceNorm3d (0 ms) 2023-01-11T21:10:56.6135620Z [ RUN ] ModulesTest.PrettyPrintLayerNorm 2023-01-11T21:10:56.6137285Z [ OK ] ModulesTest.PrettyPrintLayerNorm (0 ms) 2023-01-11T21:10:56.6137635Z [ RUN ] ModulesTest.PrettyPrintGroupNorm 2023-01-11T21:10:56.6139285Z [ OK ] ModulesTest.PrettyPrintGroupNorm (0 ms) 2023-01-11T21:10:56.6139814Z [ RUN ] ModulesTest.PrettyPrintLocalResponseNorm 2023-01-11T21:10:56.6140671Z [ OK ] ModulesTest.PrettyPrintLocalResponseNorm (0 ms) 2023-01-11T21:10:56.6141338Z [ RUN ] ModulesTest.PrettyPrintEmbedding 2023-01-11T21:10:56.6145163Z [ OK ] ModulesTest.PrettyPrintEmbedding (0 ms) 2023-01-11T21:10:56.6145787Z [ RUN ] ModulesTest.PrettyPrintEmbeddingBag 2023-01-11T21:10:56.6150264Z [ OK ] ModulesTest.PrettyPrintEmbeddingBag (0 ms) 2023-01-11T21:10:56.6150647Z [ RUN ] ModulesTest.PrettyPrintL1Loss 2023-01-11T21:10:56.6151052Z [ OK ] ModulesTest.PrettyPrintL1Loss (0 ms) 2023-01-11T21:10:56.6151388Z [ RUN ] ModulesTest.PrettyPrintKLDivLoss 2023-01-11T21:10:56.6151739Z [ OK ] ModulesTest.PrettyPrintKLDivLoss (0 ms) 2023-01-11T21:10:56.6152073Z [ RUN ] ModulesTest.PrettyPrintMSELoss 2023-01-11T21:10:56.6152396Z [ OK ] ModulesTest.PrettyPrintMSELoss (0 ms) 2023-01-11T21:10:56.6152721Z [ RUN ] ModulesTest.PrettyPrintBCELoss 2023-01-11T21:10:56.6153052Z [ OK ] ModulesTest.PrettyPrintBCELoss (0 ms) 2023-01-11T21:10:56.6153397Z [ RUN ] ModulesTest.PrettyPrintHingeEmbeddingLoss 2023-01-11T21:10:56.6154114Z [ OK ] ModulesTest.PrettyPrintHingeEmbeddingLoss (0 ms) 2023-01-11T21:10:56.6154518Z [ RUN ] ModulesTest.PrettyPrintCosineEmbeddingLoss 2023-01-11T21:10:56.6154991Z [ OK ] ModulesTest.PrettyPrintCosineEmbeddingLoss (0 ms) 2023-01-11T21:10:56.6155371Z [ RUN ] ModulesTest.PrettyPrintTripletMarginLoss 2023-01-11T21:10:56.6156055Z [ OK ] ModulesTest.PrettyPrintTripletMarginLoss (0 ms) 2023-01-11T21:10:56.6156595Z [ RUN ] ModulesTest.PrettyPrintTripletMarginWithDistanceLoss 2023-01-11T21:10:56.6157378Z [ OK ] ModulesTest.PrettyPrintTripletMarginWithDistanceLoss (0 ms) 2023-01-11T21:10:56.6158030Z [ RUN ] ModulesTest.PrettyPrintNLLLoss 2023-01-11T21:10:56.6158653Z [ OK ] ModulesTest.PrettyPrintNLLLoss (0 ms) 2023-01-11T21:10:56.6159033Z [ RUN ] ModulesTest.PrettyPrinCrossEntropyLoss 2023-01-11T21:10:56.6159686Z [ OK ] ModulesTest.PrettyPrinCrossEntropyLoss (0 ms) 2023-01-11T21:10:56.6160315Z [ RUN ] ModulesTest.PrettyPrintMultiLabelMarginLoss 2023-01-11T21:10:56.6161075Z [ OK ] ModulesTest.PrettyPrintMultiLabelMarginLoss (0 ms) 2023-01-11T21:10:56.6161763Z [ RUN ] ModulesTest.PrettyPrintMultiLabelSoftMarginLoss 2023-01-11T21:10:56.6162707Z [ OK ] ModulesTest.PrettyPrintMultiLabelSoftMarginLoss (0 ms) 2023-01-11T21:10:56.6163166Z [ RUN ] ModulesTest.PrettyPrintSoftMarginLoss 2023-01-11T21:10:56.6163836Z [ OK ] ModulesTest.PrettyPrintSoftMarginLoss (0 ms) 2023-01-11T21:10:56.6164315Z [ RUN ] ModulesTest.PrettyPrintCosineSimilarity 2023-01-11T21:10:56.6164835Z [ OK ] ModulesTest.PrettyPrintCosineSimilarity (0 ms) 2023-01-11T21:10:56.6165516Z [ RUN ] ModulesTest.PrettyPrintPairwiseDistance 2023-01-11T21:10:56.6166153Z [ OK ] ModulesTest.PrettyPrintPairwiseDistance (0 ms) 2023-01-11T21:10:56.6166511Z [ RUN ] ModulesTest.PrettyPrintReflectionPad 2023-01-11T21:10:56.6166966Z [ OK ] ModulesTest.PrettyPrintReflectionPad (0 ms) 2023-01-11T21:10:56.6167641Z [ RUN ] ModulesTest.PrettyPrintReplicationPad 2023-01-11T21:10:56.6168099Z [ OK ] ModulesTest.PrettyPrintReplicationPad (0 ms) 2023-01-11T21:10:56.6168461Z [ RUN ] ModulesTest.PrettyPrintZeroPad2d 2023-01-11T21:10:56.6168807Z [ OK ] ModulesTest.PrettyPrintZeroPad2d (0 ms) 2023-01-11T21:10:56.6169136Z [ RUN ] ModulesTest.PrettyPrintConstantPad 2023-01-11T21:10:56.6169491Z [ OK ] ModulesTest.PrettyPrintConstantPad (0 ms) 2023-01-11T21:10:56.6169836Z [ RUN ] ModulesTest.PrettyPrintNestedModel 2023-01-11T21:10:56.6172012Z [ OK ] ModulesTest.PrettyPrintNestedModel (0 ms) 2023-01-11T21:10:56.6172564Z [ RUN ] ModulesTest.PrettyPrintELU 2023-01-11T21:10:56.6173146Z [ OK ] ModulesTest.PrettyPrintELU (0 ms) 2023-01-11T21:10:56.6173566Z [ RUN ] ModulesTest.PrettyPrintSELU 2023-01-11T21:10:56.6174137Z [ OK ] ModulesTest.PrettyPrintSELU (0 ms) 2023-01-11T21:10:56.6174824Z [ RUN ] ModulesTest.PrettyPrintGLU 2023-01-11T21:10:56.6175387Z [ OK ] ModulesTest.PrettyPrintGLU (0 ms) 2023-01-11T21:10:56.6175838Z [ RUN ] ModulesTest.PrettyPrintHardshrink 2023-01-11T21:10:56.6176495Z [ OK ] ModulesTest.PrettyPrintHardshrink (0 ms) 2023-01-11T21:10:56.6177099Z [ RUN ] ModulesTest.PrettyPrintHardtanh 2023-01-11T21:10:56.6177713Z [ OK ] ModulesTest.PrettyPrintHardtanh (0 ms) 2023-01-11T21:10:56.6178287Z [ RUN ] ModulesTest.PrettyPrintLeakyReLU 2023-01-11T21:10:56.6178891Z [ OK ] ModulesTest.PrettyPrintLeakyReLU (0 ms) 2023-01-11T21:10:56.6179469Z [ RUN ] ModulesTest.PrettyPrintLogSigmoid 2023-01-11T21:10:56.6179893Z [ OK ] ModulesTest.PrettyPrintLogSigmoid (0 ms) 2023-01-11T21:10:56.6180443Z [ RUN ] ModulesTest.PrettyPrintSoftmax 2023-01-11T21:10:56.6181063Z [ OK ] ModulesTest.PrettyPrintSoftmax (0 ms) 2023-01-11T21:10:56.6181429Z [ RUN ] ModulesTest.PrettyPrintSoftmin 2023-01-11T21:10:56.6181748Z [ OK ] ModulesTest.PrettyPrintSoftmin (0 ms) 2023-01-11T21:10:56.6182138Z [ RUN ] ModulesTest.PrettyPrintLogSoftmax 2023-01-11T21:10:56.6182680Z [ OK ] ModulesTest.PrettyPrintLogSoftmax (0 ms) 2023-01-11T21:10:56.6183287Z [ RUN ] ModulesTest.PrettyPrintSoftmax2d 2023-01-11T21:10:56.6183882Z [ OK ] ModulesTest.PrettyPrintSoftmax2d (0 ms) 2023-01-11T21:10:56.6184284Z [ RUN ] ModulesTest.PrettyPrintPReLU 2023-01-11T21:10:56.6184839Z [ OK ] ModulesTest.PrettyPrintPReLU (0 ms) 2023-01-11T21:10:56.6185381Z [ RUN ] ModulesTest.PrettyPrintReLU 2023-01-11T21:10:56.6185925Z [ OK ] ModulesTest.PrettyPrintReLU (0 ms) 2023-01-11T21:10:56.6186479Z [ RUN ] ModulesTest.PrettyPrintReLU6 2023-01-11T21:10:56.6187033Z [ OK ] ModulesTest.PrettyPrintReLU6 (0 ms) 2023-01-11T21:10:56.6187587Z [ RUN ] ModulesTest.PrettyPrintRReLU 2023-01-11T21:10:56.6188318Z [ OK ] ModulesTest.PrettyPrintRReLU (0 ms) 2023-01-11T21:10:56.6188870Z [ RUN ] ModulesTest.PrettyPrintCELU 2023-01-11T21:10:56.6189398Z [ OK ] ModulesTest.PrettyPrintCELU (0 ms) 2023-01-11T21:10:56.6189964Z [ RUN ] ModulesTest.PrettyPrintSigmoid 2023-01-11T21:10:56.6190556Z [ OK ] ModulesTest.PrettyPrintSigmoid (0 ms) 2023-01-11T21:10:56.6191144Z [ RUN ] ModulesTest.PrettyPrintPixelShuffle 2023-01-11T21:10:56.6191798Z [ OK ] ModulesTest.PrettyPrintPixelShuffle (0 ms) 2023-01-11T21:10:56.6192433Z [ RUN ] ModulesTest.PrettyPrintPixelUnshuffle 2023-01-11T21:10:56.6193085Z [ OK ] ModulesTest.PrettyPrintPixelUnshuffle (0 ms) 2023-01-11T21:10:56.6193757Z [ RUN ] ModulesTest.PrettyPrintSoftplus 2023-01-11T21:10:56.6194385Z [ OK ] ModulesTest.PrettyPrintSoftplus (0 ms) 2023-01-11T21:10:56.6195084Z [ RUN ] ModulesTest.PrettyPrintSoftshrink 2023-01-11T21:10:56.6195505Z [ OK ] ModulesTest.PrettyPrintSoftshrink (0 ms) 2023-01-11T21:10:56.6195927Z [ RUN ] ModulesTest.PrettyPrintSoftsign 2023-01-11T21:10:56.6196362Z [ OK ] ModulesTest.PrettyPrintSoftsign (0 ms) 2023-01-11T21:10:56.6196666Z [ RUN ] ModulesTest.PrettyPrintTanh 2023-01-11T21:10:56.6197103Z [ OK ] ModulesTest.PrettyPrintTanh (0 ms) 2023-01-11T21:10:56.6197488Z [ RUN ] ModulesTest.PrettyPrintTanhshrink 2023-01-11T21:10:56.6197838Z [ OK ] ModulesTest.PrettyPrintTanhshrink (0 ms) 2023-01-11T21:10:56.6198231Z [ RUN ] ModulesTest.PrettyPrintThreshold 2023-01-11T21:10:56.6198572Z [ OK ] ModulesTest.PrettyPrintThreshold (0 ms) 2023-01-11T21:10:56.6199021Z [ RUN ] ModulesTest.PrettyPrintCTCLoss 2023-01-11T21:10:56.6199392Z [ OK ] ModulesTest.PrettyPrintCTCLoss (0 ms) 2023-01-11T21:10:56.6199741Z [ RUN ] ModulesTest.PrettyPrintPoissonNLLLoss 2023-01-11T21:10:56.6200172Z [ OK ] ModulesTest.PrettyPrintPoissonNLLLoss (0 ms) 2023-01-11T21:10:56.6200533Z [ RUN ] ModulesTest.PrettyPrintMarginRankingLoss 2023-01-11T21:10:56.6200929Z [ OK ] ModulesTest.PrettyPrintMarginRankingLoss (0 ms) 2023-01-11T21:10:56.6201299Z [ RUN ] ModulesTest.PrettyPrintCrossMapLRN2d 2023-01-11T21:10:56.6201660Z [ OK ] ModulesTest.PrettyPrintCrossMapLRN2d (0 ms) 2023-01-11T21:10:56.6202002Z [ RUN ] ModulesTest.PrettyPrintAlphaDropout 2023-01-11T21:10:56.6202359Z [ OK ] ModulesTest.PrettyPrintAlphaDropout (0 ms) 2023-01-11T21:10:56.6202734Z [ RUN ] ModulesTest.PrettyPrintFeatureAlphaDropout 2023-01-11T21:10:56.6203122Z [ OK ] ModulesTest.PrettyPrintFeatureAlphaDropout (0 ms) 2023-01-11T21:10:56.6203511Z [ RUN ] ModulesTest.PrettyPrintBCEWithLogitsLoss 2023-01-11T21:10:56.6203899Z [ OK ] ModulesTest.PrettyPrintBCEWithLogitsLoss (0 ms) 2023-01-11T21:10:56.6204282Z [ RUN ] ModulesTest.PrettyPrintMultiheadAttention 2023-01-11T21:10:56.6207263Z [ OK ] ModulesTest.PrettyPrintMultiheadAttention (0 ms) 2023-01-11T21:10:56.6207629Z [ RUN ] ModulesTest.PrettyPrintRNNCell 2023-01-11T21:10:56.6213498Z [ OK ] ModulesTest.PrettyPrintRNNCell (0 ms) 2023-01-11T21:10:56.6213828Z [ RUN ] ModulesTest.PrettyPrintLSTMCell 2023-01-11T21:10:56.6220028Z [ OK ] ModulesTest.PrettyPrintLSTMCell (0 ms) 2023-01-11T21:10:56.6220371Z [ RUN ] ModulesTest.PrettyPrintGRUCell 2023-01-11T21:10:56.6225694Z [ OK ] ModulesTest.PrettyPrintGRUCell (0 ms) 2023-01-11T21:10:56.6226078Z [ RUN ] ModulesTest.PrettyPrintAdaptiveLogSoftmaxWithLoss 2023-01-11T21:10:56.6234259Z [ OK ] ModulesTest.PrettyPrintAdaptiveLogSoftmaxWithLoss (0 ms) 2023-01-11T21:10:56.6235141Z [----------] 256 tests from ModulesTest (164044 ms total) 2023-01-11T21:10:56.6235303Z 2023-01-11T21:10:56.6235435Z [----------] 1 test from NestedTest 2023-01-11T21:10:56.6235706Z [ RUN ] NestedTest.Nested 2023-01-11T21:10:56.6237916Z [W NestedTensorImpl.cpp:179] Warning: The PyTorch API of nested tensors is in prototype stage and will change in the near future. (function operator()) 2023-01-11T21:10:56.6241775Z [ OK ] NestedTest.Nested (0 ms) 2023-01-11T21:10:56.6242221Z [----------] 1 test from NestedTest (0 ms total) 2023-01-11T21:10:56.6242380Z 2023-01-11T21:10:56.6242550Z [----------] 10 tests from ParameterDictTest 2023-01-11T21:10:56.6242887Z [ RUN ] ParameterDictTest.ConstructFromTensor 2023-01-11T21:10:56.6246721Z [ OK ] ParameterDictTest.ConstructFromTensor (0 ms) 2023-01-11T21:10:56.6247164Z [ RUN ] ParameterDictTest.ConstructFromOrderedDict 2023-01-11T21:10:56.6250572Z [ OK ] ParameterDictTest.ConstructFromOrderedDict (0 ms) 2023-01-11T21:10:56.6251091Z [ RUN ] ParameterDictTest.InsertAndContains 2023-01-11T21:10:56.6252063Z [ OK ] ParameterDictTest.InsertAndContains (0 ms) 2023-01-11T21:10:56.6252448Z [ RUN ] ParameterDictTest.InsertAndClear 2023-01-11T21:10:56.6253671Z [ OK ] ParameterDictTest.InsertAndClear (0 ms) 2023-01-11T21:10:56.6254029Z [ RUN ] ParameterDictTest.InsertAndPop 2023-01-11T21:10:56.6273057Z [ OK ] ParameterDictTest.InsertAndPop (1 ms) 2023-01-11T21:10:56.6273614Z [ RUN ] ParameterDictTest.SimpleUpdate 2023-01-11T21:10:56.6293988Z [ OK ] ParameterDictTest.SimpleUpdate (2 ms) 2023-01-11T21:10:56.6294672Z [ RUN ] ParameterDictTest.Keys 2023-01-11T21:10:56.6296528Z [ OK ] ParameterDictTest.Keys (0 ms) 2023-01-11T21:10:56.6297184Z [ RUN ] ParameterDictTest.Values 2023-01-11T21:10:56.6300580Z [ OK ] ParameterDictTest.Values (0 ms) 2023-01-11T21:10:56.6301206Z [ RUN ] ParameterDictTest.Get 2023-01-11T21:10:56.6304115Z [ OK ] ParameterDictTest.Get (0 ms) 2023-01-11T21:10:56.6304836Z [ RUN ] ParameterDictTest.PrettyPrintParameterDict 2023-01-11T21:10:56.6309376Z [ OK ] ParameterDictTest.PrettyPrintParameterDict (0 ms) 2023-01-11T21:10:56.6310101Z [----------] 10 tests from ParameterDictTest (6 ms total) 2023-01-11T21:10:56.6310311Z 2023-01-11T21:10:56.6310476Z [----------] 8 tests from ParameterListTest 2023-01-11T21:10:56.6310939Z [ RUN ] ParameterListTest.ConstructsFromSharedPointer 2023-01-11T21:10:56.6311876Z [ OK ] ParameterListTest.ConstructsFromSharedPointer (0 ms) 2023-01-11T21:10:56.6312533Z [ RUN ] ParameterListTest.isEmpty 2023-01-11T21:10:56.6313417Z [ OK ] ParameterListTest.isEmpty (0 ms) 2023-01-11T21:10:56.6313840Z [ RUN ] ParameterListTest.PushBackAddsAnElement 2023-01-11T21:10:56.6315797Z [ OK ] ParameterListTest.PushBackAddsAnElement (0 ms) 2023-01-11T21:10:56.6316238Z [ RUN ] ParameterListTest.ForEachLoop 2023-01-11T21:10:56.6320815Z [ OK ] ParameterListTest.ForEachLoop (0 ms) 2023-01-11T21:10:56.6321227Z [ RUN ] ParameterListTest.AccessWithAt 2023-01-11T21:10:56.6375164Z [ OK ] ParameterListTest.AccessWithAt (5 ms) 2023-01-11T21:10:56.6375620Z [ RUN ] ParameterListTest.ExtendPushesParametersFromOtherParameterList 2023-01-11T21:10:56.6384840Z [ OK ] ParameterListTest.ExtendPushesParametersFromOtherParameterList (0 ms) 2023-01-11T21:10:56.6385331Z [ RUN ] ParameterListTest.PrettyPrintParameterList 2023-01-11T21:10:56.6386975Z [ OK ] ParameterListTest.PrettyPrintParameterList (0 ms) 2023-01-11T21:10:56.6387345Z [ RUN ] ParameterListTest.IncrementAdd 2023-01-11T21:10:56.6397882Z [ OK ] ParameterListTest.IncrementAdd (1 ms) 2023-01-11T21:10:56.6398419Z [----------] 8 tests from ParameterListTest (8 ms total) 2023-01-11T21:10:56.6398696Z 2023-01-11T21:10:56.6398858Z [----------] 1 test from NamespaceTests 2023-01-11T21:10:56.6399261Z [ RUN ] NamespaceTests.NotLeakingSymbolsFromTorchAutogradNamespace 2023-01-11T21:10:56.6399754Z [ OK ] NamespaceTests.NotLeakingSymbolsFromTorchAutogradNamespace (0 ms) 2023-01-11T21:10:56.6400229Z [----------] 1 test from NamespaceTests (0 ms total) 2023-01-11T21:10:56.6400453Z 2023-01-11T21:10:56.6400687Z [----------] 7 tests from NNUtilsTest 2023-01-11T21:10:56.6401113Z [ RUN ] NNUtilsTest.ClipGradNorm 2023-01-11T21:10:56.6605162Z [ OK ] NNUtilsTest.ClipGradNorm (20 ms) 2023-01-11T21:10:56.6605647Z [ RUN ] NNUtilsTest.ClipGradNormErrorIfNonfinite 2023-01-11T21:10:57.4862651Z [ OK ] NNUtilsTest.ClipGradNormErrorIfNonfinite (825 ms) 2023-01-11T21:10:57.4863041Z [ RUN ] NNUtilsTest.ClipGradValue 2023-01-11T21:10:57.4883958Z [ OK ] NNUtilsTest.ClipGradValue (2 ms) 2023-01-11T21:10:57.4884293Z [ RUN ] NNUtilsTest.ConvertParameters 2023-01-11T21:10:57.4931104Z [ OK ] NNUtilsTest.ConvertParameters (4 ms) 2023-01-11T21:10:57.4931431Z [ RUN ] NNUtilsTest.PackSequence 2023-01-11T21:10:58.3049010Z [ OK ] NNUtilsTest.PackSequence (811 ms) 2023-01-11T21:10:58.3049403Z [ RUN ] NNUtilsTest.PackPaddedSequence 2023-01-11T21:10:58.4357828Z [ OK ] NNUtilsTest.PackPaddedSequence (130 ms) 2023-01-11T21:10:58.4358352Z [ RUN ] NNUtilsTest.PadSequence 2023-01-11T21:10:58.5883064Z [ OK ] NNUtilsTest.PadSequence (152 ms) 2023-01-11T21:10:58.5883641Z [----------] 7 tests from NNUtilsTest (1948 ms total) 2023-01-11T21:10:58.5883803Z 2023-01-11T21:10:58.5883978Z [----------] 3 tests from PackedSequenceTest 2023-01-11T21:10:58.5884278Z [ RUN ] PackedSequenceTest.WrongOrder 2023-01-11T21:10:58.5926437Z [ OK ] PackedSequenceTest.WrongOrder (4 ms) 2023-01-11T21:10:58.5927024Z [ RUN ] PackedSequenceTest.TotalLength 2023-01-11T21:10:58.6128782Z [ OK ] PackedSequenceTest.TotalLength (20 ms) 2023-01-11T21:10:58.6129109Z [ RUN ] PackedSequenceTest.To 2023-01-11T21:10:58.6151224Z [ OK ] PackedSequenceTest.To (2 ms) 2023-01-11T21:10:58.6151574Z [----------] 3 tests from PackedSequenceTest (26 ms total) 2023-01-11T21:10:58.6151754Z 2023-01-11T21:10:58.6152009Z [----------] 34 tests from OptimTest 2023-01-11T21:10:58.6152316Z [ RUN ] OptimTest.OptimizerAccessors 2023-01-11T21:10:58.6178236Z [ OK ] OptimTest.OptimizerAccessors (2 ms) 2023-01-11T21:10:58.6178581Z [ RUN ] OptimTest.OldInterface 2023-01-11T21:10:58.6197413Z [ OK ] OptimTest.OldInterface (1 ms) 2023-01-11T21:10:58.6197752Z [ RUN ] OptimTest.XORConvergence_SGD 2023-01-11T21:11:19.1125046Z [ OK ] OptimTest.XORConvergence_SGD (20492 ms) 2023-01-11T21:11:19.1126319Z [ RUN ] OptimTest.XORConvergence_LBFGS 2023-01-11T21:11:33.6987910Z [ OK ] OptimTest.XORConvergence_LBFGS (14586 ms) 2023-01-11T21:11:33.6988278Z [ RUN ] OptimTest.XORConvergence_Adagrad 2023-01-11T21:11:42.1406886Z [ OK ] OptimTest.XORConvergence_Adagrad (8441 ms) 2023-01-11T21:11:42.1407251Z [ RUN ] OptimTest.XORConvergence_RMSprop 2023-01-11T21:11:50.4883586Z [ OK ] OptimTest.XORConvergence_RMSprop (8347 ms) 2023-01-11T21:11:50.4883999Z [ RUN ] OptimTest.XORConvergence_RMSpropWithMomentum 2023-01-11T21:12:16.9159405Z [ OK ] OptimTest.XORConvergence_RMSpropWithMomentum (26427 ms) 2023-01-11T21:12:16.9160067Z [ RUN ] OptimTest.XORConvergence_Adam 2023-01-11T21:12:24.8180797Z [ OK ] OptimTest.XORConvergence_Adam (7902 ms) 2023-01-11T21:12:24.8181196Z [ RUN ] OptimTest.XORConvergence_AdamWithAmsgrad 2023-01-11T21:12:32.7736480Z [ OK ] OptimTest.XORConvergence_AdamWithAmsgrad (7955 ms) 2023-01-11T21:12:32.7736880Z [ RUN ] OptimTest.ProducesPyTorchValues_Adam 2023-01-11T21:12:35.7834165Z [ OK ] OptimTest.ProducesPyTorchValues_Adam (3009 ms) 2023-01-11T21:12:35.7834673Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamWithWeightDecay 2023-01-11T21:12:38.9173909Z [ OK ] OptimTest.ProducesPyTorchValues_AdamWithWeightDecay (3133 ms) 2023-01-11T21:12:38.9174792Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamWithWeightDecayAndAMSGrad 2023-01-11T21:12:42.1537625Z [ OK ] OptimTest.ProducesPyTorchValues_AdamWithWeightDecayAndAMSGrad (3236 ms) 2023-01-11T21:12:42.1538065Z [ RUN ] OptimTest.XORConvergence_AdamW 2023-01-11T21:12:50.3802551Z [ OK ] OptimTest.XORConvergence_AdamW (8226 ms) 2023-01-11T21:12:50.3803011Z [ RUN ] OptimTest.XORConvergence_AdamWWithAmsgrad 2023-01-11T21:12:58.5771898Z [ OK ] OptimTest.XORConvergence_AdamWWithAmsgrad (8196 ms) 2023-01-11T21:12:58.5772320Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamW 2023-01-11T21:13:01.7448390Z [ OK ] OptimTest.ProducesPyTorchValues_AdamW (3167 ms) 2023-01-11T21:13:01.7448894Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamWWithoutWeightDecay 2023-01-11T21:13:04.7811553Z [ OK ] OptimTest.ProducesPyTorchValues_AdamWWithoutWeightDecay (3036 ms) 2023-01-11T21:13:04.7812053Z [ RUN ] OptimTest.ProducesPyTorchValues_AdamWWithAMSGrad 2023-01-11T21:13:08.0800065Z [ OK ] OptimTest.ProducesPyTorchValues_AdamWWithAMSGrad (3298 ms) 2023-01-11T21:13:08.0800487Z [ RUN ] OptimTest.ProducesPyTorchValues_Adagrad 2023-01-11T21:13:10.5818445Z [ OK ] OptimTest.ProducesPyTorchValues_Adagrad (2501 ms) 2023-01-11T21:13:10.5818916Z [ RUN ] OptimTest.ProducesPyTorchValues_AdagradWithWeightDecay 2023-01-11T21:13:13.2012769Z [ OK ] OptimTest.ProducesPyTorchValues_AdagradWithWeightDecay (2619 ms) 2023-01-11T21:13:13.2013272Z [ RUN ] OptimTest.ProducesPyTorchValues_AdagradWithWeightDecayAndLRDecay 2023-01-11T21:13:15.8172956Z [ OK ] OptimTest.ProducesPyTorchValues_AdagradWithWeightDecayAndLRDecay (2615 ms) 2023-01-11T21:13:15.8173420Z [ RUN ] OptimTest.ProducesPyTorchValues_RMSprop 2023-01-11T21:13:18.4642801Z [ OK ] OptimTest.ProducesPyTorchValues_RMSprop (2646 ms) 2023-01-11T21:13:18.4643264Z [ RUN ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecay 2023-01-11T21:13:21.2263195Z [ OK ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecay (2761 ms) 2023-01-11T21:13:21.2263713Z [ RUN ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecayAndCentered 2023-01-11T21:13:24.3257016Z [ OK ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecayAndCentered (3099 ms) 2023-01-11T21:13:24.3257575Z [ RUN ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecayAndCenteredAndMomentum 2023-01-11T21:13:27.7390034Z [ OK ] OptimTest.ProducesPyTorchValues_RMSpropWithWeightDecayAndCenteredAndMomentum (3413 ms) 2023-01-11T21:13:27.7390550Z [ RUN ] OptimTest.ProducesPyTorchValues_SGD 2023-01-11T21:13:29.9412184Z [ OK ] OptimTest.ProducesPyTorchValues_SGD (2202 ms) 2023-01-11T21:13:29.9412621Z [ RUN ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecay 2023-01-11T21:13:32.2668237Z [ OK ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecay (2325 ms) 2023-01-11T21:13:32.2668725Z [ RUN ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecayAndMomentum 2023-01-11T21:13:34.8287778Z [ OK ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecayAndMomentum (2561 ms) 2023-01-11T21:13:34.8288295Z [ RUN ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecayAndNesterovMomentum 2023-01-11T21:13:37.4748301Z [ OK ] OptimTest.ProducesPyTorchValues_SGDWithWeightDecayAndNesterovMomentum (2646 ms) 2023-01-11T21:13:37.4748770Z [ RUN ] OptimTest.ProducesPyTorchValues_LBFGS 2023-01-11T21:13:39.7623165Z [ OK ] OptimTest.ProducesPyTorchValues_LBFGS (2287 ms) 2023-01-11T21:13:39.7623582Z [ RUN ] OptimTest.ProducesPyTorchValues_LBFGS_with_line_search 2023-01-11T21:13:51.8516942Z [ OK ] OptimTest.ProducesPyTorchValues_LBFGS_with_line_search (12089 ms) 2023-01-11T21:13:51.8517577Z [ RUN ] OptimTest.ZeroGrad 2023-01-11T21:13:51.8533876Z [ OK ] OptimTest.ZeroGrad (1 ms) 2023-01-11T21:13:51.8534304Z [ RUN ] OptimTest.ExternalVectorOfParameters 2023-01-11T21:13:51.8558838Z [ OK ] OptimTest.ExternalVectorOfParameters (2 ms) 2023-01-11T21:13:51.8559184Z [ RUN ] OptimTest.AddParameter_LBFGS 2023-01-11T21:13:51.8569024Z [ OK ] OptimTest.AddParameter_LBFGS (0 ms) 2023-01-11T21:13:51.8569630Z [ RUN ] OptimTest.CheckLRChange_StepLR_Adam 2023-01-11T21:13:51.8570551Z [ OK ] OptimTest.CheckLRChange_StepLR_Adam (0 ms) 2023-01-11T21:13:51.8571090Z [----------] 34 tests from OptimTest (173241 ms total) 2023-01-11T21:13:51.8571377Z 2023-01-11T21:13:51.8573791Z [----------] 29 tests from OrderedDictTest 2023-01-11T21:13:51.8574557Z [ RUN ] OrderedDictTest.IsEmptyAfterDefaultConstruction 2023-01-11T21:13:51.8575361Z [ OK ] OrderedDictTest.IsEmptyAfterDefaultConstruction (0 ms) 2023-01-11T21:13:51.8576228Z [ RUN ] OrderedDictTest.InsertAddsElementsWhenTheyAreYetNotPresent 2023-01-11T21:13:51.8576890Z [ OK ] OrderedDictTest.InsertAddsElementsWhenTheyAreYetNotPresent (0 ms) 2023-01-11T21:13:51.8577366Z [ RUN ] OrderedDictTest.GetReturnsValuesWhenTheyArePresent 2023-01-11T21:13:51.8577805Z [ OK ] OrderedDictTest.GetReturnsValuesWhenTheyArePresent (0 ms) 2023-01-11T21:13:51.8578278Z [ RUN ] OrderedDictTest.GetThrowsWhenPassedKeysThatAreNotPresent 2023-01-11T21:13:51.8606310Z [ OK ] OrderedDictTest.GetThrowsWhenPassedKeysThatAreNotPresent (3 ms) 2023-01-11T21:13:51.8606868Z [ RUN ] OrderedDictTest.CanInitializeFromList 2023-01-11T21:13:51.8607230Z [ OK ] OrderedDictTest.CanInitializeFromList (0 ms) 2023-01-11T21:13:51.8607683Z [ RUN ] OrderedDictTest.InsertThrowsWhenPassedElementsThatArePresent 2023-01-11T21:13:51.8638439Z [ OK ] OrderedDictTest.InsertThrowsWhenPassedElementsThatArePresent (3 ms) 2023-01-11T21:13:51.8639172Z [ RUN ] OrderedDictTest.FrontReturnsTheFirstItem 2023-01-11T21:13:51.8639560Z [ OK ] OrderedDictTest.FrontReturnsTheFirstItem (0 ms) 2023-01-11T21:13:51.8639936Z [ RUN ] OrderedDictTest.FrontThrowsWhenEmpty 2023-01-11T21:13:51.8653854Z [ OK ] OrderedDictTest.FrontThrowsWhenEmpty (1 ms) 2023-01-11T21:13:51.8654227Z [ RUN ] OrderedDictTest.BackReturnsTheLastItem 2023-01-11T21:13:51.8654739Z [ OK ] OrderedDictTest.BackReturnsTheLastItem (0 ms) 2023-01-11T21:13:51.8655103Z [ RUN ] OrderedDictTest.BackThrowsWhenEmpty 2023-01-11T21:13:51.8669974Z [ OK ] OrderedDictTest.BackThrowsWhenEmpty (1 ms) 2023-01-11T21:13:51.8670789Z [ RUN ] OrderedDictTest.FindReturnsPointersToValuesWhenPresent 2023-01-11T21:13:51.8671689Z [ OK ] OrderedDictTest.FindReturnsPointersToValuesWhenPresent (0 ms) 2023-01-11T21:13:51.8672684Z [ RUN ] OrderedDictTest.FindReturnsNullPointersWhenPasesdKeysThatAreNotPresent 2023-01-11T21:13:51.8674056Z [ OK ] OrderedDictTest.FindReturnsNullPointersWhenPasesdKeysThatAreNotPresent (0 ms) 2023-01-11T21:13:51.8675222Z [ RUN ] OrderedDictTest.SubscriptOperatorThrowsWhenPassedKeysThatAreNotPresent 2023-01-11T21:13:51.8676336Z [ OK ] OrderedDictTest.SubscriptOperatorThrowsWhenPassedKeysThatAreNotPresent (0 ms) 2023-01-11T21:13:51.8677474Z [ RUN ] OrderedDictTest.SubscriptOperatorReturnsItemsPositionallyWhenPassedIntegers 2023-01-11T21:13:51.8678641Z [ OK ] OrderedDictTest.SubscriptOperatorReturnsItemsPositionallyWhenPassedIntegers (0 ms) 2023-01-11T21:13:51.8679783Z [ RUN ] OrderedDictTest.SubscriptOperatorsThrowswhenPassedKeysThatAreNotPresent 2023-01-11T21:13:51.8706147Z [ OK ] OrderedDictTest.SubscriptOperatorsThrowswhenPassedKeysThatAreNotPresent (3 ms) 2023-01-11T21:13:51.8707205Z [ RUN ] OrderedDictTest.UpdateInsertsAllItemsFromAnotherOrderedDict 2023-01-11T21:13:51.8708143Z [ OK ] OrderedDictTest.UpdateInsertsAllItemsFromAnotherOrderedDict (0 ms) 2023-01-11T21:13:51.8708979Z [ RUN ] OrderedDictTest.UpdateAlsoChecksForDuplicates 2023-01-11T21:13:51.8725316Z [ OK ] OrderedDictTest.UpdateAlsoChecksForDuplicates (1 ms) 2023-01-11T21:13:51.8725805Z [ RUN ] OrderedDictTest.CanIterateItems 2023-01-11T21:13:51.8726211Z [ OK ] OrderedDictTest.CanIterateItems (0 ms) 2023-01-11T21:13:51.8726588Z [ RUN ] OrderedDictTest.EraseWorks 2023-01-11T21:13:51.8726939Z [ OK ] OrderedDictTest.EraseWorks (0 ms) 2023-01-11T21:13:51.8727538Z [ RUN ] OrderedDictTest.ClearMakesTheDictEmpty 2023-01-11T21:13:51.8728061Z [ OK ] OrderedDictTest.ClearMakesTheDictEmpty (0 ms) 2023-01-11T21:13:51.8728428Z [ RUN ] OrderedDictTest.CanCopyConstruct 2023-01-11T21:13:51.8728785Z [ OK ] OrderedDictTest.CanCopyConstruct (0 ms) 2023-01-11T21:13:51.8729108Z [ RUN ] OrderedDictTest.CanCopyAssign 2023-01-11T21:13:51.8729435Z [ OK ] OrderedDictTest.CanCopyAssign (0 ms) 2023-01-11T21:13:51.8729764Z [ RUN ] OrderedDictTest.CanMoveConstruct 2023-01-11T21:13:51.8730094Z [ OK ] OrderedDictTest.CanMoveConstruct (0 ms) 2023-01-11T21:13:51.8730416Z [ RUN ] OrderedDictTest.CanMoveAssign 2023-01-11T21:13:51.8730740Z [ OK ] OrderedDictTest.CanMoveAssign (0 ms) 2023-01-11T21:13:51.8731065Z [ RUN ] OrderedDictTest.CanInsertWithBraces 2023-01-11T21:13:51.8731420Z [ OK ] OrderedDictTest.CanInsertWithBraces (0 ms) 2023-01-11T21:13:51.8731831Z [ RUN ] OrderedDictTest.ErrorMessagesIncludeTheKeyDescription 2023-01-11T21:13:51.8759992Z [ OK ] OrderedDictTest.ErrorMessagesIncludeTheKeyDescription (3 ms) 2023-01-11T21:13:51.8760568Z [ RUN ] OrderedDictTest.KeysReturnsAllKeys 2023-01-11T21:13:51.8761076Z [ OK ] OrderedDictTest.KeysReturnsAllKeys (0 ms) 2023-01-11T21:13:51.8761442Z [ RUN ] OrderedDictTest.ValuesReturnsAllValues 2023-01-11T21:13:51.8761801Z [ OK ] OrderedDictTest.ValuesReturnsAllValues (0 ms) 2023-01-11T21:13:51.8762169Z [ RUN ] OrderedDictTest.ItemsReturnsAllItems 2023-01-11T21:13:51.8762529Z [ OK ] OrderedDictTest.ItemsReturnsAllItems (0 ms) 2023-01-11T21:13:51.8762896Z [----------] 29 tests from OrderedDictTest (18 ms total) 2023-01-11T21:13:51.8763043Z 2023-01-11T21:13:51.8763187Z [----------] 13 tests from RNNTest 2023-01-11T21:13:51.8763468Z [ RUN ] RNNTest.CheckOutputSizes 2023-01-11T21:13:51.9694196Z [ OK ] RNNTest.CheckOutputSizes (93 ms) 2023-01-11T21:13:51.9694735Z [ RUN ] RNNTest.CheckOutputSizesProj 2023-01-11T21:13:52.0612084Z [ OK ] RNNTest.CheckOutputSizesProj (91 ms) 2023-01-11T21:13:52.0612446Z [ RUN ] RNNTest.CheckOutputValuesMatchPyTorch 2023-01-11T21:13:52.0666417Z [ OK ] RNNTest.CheckOutputValuesMatchPyTorch (5 ms) 2023-01-11T21:13:52.0666726Z [ RUN ] RNNTest.EndToEndLSTM 2023-01-11T21:14:15.5763480Z [ OK ] RNNTest.EndToEndLSTM (23509 ms) 2023-01-11T21:14:15.5763856Z [ RUN ] RNNTest.EndToEndLSTMProj 2023-01-11T21:14:39.9805485Z [ OK ] RNNTest.EndToEndLSTMProj (24404 ms) 2023-01-11T21:14:39.9805803Z [ RUN ] RNNTest.EndToEndGRU 2023-01-11T21:15:00.1442070Z [ OK ] RNNTest.EndToEndGRU (20163 ms) 2023-01-11T21:15:00.1442421Z [ RUN ] RNNTest.EndToEndRNNRelu 2023-01-11T21:15:11.1181596Z [ OK ] RNNTest.EndToEndRNNRelu (10973 ms) 2023-01-11T21:15:11.1181936Z [ RUN ] RNNTest.EndToEndRNNTanh 2023-01-11T21:15:23.5721210Z [ OK ] RNNTest.EndToEndRNNTanh (12453 ms) 2023-01-11T21:15:23.5721620Z [ RUN ] RNNTest.PrettyPrintRNNs 2023-01-11T21:15:23.6005423Z [ OK ] RNNTest.PrettyPrintRNNs (28 ms) 2023-01-11T21:15:23.6005780Z [ RUN ] RNNTest.BidirectionalFlattenParameters 2023-01-11T21:15:23.7242327Z [ OK ] RNNTest.BidirectionalFlattenParameters (123 ms) 2023-01-11T21:15:23.7242750Z [ RUN ] RNNTest.BidirectionalGRUReverseForward 2023-01-11T21:15:23.7446453Z [ OK ] RNNTest.BidirectionalGRUReverseForward (20 ms) 2023-01-11T21:15:23.7447053Z [ RUN ] RNNTest.BidirectionalLSTMReverseForward 2023-01-11T21:15:23.7631272Z [ OK ] RNNTest.BidirectionalLSTMReverseForward (18 ms) 2023-01-11T21:15:23.7631851Z [ RUN ] RNNTest.UsePackedSequenceAsInput 2023-01-11T21:15:23.7871372Z [ OK ] RNNTest.UsePackedSequenceAsInput (23 ms) 2023-01-11T21:15:23.7871732Z [----------] 13 tests from RNNTest (91910 ms total) 2023-01-11T21:15:23.7873072Z 2023-01-11T21:15:23.7873681Z [----------] 19 tests from SequentialTest 2023-01-11T21:15:23.7874315Z [ RUN ] SequentialTest.CanContainThings 2023-01-11T21:15:23.7875548Z [ OK ] SequentialTest.CanContainThings (0 ms) 2023-01-11T21:15:23.7876222Z [ RUN ] SequentialTest.ConstructsFromSharedPointer 2023-01-11T21:15:23.7877039Z [ OK ] SequentialTest.ConstructsFromSharedPointer (0 ms) 2023-01-11T21:15:23.7877650Z [ RUN ] SequentialTest.ConstructsFromConcreteType 2023-01-11T21:15:23.7878491Z [ OK ] SequentialTest.ConstructsFromConcreteType (0 ms) 2023-01-11T21:15:23.7879095Z [ RUN ] SequentialTest.ConstructsFromModuleHolder 2023-01-11T21:15:23.7879976Z [ OK ] SequentialTest.ConstructsFromModuleHolder (0 ms) 2023-01-11T21:15:23.7880580Z [ RUN ] SequentialTest.PushBackAddsAnElement 2023-01-11T21:15:23.7887203Z [ OK ] SequentialTest.PushBackAddsAnElement (0 ms) 2023-01-11T21:15:23.7887699Z [ RUN ] SequentialTest.AccessWithAt 2023-01-11T21:15:23.7920248Z [ OK ] SequentialTest.AccessWithAt (3 ms) 2023-01-11T21:15:23.7920757Z [ RUN ] SequentialTest.AccessWithPtr 2023-01-11T21:15:23.7949938Z [ OK ] SequentialTest.AccessWithPtr (2 ms) 2023-01-11T21:15:23.7950579Z [ RUN ] SequentialTest.CallingForwardOnEmptySequentialIsDisallowed 2023-01-11T21:15:23.7966613Z [ OK ] SequentialTest.CallingForwardOnEmptySequentialIsDisallowed (1 ms) 2023-01-11T21:15:23.7967223Z [ RUN ] SequentialTest.CallingForwardChainsCorrectly 2023-01-11T21:15:23.7967896Z [ OK ] SequentialTest.CallingForwardChainsCorrectly (0 ms) 2023-01-11T21:15:23.7968603Z [ RUN ] SequentialTest.CallingForwardWithTheWrongReturnTypeThrows 2023-01-11T21:15:23.7985452Z [ OK ] SequentialTest.CallingForwardWithTheWrongReturnTypeThrows (1 ms) 2023-01-11T21:15:23.7986162Z [ RUN ] SequentialTest.TheReturnTypeOfForwardDefaultsToTensor 2023-01-11T21:15:23.7987437Z [ OK ] SequentialTest.TheReturnTypeOfForwardDefaultsToTensor (0 ms) 2023-01-11T21:15:23.7987966Z [ RUN ] SequentialTest.ForwardReturnsTheLastValue 2023-01-11T21:15:23.8027220Z [ OK ] SequentialTest.ForwardReturnsTheLastValue (3 ms) 2023-01-11T21:15:23.8027880Z [ RUN ] SequentialTest.SanityCheckForHoldingStandardModules 2023-01-11T21:15:23.8045091Z [ OK ] SequentialTest.SanityCheckForHoldingStandardModules (1 ms) 2023-01-11T21:15:23.8045774Z [ RUN ] SequentialTest.ExtendPushesModulesFromOtherSequential 2023-01-11T21:15:23.8046943Z [ OK ] SequentialTest.ExtendPushesModulesFromOtherSequential (0 ms) 2023-01-11T21:15:23.8047581Z [ RUN ] SequentialTest.HasReferenceSemantics 2023-01-11T21:15:23.8050700Z [ OK ] SequentialTest.HasReferenceSemantics (0 ms) 2023-01-11T21:15:23.8051043Z [ RUN ] SequentialTest.IsCloneable 2023-01-11T21:15:23.8102539Z [ OK ] SequentialTest.IsCloneable (5 ms) 2023-01-11T21:15:23.8102893Z [ RUN ] SequentialTest.RegistersElementsAsSubmodules 2023-01-11T21:15:23.8107859Z [ OK ] SequentialTest.RegistersElementsAsSubmodules (0 ms) 2023-01-11T21:15:23.8108252Z [ RUN ] SequentialTest.PrettyPrintSequential 2023-01-11T21:15:23.8139093Z [ OK ] SequentialTest.PrettyPrintSequential (3 ms) 2023-01-11T21:15:23.8139551Z [ RUN ] SequentialTest.ModuleForwardMethodOptionalArg 2023-01-11T21:15:23.8541339Z [ OK ] SequentialTest.ModuleForwardMethodOptionalArg (40 ms) 2023-01-11T21:15:23.8541890Z [----------] 19 tests from SequentialTest (66 ms total) 2023-01-11T21:15:23.8542059Z 2023-01-11T21:15:23.8542237Z [----------] 11 tests from TransformerTest 2023-01-11T21:15:23.8542724Z [ RUN ] TransformerTest.TransformerEncoderLayer 2023-01-11T21:15:23.9628375Z [ OK ] TransformerTest.TransformerEncoderLayer (108 ms) 2023-01-11T21:15:23.9629090Z [ RUN ] TransformerTest.TransformerDecoderLayer 2023-01-11T21:15:24.0864978Z [ OK ] TransformerTest.TransformerDecoderLayer (123 ms) 2023-01-11T21:15:24.0865688Z [ RUN ] TransformerTest.TransformerDecoderLayer_gelu 2023-01-11T21:15:24.1505319Z [ OK ] TransformerTest.TransformerDecoderLayer_gelu (64 ms) 2023-01-11T21:15:24.1505731Z [ RUN ] TransformerTest.TransformerEncoder 2023-01-11T21:15:24.3804545Z [ OK ] TransformerTest.TransformerEncoder (229 ms) 2023-01-11T21:15:24.3805016Z [ RUN ] TransformerTest.PrettyPrintTransformerEncoderLayer 2023-01-11T21:15:24.3823498Z [ OK ] TransformerTest.PrettyPrintTransformerEncoderLayer (1 ms) 2023-01-11T21:15:24.3823946Z [ RUN ] TransformerTest.PrettyPrintTransformerEncoder 2023-01-11T21:15:24.3926994Z [ OK ] TransformerTest.PrettyPrintTransformerEncoder (10 ms) 2023-01-11T21:15:24.3927452Z [ RUN ] TransformerTest.PrettyPrintTransformerDecoderLayer 2023-01-11T21:15:24.3948457Z [ OK ] TransformerTest.PrettyPrintTransformerDecoderLayer (2 ms) 2023-01-11T21:15:24.3948848Z [ RUN ] TransformerTest.TransformerDecoder 2023-01-11T21:15:25.0879514Z [ OK ] TransformerTest.TransformerDecoder (692 ms) 2023-01-11T21:15:25.0880250Z [ RUN ] TransformerTest.PrettyPrintTransformerDecoder 2023-01-11T21:15:25.1006921Z [ OK ] TransformerTest.PrettyPrintTransformerDecoder (12 ms) 2023-01-11T21:15:25.1007619Z [ RUN ] TransformerTest.Transformer 2023-01-11T21:15:25.3650556Z [ OK ] TransformerTest.Transformer (264 ms) 2023-01-11T21:15:25.3651241Z [ RUN ] TransformerTest.TransformerArgsCorrectness 2023-01-11T21:15:25.3810437Z [ OK ] TransformerTest.TransformerArgsCorrectness (16 ms) 2023-01-11T21:15:25.3811122Z [----------] 11 tests from TransformerTest (1526 ms total) 2023-01-11T21:15:25.3811635Z 2023-01-11T21:15:25.3811911Z [----------] 23 tests from SerializeTest 2023-01-11T21:15:25.3812366Z [ RUN ] SerializeTest.KeysFunc 2023-01-11T21:15:25.3835430Z [ OK ] SerializeTest.KeysFunc (2 ms) 2023-01-11T21:15:25.3835960Z [ RUN ] SerializeTest.TryReadFunc 2023-01-11T21:15:25.3856950Z [ OK ] SerializeTest.TryReadFunc (2 ms) 2023-01-11T21:15:25.3857277Z [ RUN ] SerializeTest.Basic 2023-01-11T21:15:25.3882058Z [ OK ] SerializeTest.Basic (2 ms) 2023-01-11T21:15:25.3882397Z [ RUN ] SerializeTest.MathBits 2023-01-11T21:15:25.4048813Z [ OK ] SerializeTest.MathBits (16 ms) 2023-01-11T21:15:25.4049320Z [ RUN ] SerializeTest.BasicToFile 2023-01-11T21:15:25.4076873Z [ OK ] SerializeTest.BasicToFile (2 ms) 2023-01-11T21:15:25.4077270Z [ RUN ] SerializeTest.BasicViaFunc 2023-01-11T21:15:25.4121168Z [ OK ] SerializeTest.BasicViaFunc (4 ms) 2023-01-11T21:15:25.4121476Z [ RUN ] SerializeTest.Resized 2023-01-11T21:15:25.4147223Z [ OK ] SerializeTest.Resized (2 ms) 2023-01-11T21:15:25.4147531Z [ RUN ] SerializeTest.Sliced 2023-01-11T21:15:25.4173580Z [ OK ] SerializeTest.Sliced (2 ms) 2023-01-11T21:15:25.4174119Z [ RUN ] SerializeTest.NonContiguous 2023-01-11T21:15:25.4200138Z [ OK ] SerializeTest.NonContiguous (2 ms) 2023-01-11T21:15:25.4200738Z [ RUN ] SerializeTest.ErrorOnMissingKey 2023-01-11T21:15:25.4356597Z [ OK ] SerializeTest.ErrorOnMissingKey (15 ms) 2023-01-11T21:15:25.4357140Z [ RUN ] SerializeTest.XOR 2023-01-11T21:15:27.9938448Z [ OK ] SerializeTest.XOR (2558 ms) 2023-01-11T21:15:27.9938833Z [ RUN ] SerializeTest.Optim 2023-01-11T21:15:28.0231023Z [ OK ] SerializeTest.Optim (29 ms) 2023-01-11T21:15:28.0231568Z [ RUN ] SerializeTest.Optim_Adagrad 2023-01-11T21:15:28.0609080Z [ OK ] SerializeTest.Optim_Adagrad (37 ms) 2023-01-11T21:15:28.0609624Z [ RUN ] SerializeTest.Optim_SGD 2023-01-11T21:15:28.0953232Z [ OK ] SerializeTest.Optim_SGD (34 ms) 2023-01-11T21:15:28.0953740Z [ RUN ] SerializeTest.Optim_Adam 2023-01-11T21:15:28.1401063Z [ OK ] SerializeTest.Optim_Adam (44 ms) 2023-01-11T21:15:28.1401630Z [ RUN ] SerializeTest.Optim_AdamW 2023-01-11T21:15:28.1854075Z [ OK ] SerializeTest.Optim_AdamW (45 ms) 2023-01-11T21:15:28.1854787Z [ RUN ] SerializeTest.Optim_RMSprop 2023-01-11T21:15:28.2297131Z [ OK ] SerializeTest.Optim_RMSprop (44 ms) 2023-01-11T21:15:28.2297688Z [ RUN ] SerializeTest.Optim_LBFGS 2023-01-11T21:15:28.2712366Z [ OK ] SerializeTest.Optim_LBFGS (41 ms) 2023-01-11T21:15:28.2712937Z [ RUN ] SerializeTest.CanSerializeModulesWithIntermediateModulesWithoutParametersOrBuffers 2023-01-11T21:15:28.2765576Z [ OK ] SerializeTest.CanSerializeModulesWithIntermediateModulesWithoutParametersOrBuffers (5 ms) 2023-01-11T21:15:28.2766096Z [ RUN ] SerializeTest.VectorOfTensors 2023-01-11T21:15:28.2797861Z [ OK ] SerializeTest.VectorOfTensors (3 ms) 2023-01-11T21:15:28.2798175Z [ RUN ] SerializeTest.IValue 2023-01-11T21:15:28.2815182Z [ OK ] SerializeTest.IValue (1 ms) 2023-01-11T21:15:28.2815675Z [ RUN ] SerializeTest.UnserializableSubmoduleIsSkippedWhenSavingModule 2023-01-11T21:15:28.2829001Z [ OK ] SerializeTest.UnserializableSubmoduleIsSkippedWhenSavingModule (1 ms) 2023-01-11T21:15:28.2829576Z [ RUN ] SerializeTest.UnserializableSubmoduleIsIgnoredWhenLoadingModule 2023-01-11T21:15:28.2885990Z [ OK ] SerializeTest.UnserializableSubmoduleIsIgnoredWhenLoadingModule (5 ms) 2023-01-11T21:15:28.2886616Z [----------] 23 tests from SerializeTest (2907 ms total) 2023-01-11T21:15:28.2886786Z 2023-01-11T21:15:28.2887011Z [----------] 1 test from SpecialTest 2023-01-11T21:15:28.2887372Z [ RUN ] SpecialTest.special 2023-01-11T21:15:28.2888184Z [ OK ] SpecialTest.special (0 ms) 2023-01-11T21:15:28.2888690Z [----------] 1 test from SpecialTest (0 ms total) 2023-01-11T21:15:28.2888983Z 2023-01-11T21:15:28.2889253Z [----------] 5 tests from TestStatic 2023-01-11T21:15:28.2889607Z [ RUN ] TestStatic.AllOf 2023-01-11T21:15:28.2889925Z [ OK ] TestStatic.AllOf (0 ms) 2023-01-11T21:15:28.2890273Z [ RUN ] TestStatic.AnyOf 2023-01-11T21:15:28.2890687Z [ OK ] TestStatic.AnyOf (0 ms) 2023-01-11T21:15:28.2890969Z [ RUN ] TestStatic.EnableIfModule 2023-01-11T21:15:28.2891423Z [ OK ] TestStatic.EnableIfModule (0 ms) 2023-01-11T21:15:28.2891846Z [ RUN ] TestStatic.ReturnTypeOfForward 2023-01-11T21:15:28.2892296Z [ OK ] TestStatic.ReturnTypeOfForward (0 ms) 2023-01-11T21:15:28.2892573Z [ RUN ] TestStatic.Apply 2023-01-11T21:15:28.2892940Z [ OK ] TestStatic.Apply (0 ms) 2023-01-11T21:15:28.2894790Z [----------] 5 tests from TestStatic (0 ms total) 2023-01-11T21:15:28.2895039Z 2023-01-11T21:15:28.2895217Z [----------] 45 tests from TensorTest 2023-01-11T21:15:28.2895518Z [ RUN ] TensorTest.ToDtype 2023-01-11T21:15:28.2895947Z [ OK ] TensorTest.ToDtype (0 ms) 2023-01-11T21:15:28.2896321Z [ RUN ] TensorTest.ToTensorAndTensorAttributes 2023-01-11T21:15:28.2898270Z [ OK ] TensorTest.ToTensorAndTensorAttributes (0 ms) 2023-01-11T21:15:28.2898699Z [ RUN ] TensorTest.ToOptionsWithRequiresGrad 2023-01-11T21:15:28.2932283Z [ OK ] TensorTest.ToOptionsWithRequiresGrad (3 ms) 2023-01-11T21:15:28.2932765Z [ RUN ] TensorTest.ToDoesNotCopyWhenOptionsAreAllTheSame 2023-01-11T21:15:28.2933248Z [ OK ] TensorTest.ToDoesNotCopyWhenOptionsAreAllTheSame (0 ms) 2023-01-11T21:15:28.2933671Z [ RUN ] TensorTest.AtTensorCtorScalar 2023-01-11T21:15:28.2940876Z [ OK ] TensorTest.AtTensorCtorScalar (0 ms) 2023-01-11T21:15:28.2941227Z [ RUN ] TensorTest.AtTensorCtorSingleDim 2023-01-11T21:15:28.2952367Z [ OK ] TensorTest.AtTensorCtorSingleDim (1 ms) 2023-01-11T21:15:28.2952744Z [ RUN ] TensorTest.AtTensorCastRealToComplex 2023-01-11T21:15:28.2954913Z [ OK ] TensorTest.AtTensorCastRealToComplex (0 ms) 2023-01-11T21:15:28.2955338Z [ RUN ] TensorTest.AtTensorCastComplexToRealErrorChecks 2023-01-11T21:15:28.3028784Z [ OK ] TensorTest.AtTensorCastComplexToRealErrorChecks (7 ms) 2023-01-11T21:15:28.3029237Z [ RUN ] TensorTest.TorchTensorCtorScalarIntegralType 2023-01-11T21:15:28.3029643Z [ OK ] TensorTest.TorchTensorCtorScalarIntegralType (0 ms) 2023-01-11T21:15:28.3030106Z [ RUN ] TensorTest.TorchTensorCtorScalarFloatingType 2023-01-11T21:15:28.3032065Z [ OK ] TensorTest.TorchTensorCtorScalarFloatingType (0 ms) 2023-01-11T21:15:28.3032536Z [ RUN ] TensorTest.TorchTensorCtorScalarBoolType 2023-01-11T21:15:28.3033216Z [ OK ] TensorTest.TorchTensorCtorScalarBoolType (0 ms) 2023-01-11T21:15:28.3033625Z [ RUN ] TensorTest.TorchTensorCtorSingleDimIntegralType 2023-01-11T21:15:28.3039381Z [ OK ] TensorTest.TorchTensorCtorSingleDimIntegralType (0 ms) 2023-01-11T21:15:28.3039797Z [ RUN ] TensorTest.TorchTensorCtorSingleDimFloatingType 2023-01-11T21:15:28.3053506Z [ OK ] TensorTest.TorchTensorCtorSingleDimFloatingType (1 ms) 2023-01-11T21:15:28.3053922Z [ RUN ] TensorTest.TorchTensorCtorSingleDimBoolType 2023-01-11T21:15:28.3057443Z [ OK ] TensorTest.TorchTensorCtorSingleDimBoolType (0 ms) 2023-01-11T21:15:28.3057840Z [ RUN ] TensorTest.TorchTensorCtorMultiDimIntegralType 2023-01-11T21:15:28.3121741Z [ OK ] TensorTest.TorchTensorCtorMultiDimIntegralType (6 ms) 2023-01-11T21:15:28.3122167Z [ RUN ] TensorTest.TorchTensorCtorMultiDimFloatingType 2023-01-11T21:15:28.3160831Z [ OK ] TensorTest.TorchTensorCtorMultiDimFloatingType (3 ms) 2023-01-11T21:15:28.3161233Z [ RUN ] TensorTest.TorchTensorCtorMultiDimBoolType 2023-01-11T21:15:28.3166317Z [ OK ] TensorTest.TorchTensorCtorMultiDimBoolType (0 ms) 2023-01-11T21:15:28.3166852Z [ RUN ] TensorTest.TorchTensorCtorMultiDimWithOptions 2023-01-11T21:15:28.3183030Z [ OK ] TensorTest.TorchTensorCtorMultiDimWithOptions (1 ms) 2023-01-11T21:15:28.3183449Z [ RUN ] TensorTest.TorchTensorCtorMultiDimErrorChecks 2023-01-11T21:15:28.3262489Z [ OK ] TensorTest.TorchTensorCtorMultiDimErrorChecks (7 ms) 2023-01-11T21:15:28.3262913Z [ RUN ] TensorTest.TorchTensorCastRealToComplex 2023-01-11T21:15:28.3266235Z [ OK ] TensorTest.TorchTensorCastRealToComplex (0 ms) 2023-01-11T21:15:28.3266656Z [ RUN ] TensorTest.TorchTensorCastComplexToRealErrorChecks 2023-01-11T21:15:28.3269996Z [W Copy.cpp:276] Warning: Casting complex values to real discards the imaginary part (function operator()) 2023-01-11T21:15:28.3288354Z [ OK ] TensorTest.TorchTensorCastComplexToRealErrorChecks (2 ms) 2023-01-11T21:15:28.3288808Z [ RUN ] TensorTest.TorchTensorCtorZeroSizedDim 2023-01-11T21:15:28.3307202Z [ OK ] TensorTest.TorchTensorCtorZeroSizedDim (1 ms) 2023-01-11T21:15:28.3307852Z [ RUN ] TensorTest.TorchTensorCtorWithoutSpecifyingDtype 2023-01-11T21:15:28.3318710Z [ OK ] TensorTest.TorchTensorCtorWithoutSpecifyingDtype (1 ms) 2023-01-11T21:15:28.3319388Z [ RUN ] TensorTest.TorchTensorCtorWithNonDtypeOptions 2023-01-11T21:15:28.3328873Z [ OK ] TensorTest.TorchTensorCtorWithNonDtypeOptions (0 ms) 2023-01-11T21:15:28.3329441Z [ RUN ] TensorTest.Arange 2023-01-11T21:15:28.3330380Z [ OK ] TensorTest.Arange (0 ms) 2023-01-11T21:15:28.3330779Z [ RUN ] TensorTest.PrettyPrintTensorDataContainer 2023-01-11T21:15:28.3334138Z [ OK ] TensorTest.PrettyPrintTensorDataContainer (0 ms) 2023-01-11T21:15:28.3334809Z [ RUN ] TensorTest.TensorDataContainerCallingAccessorOfWrongType 2023-01-11T21:15:28.3421628Z [ OK ] TensorTest.TensorDataContainerCallingAccessorOfWrongType (8 ms) 2023-01-11T21:15:28.3422042Z [ RUN ] TensorTest.FromBlob 2023-01-11T21:15:28.3424589Z [ OK ] TensorTest.FromBlob (0 ms) 2023-01-11T21:15:28.3424959Z [ RUN ] TensorTest.FromBlobUsesDeleter 2023-01-11T21:15:28.3425370Z [ OK ] TensorTest.FromBlobUsesDeleter (0 ms) 2023-01-11T21:15:28.3425700Z [ RUN ] TensorTest.FromBlobWithStrides 2023-01-11T21:15:28.3429325Z [ OK ] TensorTest.FromBlobWithStrides (0 ms) 2023-01-11T21:15:28.3429834Z [ RUN ] TensorTest.Item 2023-01-11T21:15:28.3430322Z [ OK ] TensorTest.Item (0 ms) 2023-01-11T21:15:28.3430818Z [ RUN ] TensorTest.DataPtr 2023-01-11T21:15:28.3431109Z [ OK ] TensorTest.DataPtr (0 ms) 2023-01-11T21:15:28.3431444Z [ RUN ] TensorTest.Data 2023-01-11T21:15:28.3431922Z [ OK ] TensorTest.Data (0 ms) 2023-01-11T21:15:28.3432360Z [ RUN ] TensorTest.BackwardAndGrad 2023-01-11T21:15:28.3437640Z [ OK ] TensorTest.BackwardAndGrad (0 ms) 2023-01-11T21:15:28.3437982Z [ RUN ] TensorTest.BackwardCreatesOnesGrad 2023-01-11T21:15:28.3441173Z [ OK ] TensorTest.BackwardCreatesOnesGrad (0 ms) 2023-01-11T21:15:28.3441735Z [ RUN ] TensorTest.BackwardNonScalarOutputs 2023-01-11T21:15:28.3477711Z [ OK ] TensorTest.BackwardNonScalarOutputs (3 ms) 2023-01-11T21:15:28.3478031Z [ RUN ] TensorTest.IsLeaf 2023-01-11T21:15:28.3479583Z [ OK ] TensorTest.IsLeaf (0 ms) 2023-01-11T21:15:28.3479922Z [ RUN ] TensorTest.OutputNr 2023-01-11T21:15:28.3481494Z [ OK ] TensorTest.OutputNr (0 ms) 2023-01-11T21:15:28.3481837Z [ RUN ] TensorTest.Version 2023-01-11T21:15:28.3483970Z [ OK ] TensorTest.Version (0 ms) 2023-01-11T21:15:28.3484309Z [ RUN ] TensorTest.Detach 2023-01-11T21:15:28.3486159Z [ OK ] TensorTest.Detach (0 ms) 2023-01-11T21:15:28.3486592Z [ RUN ] TensorTest.DetachInplace 2023-01-11T21:15:28.3488224Z [ OK ] TensorTest.DetachInplace (0 ms) 2023-01-11T21:15:28.3488642Z [ RUN ] TensorTest.SetData 2023-01-11T21:15:28.3489615Z [ OK ] TensorTest.SetData (0 ms) 2023-01-11T21:15:28.3489980Z [ RUN ] TensorTest.RequiresGradInplace 2023-01-11T21:15:28.3521067Z [ OK ] TensorTest.RequiresGradInplace (3 ms) 2023-01-11T21:15:28.3521387Z [ RUN ] TensorTest.StdDimension 2023-01-11T21:15:28.3534048Z [ OK ] TensorTest.StdDimension (1 ms) 2023-01-11T21:15:28.3534569Z [ RUN ] TensorTest.ReshapeAlias 2023-01-11T21:15:28.3556269Z [ OK ] TensorTest.ReshapeAlias (2 ms) 2023-01-11T21:15:28.3556902Z [----------] 45 tests from TensorTest (66 ms total) 2023-01-11T21:15:28.3557186Z 2023-01-11T21:15:28.3557500Z [----------] 36 tests from TensorIndexingTest 2023-01-11T21:15:28.3557889Z [ RUN ] TensorIndexingTest.Slice 2023-01-11T21:15:28.3558200Z [ OK ] TensorIndexingTest.Slice (0 ms) 2023-01-11T21:15:28.3558498Z [ RUN ] TensorIndexingTest.TensorIndex 2023-01-11T21:15:28.3577344Z [ OK ] TensorIndexingTest.TensorIndex (1 ms) 2023-01-11T21:15:28.3577936Z [ RUN ] TensorIndexingTest.TestNoIndices 2023-01-11T21:15:28.3695688Z [ OK ] TensorIndexingTest.TestNoIndices (11 ms) 2023-01-11T21:15:28.3696275Z [ RUN ] TensorIndexingTest.TestAdvancedIndexingWithListOfTensor 2023-01-11T21:15:28.3708094Z [ OK ] TensorIndexingTest.TestAdvancedIndexingWithListOfTensor (1 ms) 2023-01-11T21:15:28.3708690Z [ RUN ] TensorIndexingTest.TestSingleInt 2023-01-11T21:15:28.3709232Z [ OK ] TensorIndexingTest.TestSingleInt (0 ms) 2023-01-11T21:15:28.3709862Z [ RUN ] TensorIndexingTest.TestMultipleInt 2023-01-11T21:15:28.3714160Z [ OK ] TensorIndexingTest.TestMultipleInt (0 ms) 2023-01-11T21:15:28.3714795Z [ RUN ] TensorIndexingTest.TestNone 2023-01-11T21:15:28.3717135Z [ OK ] TensorIndexingTest.TestNone (0 ms) 2023-01-11T21:15:28.3717731Z [ RUN ] TensorIndexingTest.TestStep 2023-01-11T21:15:28.3728399Z [ OK ] TensorIndexingTest.TestStep (1 ms) 2023-01-11T21:15:28.3729014Z [ RUN ] TensorIndexingTest.TestStepAssignment 2023-01-11T21:15:28.3739182Z [ OK ] TensorIndexingTest.TestStepAssignment (1 ms) 2023-01-11T21:15:28.3739781Z [ RUN ] TensorIndexingTest.TestBoolIndices 2023-01-11T21:15:28.3761658Z [ OK ] TensorIndexingTest.TestBoolIndices (2 ms) 2023-01-11T21:15:28.3762257Z [ RUN ] TensorIndexingTest.TestBoolIndicesAccumulate 2023-01-11T21:15:28.3767894Z [ OK ] TensorIndexingTest.TestBoolIndicesAccumulate (0 ms) 2023-01-11T21:15:28.3768473Z [ RUN ] TensorIndexingTest.TestMultipleBoolIndices 2023-01-11T21:15:28.3774314Z [ OK ] TensorIndexingTest.TestMultipleBoolIndices (0 ms) 2023-01-11T21:15:28.3775083Z [ RUN ] TensorIndexingTest.TestByteMask 2023-01-11T21:15:28.3786517Z [ OK ] TensorIndexingTest.TestByteMask (1 ms) 2023-01-11T21:15:28.3787125Z [ RUN ] TensorIndexingTest.TestByteMaskAccumulate 2023-01-11T21:15:28.3792478Z [ OK ] TensorIndexingTest.TestByteMaskAccumulate (0 ms) 2023-01-11T21:15:28.3793119Z [ RUN ] TensorIndexingTest.TestMultipleByteMask 2023-01-11T21:15:28.3799352Z [ OK ] TensorIndexingTest.TestMultipleByteMask (0 ms) 2023-01-11T21:15:28.3799952Z [ RUN ] TensorIndexingTest.TestByteMask2d 2023-01-11T21:15:28.3804908Z [ OK ] TensorIndexingTest.TestByteMask2d (0 ms) 2023-01-11T21:15:28.3805507Z [ RUN ] TensorIndexingTest.TestIntIndices 2023-01-11T21:15:28.3813811Z [ OK ] TensorIndexingTest.TestIntIndices (0 ms) 2023-01-11T21:15:28.3814706Z [ RUN ] TensorIndexingTest.TestIntIndices2d 2023-01-11T21:15:28.3821838Z [ OK ] TensorIndexingTest.TestIntIndices2d (0 ms) 2023-01-11T21:15:28.3822472Z [ RUN ] TensorIndexingTest.TestIntIndicesBroadcast 2023-01-11T21:15:28.3828653Z [ OK ] TensorIndexingTest.TestIntIndicesBroadcast (0 ms) 2023-01-11T21:15:28.3829231Z [ RUN ] TensorIndexingTest.TestEmptyIndex 2023-01-11T21:15:28.3834611Z [ OK ] TensorIndexingTest.TestEmptyIndex (0 ms) 2023-01-11T21:15:28.3835223Z [ RUN ] TensorIndexingTest.TestEmptyNdimIndex 2023-01-11T21:15:28.3895769Z [ OK ] TensorIndexingTest.TestEmptyNdimIndex (6 ms) 2023-01-11T21:15:28.3896373Z [ RUN ] TensorIndexingTest.TestEmptyNdimIndexBool 2023-01-11T21:15:28.3920952Z [ OK ] TensorIndexingTest.TestEmptyNdimIndexBool (2 ms) 2023-01-11T21:15:28.3921542Z [ RUN ] TensorIndexingTest.TestEmptySlice 2023-01-11T21:15:28.3924110Z [ OK ] TensorIndexingTest.TestEmptySlice (0 ms) 2023-01-11T21:15:28.3924786Z [ RUN ] TensorIndexingTest.TestIndexGetitemCopyBoolsSlices 2023-01-11T21:15:28.3936162Z [ OK ] TensorIndexingTest.TestIndexGetitemCopyBoolsSlices (1 ms) 2023-01-11T21:15:28.3936817Z [ RUN ] TensorIndexingTest.TestIndexSetitemBoolsSlices 2023-01-11T21:15:28.4066559Z [ OK ] TensorIndexingTest.TestIndexSetitemBoolsSlices (12 ms) 2023-01-11T21:15:28.4067124Z [ RUN ] TensorIndexingTest.TestIndexScalarWithBoolMask 2023-01-11T21:15:28.4078976Z [ OK ] TensorIndexingTest.TestIndexScalarWithBoolMask (1 ms) 2023-01-11T21:15:28.4079622Z [ RUN ] TensorIndexingTest.TestSetitemExpansionError 2023-01-11T21:15:28.4223201Z [ OK ] TensorIndexingTest.TestSetitemExpansionError (14 ms) 2023-01-11T21:15:28.4223790Z [ RUN ] TensorIndexingTest.TestGetitemScalars 2023-01-11T21:15:28.4355550Z [ OK ] TensorIndexingTest.TestGetitemScalars (13 ms) 2023-01-11T21:15:28.4356150Z [ RUN ] TensorIndexingTest.TestSetitemScalars 2023-01-11T21:15:28.4492868Z [ OK ] TensorIndexingTest.TestSetitemScalars (13 ms) 2023-01-11T21:15:28.4493573Z [ RUN ] TensorIndexingTest.TestBasicAdvancedCombined 2023-01-11T21:15:28.4508651Z [ OK ] TensorIndexingTest.TestBasicAdvancedCombined (1 ms) 2023-01-11T21:15:28.4509058Z [ RUN ] TensorIndexingTest.TestIntAssignment 2023-01-11T21:15:28.4517025Z [ OK ] TensorIndexingTest.TestIntAssignment (0 ms) 2023-01-11T21:15:28.4517415Z [ RUN ] TensorIndexingTest.TestByteTensorAssignment 2023-01-11T21:15:28.4532438Z [ OK ] TensorIndexingTest.TestByteTensorAssignment (1 ms) 2023-01-11T21:15:28.4532837Z [ RUN ] TensorIndexingTest.TestVariableSlicing 2023-01-11T21:15:28.4536528Z [ OK ] TensorIndexingTest.TestVariableSlicing (0 ms) 2023-01-11T21:15:28.4536904Z [ RUN ] TensorIndexingTest.TestEllipsisTensor 2023-01-11T21:15:28.4546196Z [ OK ] TensorIndexingTest.TestEllipsisTensor (0 ms) 2023-01-11T21:15:28.4546783Z [ RUN ] TensorIndexingTest.TestOutOfBoundIndex 2023-01-11T21:15:28.4656861Z [ OK ] TensorIndexingTest.TestOutOfBoundIndex (11 ms) 2023-01-11T21:15:28.4657238Z [ RUN ] TensorIndexingTest.TestZeroDimIndex 2023-01-11T21:15:28.4681673Z [ OK ] TensorIndexingTest.TestZeroDimIndex (2 ms) 2023-01-11T21:15:28.4682116Z [----------] 36 tests from TensorIndexingTest (112 ms total) 2023-01-11T21:15:28.4682291Z 2023-01-11T21:15:28.4682445Z [----------] 18 tests from NumpyTests 2023-01-11T21:15:28.4682786Z [ RUN ] NumpyTests.TestNoneIndex 2023-01-11T21:15:28.4684464Z [ OK ] NumpyTests.TestNoneIndex (0 ms) 2023-01-11T21:15:28.4684807Z [ RUN ] NumpyTests.TestEmptyFancyIndex 2023-01-11T21:15:28.4736844Z [ OK ] NumpyTests.TestEmptyFancyIndex (5 ms) 2023-01-11T21:15:28.4737190Z [ RUN ] NumpyTests.TestEllipsisIndex 2023-01-11T21:15:28.4748512Z [ OK ] NumpyTests.TestEllipsisIndex (1 ms) 2023-01-11T21:15:28.4748858Z [ RUN ] NumpyTests.TestSingleIntIndex 2023-01-11T21:15:28.4779927Z [ OK ] NumpyTests.TestSingleIntIndex (3 ms) 2023-01-11T21:15:28.4780269Z [ RUN ] NumpyTests.TestSingleBoolIndex 2023-01-11T21:15:28.4787452Z [ OK ] NumpyTests.TestSingleBoolIndex (0 ms) 2023-01-11T21:15:28.4787795Z [ RUN ] NumpyTests.TestBooleanShapeMismatch 2023-01-11T21:15:28.4998603Z [ OK ] NumpyTests.TestBooleanShapeMismatch (21 ms) 2023-01-11T21:15:28.4999046Z [ RUN ] NumpyTests.TestBooleanIndexingOnedim 2023-01-11T21:15:28.5008089Z [ OK ] NumpyTests.TestBooleanIndexingOnedim (0 ms) 2023-01-11T21:15:28.5008503Z [ RUN ] NumpyTests.TestBooleanAssignmentValueMismatch 2023-01-11T21:15:28.5215806Z [ OK ] NumpyTests.TestBooleanAssignmentValueMismatch (20 ms) 2023-01-11T21:15:28.5216209Z [ RUN ] NumpyTests.TestBooleanIndexingTwodim 2023-01-11T21:15:28.5236502Z [ OK ] NumpyTests.TestBooleanIndexingTwodim (2 ms) 2023-01-11T21:15:28.5236883Z [ RUN ] NumpyTests.TestBooleanIndexingWeirdness 2023-01-11T21:15:28.5351428Z [ OK ] NumpyTests.TestBooleanIndexingWeirdness (11 ms) 2023-01-11T21:15:28.5351858Z [ RUN ] NumpyTests.TestBooleanIndexingWeirdnessTensors 2023-01-11T21:15:28.5466508Z [ OK ] NumpyTests.TestBooleanIndexingWeirdnessTensors (11 ms) 2023-01-11T21:15:28.5466923Z [ RUN ] NumpyTests.TestBooleanIndexingAlldims 2023-01-11T21:15:28.5471313Z [ OK ] NumpyTests.TestBooleanIndexingAlldims (0 ms) 2023-01-11T21:15:28.5471744Z [ RUN ] NumpyTests.TestBooleanListIndexing 2023-01-11T21:15:28.5490472Z [ OK ] NumpyTests.TestBooleanListIndexing (1 ms) 2023-01-11T21:15:28.5490931Z [ RUN ] NumpyTests.TestEverythingReturnsViews 2023-01-11T21:15:28.5491907Z [ OK ] NumpyTests.TestEverythingReturnsViews (0 ms) 2023-01-11T21:15:28.5492273Z [ RUN ] NumpyTests.TestBroaderrorsIndexing 2023-01-11T21:15:28.5741191Z [ OK ] NumpyTests.TestBroaderrorsIndexing (24 ms) 2023-01-11T21:15:28.5741576Z [ RUN ] NumpyTests.TestTrivialFancyOutOfBounds 2023-01-11T21:15:28.6068259Z [ OK ] NumpyTests.TestTrivialFancyOutOfBounds (32 ms) 2023-01-11T21:15:28.6068777Z [ RUN ] NumpyTests.TestIndexIsLarger 2023-01-11T21:15:28.6075815Z [ OK ] NumpyTests.TestIndexIsLarger (0 ms) 2023-01-11T21:15:28.6076412Z [ RUN ] NumpyTests.TestBroadcastSubspace 2023-01-11T21:15:28.6100792Z [ OK ] NumpyTests.TestBroadcastSubspace (2 ms) 2023-01-11T21:15:28.6101460Z [----------] 18 tests from NumpyTests (141 ms total) 2023-01-11T21:15:28.6101772Z 2023-01-11T21:15:28.6102079Z [----------] 5 tests from TensorOptionsTest 2023-01-11T21:15:28.6102705Z [ RUN ] TensorOptionsTest.DefaultsToTheRightValues 2023-01-11T21:15:28.6103338Z [ OK ] TensorOptionsTest.DefaultsToTheRightValues (0 ms) 2023-01-11T21:15:28.6103888Z [ RUN ] TensorOptionsTest.UtilityFunctionsReturnTheRightTensorOptions 2023-01-11T21:15:28.6104414Z [ OK ] TensorOptionsTest.UtilityFunctionsReturnTheRightTensorOptions (0 ms) 2023-01-11T21:15:28.6104934Z [ RUN ] TensorOptionsTest.ConstructsWellFromCPUTypes 2023-01-11T21:15:28.6105350Z [ OK ] TensorOptionsTest.ConstructsWellFromCPUTypes (0 ms) 2023-01-11T21:15:28.6105765Z [ RUN ] TensorOptionsTest.ConstructsWellFromCPUTensors 2023-01-11T21:15:28.6106255Z [ OK ] TensorOptionsTest.ConstructsWellFromCPUTensors (0 ms) 2023-01-11T21:15:28.6106763Z [ RUN ] TensorOptionsTest.ConstructsWellFromVariables 2023-01-11T21:15:28.6107184Z [ OK ] TensorOptionsTest.ConstructsWellFromVariables (0 ms) 2023-01-11T21:15:28.6107558Z [----------] 5 tests from TensorOptionsTest (0 ms total) 2023-01-11T21:15:28.6107720Z 2023-01-11T21:15:28.6107865Z [----------] 1 test from DeviceTest 2023-01-11T21:15:28.6108247Z [ RUN ] DeviceTest.ParsesCorrectlyFromString 2023-01-11T21:15:28.6222090Z [ OK ] DeviceTest.ParsesCorrectlyFromString (11 ms) 2023-01-11T21:15:28.6222735Z [----------] 1 test from DeviceTest (11 ms total) 2023-01-11T21:15:28.6222995Z 2023-01-11T21:15:28.6223286Z [----------] 3 tests from DefaultDtypeTest 2023-01-11T21:15:28.6223899Z [ RUN ] DefaultDtypeTest.CanSetAndGetDefaultDtype 2023-01-11T21:15:28.6224549Z [ OK ] DefaultDtypeTest.CanSetAndGetDefaultDtype (0 ms) 2023-01-11T21:15:28.6225320Z [ RUN ] DefaultDtypeTest.NewTensorOptionsHasCorrectDefault 2023-01-11T21:15:28.6226158Z [ OK ] DefaultDtypeTest.NewTensorOptionsHasCorrectDefault (0 ms) 2023-01-11T21:15:28.6226940Z [ RUN ] DefaultDtypeTest.NewTensorsHaveCorrectDefaultDtype 2023-01-11T21:15:28.6227766Z [ OK ] DefaultDtypeTest.NewTensorsHaveCorrectDefaultDtype (0 ms) 2023-01-11T21:15:28.6228491Z [----------] 3 tests from DefaultDtypeTest (0 ms total) 2023-01-11T21:15:28.6228785Z 2023-01-11T21:15:28.6229039Z [----------] 1 test from TorchIncludeTest 2023-01-11T21:15:28.6229352Z [ RUN ] TorchIncludeTest.GetSetNumThreads 2023-01-11T21:15:28.6229704Z [ OK ] TorchIncludeTest.GetSetNumThreads (0 ms) 2023-01-11T21:15:28.6230043Z [----------] 1 test from TorchIncludeTest (0 ms total) 2023-01-11T21:15:28.6230199Z 2023-01-11T21:15:28.6230361Z [----------] 28 tests from InferenceModeTest 2023-01-11T21:15:28.6230658Z [ RUN ] InferenceModeTest.TestTLSState 2023-01-11T21:15:28.6230983Z [ OK ] InferenceModeTest.TestTLSState (0 ms) 2023-01-11T21:15:28.6231351Z [ RUN ] InferenceModeTest.TestInferenceTensorCreation 2023-01-11T21:15:28.6231755Z [ OK ] InferenceModeTest.TestInferenceTensorCreation (0 ms) 2023-01-11T21:15:28.6232158Z [ RUN ] InferenceModeTest.TestExistingAutogradSession 2023-01-11T21:15:28.6302011Z [ OK ] InferenceModeTest.TestExistingAutogradSession (7 ms) 2023-01-11T21:15:28.6302790Z [ RUN ] InferenceModeTest.TestInferenceTensorInInferenceModeFunctionalOp 2023-01-11T21:15:28.6303727Z [ OK ] InferenceModeTest.TestInferenceTensorInInferenceModeFunctionalOp (0 ms) 2023-01-11T21:15:28.6304394Z [ RUN ] InferenceModeTest.TestInferenceTensorInInferenceModeInplaceOp 2023-01-11T21:15:28.6305866Z [ OK ] InferenceModeTest.TestInferenceTensorInInferenceModeInplaceOp (0 ms) 2023-01-11T21:15:28.6306641Z [ RUN ] InferenceModeTest.TestInferenceTensorInInferenceModeViewOp 2023-01-11T21:15:28.6307453Z [ OK ] InferenceModeTest.TestInferenceTensorInInferenceModeViewOp (0 ms) 2023-01-11T21:15:28.6308228Z [ RUN ] InferenceModeTest.TestInferenceTensorInNormalModeFunctionalOp 2023-01-11T21:15:28.6309156Z [ OK ] InferenceModeTest.TestInferenceTensorInNormalModeFunctionalOp (0 ms) 2023-01-11T21:15:28.6309668Z [ RUN ] InferenceModeTest.TestInferenceTensorInNormalModeInplaceOp 2023-01-11T21:15:28.6368218Z [ OK ] InferenceModeTest.TestInferenceTensorInNormalModeInplaceOp (5 ms) 2023-01-11T21:15:28.6368983Z [ RUN ] InferenceModeTest.TestInferenceTensorInNormalModeViewOp 2023-01-11T21:15:28.6369835Z [ OK ] InferenceModeTest.TestInferenceTensorInNormalModeViewOp (0 ms) 2023-01-11T21:15:28.6370335Z [ RUN ] InferenceModeTest.TestNormalTensorInplaceOutputInInferenceMode 2023-01-11T21:15:28.6375223Z [ OK ] InferenceModeTest.TestNormalTensorInplaceOutputInInferenceMode (0 ms) 2023-01-11T21:15:28.6375823Z [ RUN ] InferenceModeTest.TestNormalTensorInplaceOutputInNormalMode 2023-01-11T21:15:28.6381530Z [ OK ] InferenceModeTest.TestNormalTensorInplaceOutputInNormalMode (0 ms) 2023-01-11T21:15:28.6382196Z [ RUN ] InferenceModeTest.TestNormalTensorViewOutputInInferenceMode 2023-01-11T21:15:28.6385496Z [ OK ] InferenceModeTest.TestNormalTensorViewOutputInInferenceMode (0 ms) 2023-01-11T21:15:28.6386158Z [ RUN ] InferenceModeTest.TestNormalTensorViewOutputInNormalMode 2023-01-11T21:15:28.6424089Z [ OK ] InferenceModeTest.TestNormalTensorViewOutputInNormalMode (3 ms) 2023-01-11T21:15:28.6424763Z [ RUN ] InferenceModeTest.TestMixInferenceAndNormalTensorFunctionalOp 2023-01-11T21:15:28.6461859Z [ OK ] InferenceModeTest.TestMixInferenceAndNormalTensorFunctionalOp (3 ms) 2023-01-11T21:15:28.6462511Z [ RUN ] InferenceModeTest.TestMixInferenceAndNormalTensorInplaceOp 2023-01-11T21:15:28.6559884Z [ OK ] InferenceModeTest.TestMixInferenceAndNormalTensorInplaceOp (9 ms) 2023-01-11T21:15:28.6560534Z [ RUN ] InferenceModeTest.TestMixInferenceAndNormalTensorViewOp 2023-01-11T21:15:28.6561903Z [ OK ] InferenceModeTest.TestMixInferenceAndNormalTensorViewOp (0 ms) 2023-01-11T21:15:28.6562600Z [ RUN ] InferenceModeTest.TestHandleDirectViewOnRebase 2023-01-11T21:15:28.6599494Z [ OK ] InferenceModeTest.TestHandleDirectViewOnRebase (3 ms) 2023-01-11T21:15:28.6600066Z [ RUN ] InferenceModeTest.TestHandleInDirectViewOnRebase 2023-01-11T21:15:28.6631909Z [ OK ] InferenceModeTest.TestHandleInDirectViewOnRebase (3 ms) 2023-01-11T21:15:28.6632531Z [ RUN ] InferenceModeTest.TestCreationMetaPropagation 2023-01-11T21:15:28.6700422Z [ OK ] InferenceModeTest.TestCreationMetaPropagation (6 ms) 2023-01-11T21:15:28.6701051Z [ RUN ] InferenceModeTest.TestCreationMetaPropagationInput 2023-01-11T21:15:28.6836387Z [ OK ] InferenceModeTest.TestCreationMetaPropagationInput (13 ms) 2023-01-11T21:15:28.6836936Z [ RUN ] InferenceModeTest.TestInplaceCopyOnInferenceTensor 2023-01-11T21:15:28.6921891Z [ OK ] InferenceModeTest.TestInplaceCopyOnInferenceTensor (8 ms) 2023-01-11T21:15:28.6922368Z [ RUN ] InferenceModeTest.TestSetRequiresGradInNormalMode 2023-01-11T21:15:28.6937442Z [ OK ] InferenceModeTest.TestSetRequiresGradInNormalMode (1 ms) 2023-01-11T21:15:28.6937867Z [ RUN ] InferenceModeTest.TestAccessVersionCounter 2023-01-11T21:15:28.6982483Z [ OK ] InferenceModeTest.TestAccessVersionCounter (4 ms) 2023-01-11T21:15:28.6983160Z [ RUN ] InferenceModeTest.TestInplaceUpdateInferenceTensorWithNormalTensor 2023-01-11T21:15:28.7068122Z [ OK ] InferenceModeTest.TestInplaceUpdateInferenceTensorWithNormalTensor (8 ms) 2023-01-11T21:15:28.7068647Z [ RUN ] InferenceModeTest.TestComplexViewInInferenceMode 2023-01-11T21:15:28.7070184Z [ OK ] InferenceModeTest.TestComplexViewInInferenceMode (0 ms) 2023-01-11T21:15:28.7070951Z [ RUN ] InferenceModeTest.TestComplexViewInNormalMode 2023-01-11T21:15:28.7071561Z [ OK ] InferenceModeTest.TestComplexViewInNormalMode (0 ms) 2023-01-11T21:15:28.7071943Z [ RUN ] InferenceModeTest.TestCustomFunction 2023-01-11T21:15:28.7078512Z [ OK ] InferenceModeTest.TestCustomFunction (0 ms) 2023-01-11T21:15:28.7079069Z [ RUN ] InferenceModeTest.TestLegacyAutoNonVariableTypeModeWarning 2023-01-11T21:15:28.7079583Z [ OK ] InferenceModeTest.TestLegacyAutoNonVariableTypeModeWarning (0 ms) 2023-01-11T21:15:28.7080087Z [----------] 28 tests from InferenceModeTest (85 ms total) 2023-01-11T21:15:28.7080510Z 2023-01-11T21:15:28.7080711Z [----------] 4 tests from GradModeTest 2023-01-11T21:15:28.7081222Z [ RUN ] GradModeTest.TestRequiresGradFunctionalOp 2023-01-11T21:15:28.7081632Z [ OK ] GradModeTest.TestRequiresGradFunctionalOp (0 ms) 2023-01-11T21:15:28.7082016Z [ RUN ] GradModeTest.TestRequiresGradInplaceOp 2023-01-11T21:15:28.7084304Z [ OK ] GradModeTest.TestRequiresGradInplaceOp (0 ms) 2023-01-11T21:15:28.7084794Z [ RUN ] GradModeTest.TestRequiresGradViewOp 2023-01-11T21:15:28.7085709Z [ OK ] GradModeTest.TestRequiresGradViewOp (0 ms) 2023-01-11T21:15:28.7086099Z [ RUN ] GradModeTest.TestRequiresGradViewOpExiting 2023-01-11T21:15:28.7127286Z [ OK ] GradModeTest.TestRequiresGradViewOpExiting (4 ms) 2023-01-11T21:15:28.7127707Z [----------] 4 tests from GradModeTest (4 ms total) 2023-01-11T21:15:28.7127865Z 2023-01-11T21:15:28.7128019Z [----------] 3 tests from OperationTest 2023-01-11T21:15:28.7128286Z [ RUN ] OperationTest.Lerp 2023-01-11T21:15:28.7260180Z [ OK ] OperationTest.Lerp (13 ms) 2023-01-11T21:15:28.7260484Z [ RUN ] OperationTest.Cross 2023-01-11T21:15:28.7834944Z [ OK ] OperationTest.Cross (57 ms) 2023-01-11T21:15:28.7835239Z [ RUN ] OperationTest.Linear_out 2023-01-11T21:15:28.7868644Z [ OK ] OperationTest.Linear_out (3 ms) 2023-01-11T21:15:28.7869264Z [----------] 3 tests from OperationTest (74 ms total) 2023-01-11T21:15:28.7869503Z 2023-01-11T21:15:28.7869674Z [----------] Global test environment tear-down 2023-01-11T21:15:28.8679335Z [==========] 992 tests from 48 test suites ran. (671990 ms total) 2023-01-11T21:15:28.8679738Z [ PASSED ] 992 tests. 2023-01-11T21:15:30.4262728Z ThreadSanitizer: reported 3 warnings 2023-01-11T21:15:30.4944759Z + /opt/conda/lib/python3.7/site-packages/torch/bin/test_tensorexpr --gtest_output=xml:test/test-reports/cpp-unittest/test_libtorch/test_tensorexpr.xml 2023-01-11T21:15:34.1992373Z CUDA not available. Disabling CUDA and MultiCUDA tests 2023-01-11T21:15:34.2032339Z Note: Google Test filter = *-*_CUDA:*_MultiCUDA 2023-01-11T21:15:34.2032694Z [==========] Running 647 tests from 23 test suites. 2023-01-11T21:15:34.2032996Z [----------] Global test environment set-up. 2023-01-11T21:15:34.2033273Z [----------] 34 tests from ATen 2023-01-11T21:15:34.2033520Z [ RUN ] ATen._cast_Float 2023-01-11T21:15:34.2102294Z [ OK ] ATen._cast_Float (6 ms) 2023-01-11T21:15:34.2102573Z [ RUN ] ATen.negInt 2023-01-11T21:15:34.2184664Z [ OK ] ATen.negInt (8 ms) 2023-01-11T21:15:34.2184987Z [ RUN ] ATen.negFloat 2023-01-11T21:15:34.2275104Z [ OK ] ATen.negFloat (8 ms) 2023-01-11T21:15:34.2275370Z [ RUN ] ATen.addInt 2023-01-11T21:15:34.2426378Z [ OK ] ATen.addInt (15 ms) 2023-01-11T21:15:34.2426623Z [ RUN ] ATen.addFloat 2023-01-11T21:15:34.2579336Z [ OK ] ATen.addFloat (15 ms) 2023-01-11T21:15:34.2579843Z [ RUN ] ATen.subInt 2023-01-11T21:15:34.2731433Z [ OK ] ATen.subInt (15 ms) 2023-01-11T21:15:34.2731680Z [ RUN ] ATen.subFloat 2023-01-11T21:15:34.2884493Z [ OK ] ATen.subFloat (15 ms) 2023-01-11T21:15:34.2884762Z [ RUN ] ATen.lerp 2023-01-11T21:15:34.3084877Z [ OK ] ATen.lerp (19 ms) 2023-01-11T21:15:34.3085205Z [ RUN ] ATen.addcmulInt 2023-01-11T21:15:34.3283272Z [ OK ] ATen.addcmulInt (19 ms) 2023-01-11T21:15:34.3283561Z [ RUN ] ATen.addcmulFloat 2023-01-11T21:15:34.3484438Z [ OK ] ATen.addcmulFloat (20 ms) 2023-01-11T21:15:34.3484700Z [ RUN ] ATen.mulInt 2023-01-11T21:15:34.3588443Z [ OK ] ATen.mulInt (10 ms) 2023-01-11T21:15:34.3588902Z [ RUN ] ATen.mulFloat 2023-01-11T21:15:34.3693802Z [ OK ] ATen.mulFloat (10 ms) 2023-01-11T21:15:34.3694064Z [ RUN ] ATen.divInt 2023-01-11T21:15:34.3797480Z [ OK ] ATen.divInt (10 ms) 2023-01-11T21:15:34.3797720Z [ RUN ] ATen.divFloat 2023-01-11T21:15:34.3903128Z [ OK ] ATen.divFloat (10 ms) 2023-01-11T21:15:34.3903389Z [ RUN ] ATen.maxInt 2023-01-11T21:15:34.4007900Z [ OK ] ATen.maxInt (10 ms) 2023-01-11T21:15:34.4008190Z [ RUN ] ATen.maxFloat 2023-01-11T21:15:34.4112495Z [ OK ] ATen.maxFloat (10 ms) 2023-01-11T21:15:34.4112756Z [ RUN ] ATen.minInt 2023-01-11T21:15:34.4216299Z [ OK ] ATen.minInt (10 ms) 2023-01-11T21:15:34.4216559Z [ RUN ] ATen.minFloat 2023-01-11T21:15:34.4321811Z [ OK ] ATen.minFloat (10 ms) 2023-01-11T21:15:34.4322073Z [ RUN ] ATen.reluInt 2023-01-11T21:15:34.4404689Z [ OK ] ATen.reluInt (8 ms) 2023-01-11T21:15:34.4404978Z [ RUN ] ATen.reluFloat 2023-01-11T21:15:34.4495414Z [ OK ] ATen.reluFloat (9 ms) 2023-01-11T21:15:34.4495682Z [ RUN ] ATen.logFloat 2023-01-11T21:15:34.4572304Z [ OK ] ATen.logFloat (7 ms) 2023-01-11T21:15:34.4572570Z [ RUN ] ATen.fastLogFloat 2023-01-11T21:15:34.9594213Z [ OK ] ATen.fastLogFloat (501 ms) 2023-01-11T21:15:34.9594850Z [ RUN ] ATen.fastTanhFloat 2023-01-11T21:15:35.1474130Z [ OK ] ATen.fastTanhFloat (187 ms) 2023-01-11T21:15:35.1474681Z [ RUN ] ATen.fastSigmoidFloat 2023-01-11T21:15:35.3800991Z [ OK ] ATen.fastSigmoidFloat (232 ms) 2023-01-11T21:15:35.3801472Z [ RUN ] ATen.log10Float 2023-01-11T21:15:35.3878989Z [ OK ] ATen.log10Float (7 ms) 2023-01-11T21:15:35.3879473Z [ RUN ] ATen.log2Float 2023-01-11T21:15:35.3956732Z [ OK ] ATen.log2Float (7 ms) 2023-01-11T21:15:35.3957190Z [ RUN ] ATen.expFloat 2023-01-11T21:15:35.4034566Z [ OK ] ATen.expFloat (7 ms) 2023-01-11T21:15:35.4035037Z [ RUN ] ATen.erfFloat 2023-01-11T21:15:35.4112224Z [ OK ] ATen.erfFloat (7 ms) 2023-01-11T21:15:35.4112668Z [ RUN ] ATen.cosFloat 2023-01-11T21:15:35.4190260Z [ OK ] ATen.cosFloat (7 ms) 2023-01-11T21:15:35.4190709Z [ RUN ] ATen.eqInt 2023-01-11T21:15:35.4319165Z [ OK ] ATen.eqInt (12 ms) 2023-01-11T21:15:35.4319622Z [ RUN ] ATen.geInt 2023-01-11T21:15:35.4446927Z [ OK ] ATen.geInt (12 ms) 2023-01-11T21:15:35.4447198Z [ RUN ] ATen.gtInt 2023-01-11T21:15:35.4573701Z [ OK ] ATen.gtInt (12 ms) 2023-01-11T21:15:35.4574026Z [ RUN ] ATen.leInt 2023-01-11T21:15:35.4701477Z [ OK ] ATen.leInt (12 ms) 2023-01-11T21:15:35.4701751Z [ RUN ] ATen.ltInt 2023-01-11T21:15:35.4828696Z [ OK ] ATen.ltInt (12 ms) 2023-01-11T21:15:35.4829317Z [----------] 34 tests from ATen (1279 ms total) 2023-01-11T21:15:35.4829465Z 2023-01-11T21:15:35.4840234Z [----------] 26 tests from BoundsInference 2023-01-11T21:15:35.4840634Z [ RUN ] BoundsInference._1 2023-01-11T21:15:35.4863849Z [ OK ] BoundsInference._1 (3 ms) 2023-01-11T21:15:35.4864137Z [ RUN ] BoundsInference._2 2023-01-11T21:15:35.4919661Z [ OK ] BoundsInference._2 (5 ms) 2023-01-11T21:15:35.4920116Z [ RUN ] BoundsInference._3 2023-01-11T21:15:35.4983562Z [ OK ] BoundsInference._3 (6 ms) 2023-01-11T21:15:35.4984081Z [ RUN ] BoundsInference._4 2023-01-11T21:15:35.5120124Z [ OK ] BoundsInference._4 (13 ms) 2023-01-11T21:15:35.5120630Z [ RUN ] BoundsInference._5 2023-01-11T21:15:35.5457488Z [ OK ] BoundsInference._5 (33 ms) 2023-01-11T21:15:35.5457791Z [ RUN ] BoundsInference._6 2023-01-11T21:15:35.5704993Z [ OK ] BoundsInference._6 (24 ms) 2023-01-11T21:15:35.5705504Z [ RUN ] BoundsInference.Adjacent 2023-01-11T21:15:35.5857655Z [ OK ] BoundsInference.Adjacent (15 ms) 2023-01-11T21:15:35.5858227Z [ RUN ] BoundsInference.MultipleTopLoopLoad 2023-01-11T21:15:35.5985293Z [ OK ] BoundsInference.MultipleTopLoopLoad (12 ms) 2023-01-11T21:15:35.5985696Z [ RUN ] BoundsInference.MultipleTopLoopStore 2023-01-11T21:15:35.6107395Z [ OK ] BoundsInference.MultipleTopLoopStore (12 ms) 2023-01-11T21:15:35.6107769Z [ RUN ] BoundsInference.CacheReads 2023-01-11T21:15:35.6845393Z [ OK ] BoundsInference.CacheReads (73 ms) 2023-01-11T21:15:35.6845897Z [ RUN ] BoundsInference.Flattened 2023-01-11T21:15:35.7178231Z [ OK ] BoundsInference.Flattened (33 ms) 2023-01-11T21:15:35.7178840Z [ RUN ] BoundsInference.GetPotentialHazards 2023-01-11T21:15:35.7209504Z [ OK ] BoundsInference.GetPotentialHazards (3 ms) 2023-01-11T21:15:35.7210140Z [ RUN ] BoundsInference.GetPotentialHazardsLoopNoHazard 2023-01-11T21:15:35.7301999Z [ OK ] BoundsInference.GetPotentialHazardsLoopNoHazard (9 ms) 2023-01-11T21:15:35.7302638Z [ RUN ] BoundsInference.GetPotentialHazardsLoopCall 2023-01-11T21:15:35.7424975Z [ OK ] BoundsInference.GetPotentialHazardsLoopCall (12 ms) 2023-01-11T21:15:35.7425615Z [ RUN ] BoundsInference.GetPotentialHazardsLoopSplit 2023-01-11T21:15:35.7741260Z [ OK ] BoundsInference.GetPotentialHazardsLoopSplit (31 ms) 2023-01-11T21:15:35.7741964Z [ RUN ] BoundsInference.HasConflictingOverlapSameBufferWithPartialOverlap 2023-01-11T21:15:35.7882486Z [ OK ] BoundsInference.HasConflictingOverlapSameBufferWithPartialOverlap (14 ms) 2023-01-11T21:15:35.7883176Z [ RUN ] BoundsInference.HasConflictingOverlapSameBufferWithFullOverlap 2023-01-11T21:15:35.7926836Z [ OK ] BoundsInference.HasConflictingOverlapSameBufferWithFullOverlap (4 ms) 2023-01-11T21:15:35.7927558Z [ RUN ] BoundsInference.HasConflictingOverlapSameBufferWithFullOverlapRAW 2023-01-11T21:15:35.7980668Z [ OK ] BoundsInference.HasConflictingOverlapSameBufferWithFullOverlapRAW (5 ms) 2023-01-11T21:15:35.7981373Z [ RUN ] BoundsInference.HasConflictingOverlapSameBufferNotOverlapping 2023-01-11T21:15:35.8061700Z [ OK ] BoundsInference.HasConflictingOverlapSameBufferNotOverlapping (8 ms) 2023-01-11T21:15:35.8062367Z [ RUN ] BoundsInference.HasConflictingOverlap2DBufferWithOverlap 2023-01-11T21:15:35.8486928Z [ OK ] BoundsInference.HasConflictingOverlap2DBufferWithOverlap (42 ms) 2023-01-11T21:15:35.8487618Z [ RUN ] BoundsInference.HasConflictingOverlap2DBufferWithNoOverlap 2023-01-11T21:15:35.8780405Z [ OK ] BoundsInference.HasConflictingOverlap2DBufferWithNoOverlap (29 ms) 2023-01-11T21:15:35.8781219Z [ RUN ] BoundsInference.HasConflictingOverlapDifferentBuffers 2023-01-11T21:15:35.8854278Z [ OK ] BoundsInference.HasConflictingOverlapDifferentBuffers (7 ms) 2023-01-11T21:15:35.8855127Z [ RUN ] BoundsInference.HasConflictingOverlapDueToRAWDependence 2023-01-11T21:15:35.8927641Z [ OK ] BoundsInference.HasConflictingOverlapDueToRAWDependence (7 ms) 2023-01-11T21:15:35.8928154Z [ RUN ] BoundsInference.HasConflictingOverlapDueToWARDependence 2023-01-11T21:15:35.8995948Z [ OK ] BoundsInference.HasConflictingOverlapDueToWARDependence (6 ms) 2023-01-11T21:15:35.8996399Z [ RUN ] BoundsInference.HasConflictingOverlapWithLoads 2023-01-11T21:15:35.9064665Z [ OK ] BoundsInference.HasConflictingOverlapWithLoads (6 ms) 2023-01-11T21:15:35.9065079Z [ RUN ] BoundsInference.IsOverlapping 2023-01-11T21:15:35.9705993Z [ OK ] BoundsInference.IsOverlapping (64 ms) 2023-01-11T21:15:35.9706564Z [----------] 26 tests from BoundsInference (487 ms total) 2023-01-11T21:15:35.9706724Z 2023-01-11T21:15:35.9706855Z [----------] 1 test from Conv 2023-01-11T21:15:35.9707098Z [ RUN ] Conv.Conv2D 2023-01-11T21:16:12.3077880Z [ OK ] Conv.Conv2D (36336 ms) 2023-01-11T21:16:12.3078354Z [----------] 1 test from Conv (36337 ms total) 2023-01-11T21:16:12.3104254Z 2023-01-11T21:16:12.3105191Z [----------] 28 tests from CppPrinter 2023-01-11T21:16:12.3105595Z [ RUN ] CppPrinter.IntImm 2023-01-11T21:16:12.3105963Z [ OK ] CppPrinter.IntImm (0 ms) 2023-01-11T21:16:12.3106465Z [ RUN ] CppPrinter.FloatImm 2023-01-11T21:16:12.3106995Z [ OK ] CppPrinter.FloatImm (0 ms) 2023-01-11T21:16:12.3107344Z [ RUN ] CppPrinter.FloatImm1 2023-01-11T21:16:12.3107668Z [ OK ] CppPrinter.FloatImm1 (0 ms) 2023-01-11T21:16:12.3107945Z [ RUN ] CppPrinter.DoubleImm 2023-01-11T21:16:12.3113311Z [ OK ] CppPrinter.DoubleImm (0 ms) 2023-01-11T21:16:12.3113831Z [ RUN ] CppPrinter.DoubleImm1 2023-01-11T21:16:12.3114347Z [ OK ] CppPrinter.DoubleImm1 (0 ms) 2023-01-11T21:16:12.3114918Z [ RUN ] CppPrinter.HalfImm 2023-01-11T21:16:12.3115338Z [ OK ] CppPrinter.HalfImm (0 ms) 2023-01-11T21:16:12.3115703Z [ RUN ] CppPrinter.Add 2023-01-11T21:16:12.3115967Z [ OK ] CppPrinter.Add (0 ms) 2023-01-11T21:16:12.3116224Z [ RUN ] CppPrinter.AddExpr1 2023-01-11T21:16:12.3116534Z [ OK ] CppPrinter.AddExpr1 (0 ms) 2023-01-11T21:16:12.3116969Z [ RUN ] CppPrinter.AddExpr2 2023-01-11T21:16:12.3117331Z [ OK ] CppPrinter.AddExpr2 (0 ms) 2023-01-11T21:16:12.3117855Z [ RUN ] CppPrinter.AddExpr3 2023-01-11T21:16:12.3118334Z [ OK ] CppPrinter.AddExpr3 (0 ms) 2023-01-11T21:16:12.3118682Z [ RUN ] CppPrinter.Mod 2023-01-11T21:16:12.3119138Z [ OK ] CppPrinter.Mod (0 ms) 2023-01-11T21:16:12.3119592Z [ RUN ] CppPrinter.ModFloat 2023-01-11T21:16:12.3120109Z [ OK ] CppPrinter.ModFloat (0 ms) 2023-01-11T21:16:12.3120444Z [ RUN ] CppPrinter.Max 2023-01-11T21:16:12.3120750Z [ OK ] CppPrinter.Max (0 ms) 2023-01-11T21:16:12.3121011Z [ RUN ] CppPrinter.MaxFloat 2023-01-11T21:16:12.3121322Z [ OK ] CppPrinter.MaxFloat (0 ms) 2023-01-11T21:16:12.3121606Z [ RUN ] CppPrinter.MaxHalf 2023-01-11T21:16:12.3121881Z [ OK ] CppPrinter.MaxHalf (0 ms) 2023-01-11T21:16:12.3122200Z [ RUN ] CppPrinter.And 2023-01-11T21:16:12.3122452Z [ OK ] CppPrinter.And (0 ms) 2023-01-11T21:16:12.3122728Z [ RUN ] CppPrinter.CompareSelect 2023-01-11T21:16:12.3123485Z [ OK ] CppPrinter.CompareSelect (0 ms) 2023-01-11T21:16:12.3123930Z [ RUN ] CppPrinter.IfThenElse 2023-01-11T21:16:12.3124404Z [ OK ] CppPrinter.IfThenElse (0 ms) 2023-01-11T21:16:12.3124882Z [ RUN ] CppPrinter.AllocateFree 2023-01-11T21:16:12.3125324Z [ OK ] CppPrinter.AllocateFree (0 ms) 2023-01-11T21:16:12.3125786Z [ RUN ] CppPrinter.LoadStore 2023-01-11T21:16:12.3126280Z [ OK ] CppPrinter.LoadStore (0 ms) 2023-01-11T21:16:12.3126696Z [ RUN ] CppPrinter.Var 2023-01-11T21:16:12.3127128Z [ OK ] CppPrinter.Var (0 ms) 2023-01-11T21:16:12.3127553Z [ RUN ] CppPrinter.Cast 2023-01-11T21:16:12.3128031Z [ OK ] CppPrinter.Cast (0 ms) 2023-01-11T21:16:12.3128568Z [ RUN ] CppPrinter.BitCast 2023-01-11T21:16:12.3128848Z [ OK ] CppPrinter.BitCast (0 ms) 2023-01-11T21:16:12.3129106Z [ RUN ] CppPrinter.Let 2023-01-11T21:16:12.3129376Z [ OK ] CppPrinter.Let (0 ms) 2023-01-11T21:16:12.3129623Z [ RUN ] CppPrinter.For 2023-01-11T21:16:12.3129873Z [ OK ] CppPrinter.For (0 ms) 2023-01-11T21:16:12.3130109Z [ RUN ] CppPrinter.Cond 2023-01-11T21:16:12.3130488Z [ OK ] CppPrinter.Cond (0 ms) 2023-01-11T21:16:12.3130922Z [ RUN ] CppPrinter.Intrinsics 2023-01-11T21:16:12.3131224Z [ OK ] CppPrinter.Intrinsics (0 ms) 2023-01-11T21:16:12.3131573Z [ RUN ] CppPrinter.ExternalCall 2023-01-11T21:16:12.3131870Z [ OK ] CppPrinter.ExternalCall (0 ms) 2023-01-11T21:16:12.3132206Z [----------] 28 tests from CppPrinter (4 ms total) 2023-01-11T21:16:12.3132400Z 2023-01-11T21:16:12.3132556Z [----------] 8 tests from DynamicShapes 2023-01-11T21:16:12.3132840Z [ RUN ] DynamicShapes.SimpleGraph 2023-01-11T21:16:12.3133209Z [ OK ] DynamicShapes.SimpleGraph (0 ms) 2023-01-11T21:16:12.3133543Z [ RUN ] DynamicShapes.GraphWith2InputsSameDims 2023-01-11T21:16:12.3133982Z [ OK ] DynamicShapes.GraphWith2InputsSameDims (0 ms) 2023-01-11T21:16:12.3134704Z [ RUN ] DynamicShapes.GraphWith2InputsAndBroadcast 2023-01-11T21:16:12.3135221Z [ OK ] DynamicShapes.GraphWith2InputsAndBroadcast (0 ms) 2023-01-11T21:16:12.3135632Z [ RUN ] DynamicShapes.GraphWithPartiallySymbolicOutput 2023-01-11T21:16:12.3136058Z [ OK ] DynamicShapes.GraphWithPartiallySymbolicOutput (0 ms) 2023-01-11T21:16:12.3136453Z [ RUN ] DynamicShapes.GraphWithSymbolicStrides 2023-01-11T21:16:12.3136811Z [ OK ] DynamicShapes.GraphWithSymbolicStrides (0 ms) 2023-01-11T21:16:12.3137213Z [ RUN ] DynamicShapes.GraphWithCatAndBroadcast 2023-01-11T21:16:12.3137689Z [ OK ] DynamicShapes.GraphWithCatAndBroadcast (0 ms) 2023-01-11T21:16:12.3138086Z [ RUN ] DynamicShapes.GraphFromModel 2023-01-11T21:16:12.3138489Z [ OK ] DynamicShapes.GraphFromModel (0 ms) 2023-01-11T21:16:12.3138829Z [ RUN ] DynamicShapes.MultiThreadedExecution 2023-01-11T21:16:12.3139178Z [ OK ] DynamicShapes.MultiThreadedExecution (0 ms) 2023-01-11T21:16:12.3139525Z [----------] 8 tests from DynamicShapes (0 ms total) 2023-01-11T21:16:12.3139678Z 2023-01-11T21:16:12.3139809Z [----------] 30 tests from Expr 2023-01-11T21:16:12.3140065Z [ RUN ] Expr.BasicValueTest 2023-01-11T21:16:12.3140340Z [ OK ] Expr.BasicValueTest (0 ms) 2023-01-11T21:16:12.3140615Z [ RUN ] Expr.BasicValueTest02 2023-01-11T21:16:12.3140895Z [ OK ] Expr.BasicValueTest02 (0 ms) 2023-01-11T21:16:12.3141215Z [ RUN ] Expr.IsChannelsLastContiguous 2023-01-11T21:16:12.3141650Z [ OK ] Expr.IsChannelsLastContiguous (0 ms) 2023-01-11T21:16:12.3141975Z [ RUN ] Expr.LetTest01 2023-01-11T21:16:12.3142462Z [ OK ] Expr.LetTest01 (0 ms) 2023-01-11T21:16:12.3142711Z [ RUN ] Expr.LetTest02 2023-01-11T21:16:12.3146735Z [ OK ] Expr.LetTest02 (0 ms) 2023-01-11T21:16:12.3146995Z [ RUN ] Expr.LetStmtTest01 2023-01-11T21:16:12.3151712Z [ OK ] Expr.LetStmtTest01 (0 ms) 2023-01-11T21:16:12.3152020Z [ RUN ] Expr.IntTest 2023-01-11T21:16:12.3155577Z [ OK ] Expr.IntTest (0 ms) 2023-01-11T21:16:12.3155928Z [ RUN ] Expr.FloatTest 2023-01-11T21:16:12.3159431Z [ OK ] Expr.FloatTest (0 ms) 2023-01-11T21:16:12.3159736Z [ RUN ] Expr.ByteTest 2023-01-11T21:16:12.3163078Z [ OK ] Expr.ByteTest (0 ms) 2023-01-11T21:16:12.3163436Z [ RUN ] Expr.CharTest 2023-01-11T21:16:12.3166614Z [ OK ] Expr.CharTest (0 ms) 2023-01-11T21:16:12.3166945Z [ RUN ] Expr.ShortTest 2023-01-11T21:16:12.3170294Z [ OK ] Expr.ShortTest (0 ms) 2023-01-11T21:16:12.3170626Z [ RUN ] Expr.LongTest 2023-01-11T21:16:12.3173942Z [ OK ] Expr.LongTest (0 ms) 2023-01-11T21:16:12.3174257Z [ RUN ] Expr.HalfTest 2023-01-11T21:16:12.3177809Z [ OK ] Expr.HalfTest (0 ms) 2023-01-11T21:16:12.3178133Z [ RUN ] Expr.DoubleTest 2023-01-11T21:16:12.3181530Z [ OK ] Expr.DoubleTest (0 ms) 2023-01-11T21:16:12.3181860Z [ RUN ] Expr.VectorAdd01 2023-01-11T21:16:12.3564979Z [ OK ] Expr.VectorAdd01 (38 ms) 2023-01-11T21:16:12.3565267Z [ RUN ] Expr.CompareSelectEQ 2023-01-11T21:16:12.4543108Z [ OK ] Expr.CompareSelectEQ (97 ms) 2023-01-11T21:16:12.4543440Z [ RUN ] Expr.CompareSelectDtypes 2023-01-11T21:16:12.5529534Z [ OK ] Expr.CompareSelectDtypes (98 ms) 2023-01-11T21:16:12.5529866Z [ RUN ] Expr.IntrinsicsDtypes 2023-01-11T21:16:12.5673687Z [ OK ] Expr.IntrinsicsDtypes (14 ms) 2023-01-11T21:16:12.5673993Z [ RUN ] Expr.Substitute01 2023-01-11T21:16:12.5675927Z [ OK ] Expr.Substitute01 (0 ms) 2023-01-11T21:16:12.5676191Z [ RUN ] Expr.Math01 2023-01-11T21:16:12.5678752Z [ OK ] Expr.Math01 (0 ms) 2023-01-11T21:16:12.5678996Z [ RUN ] Expr.UnaryMath01 2023-01-11T21:16:12.5715757Z [ OK ] Expr.UnaryMath01 (3 ms) 2023-01-11T21:16:12.5716032Z [ RUN ] Expr.BinaryMath01 2023-01-11T21:16:12.5720335Z [ OK ] Expr.BinaryMath01 (0 ms) 2023-01-11T21:16:12.5720594Z [ RUN ] Expr.LogicalOps01 2023-01-11T21:16:12.5742808Z [ OK ] Expr.LogicalOps01 (2 ms) 2023-01-11T21:16:12.5743123Z [ RUN ] Expr.LogicalOps02 2023-01-11T21:16:12.5751209Z [ OK ] Expr.LogicalOps02 (0 ms) 2023-01-11T21:16:12.5751514Z [ RUN ] Expr.LogicalOps03 2023-01-11T21:16:12.5779469Z [ OK ] Expr.LogicalOps03 (2 ms) 2023-01-11T21:16:12.5779750Z [ RUN ] Expr.BitwiseOps 2023-01-11T21:16:12.5783605Z [ OK ] Expr.BitwiseOps (0 ms) 2023-01-11T21:16:12.5783914Z [ RUN ] Expr.DynamicShapeAdd 2023-01-11T21:16:12.5833255Z [ OK ] Expr.DynamicShapeAdd (4 ms) 2023-01-11T21:16:12.5833519Z [ RUN ] Expr.OutOfBounds 2023-01-11T21:16:12.5841145Z [ OK ] Expr.OutOfBounds (0 ms) 2023-01-11T21:16:12.5841418Z [ RUN ] Expr.OutOfBounds2d 2023-01-11T21:16:12.6053298Z [ OK ] Expr.OutOfBounds2d (21 ms) 2023-01-11T21:16:12.6053619Z [ RUN ] Expr.OutOfBounds2dFlattenedIndex 2023-01-11T21:16:12.6185843Z [ OK ] Expr.OutOfBounds2dFlattenedIndex (13 ms) 2023-01-11T21:16:12.6186194Z [----------] 30 tests from Expr (305 ms total) 2023-01-11T21:16:12.6186348Z 2023-01-11T21:16:12.6186486Z [----------] 16 tests from ExternalCall 2023-01-11T21:16:12.6186979Z [ RUN ] ExternalCall.Conv1d_float 2023-01-11T21:16:12.6754860Z [ OK ] ExternalCall.Conv1d_float (56 ms) 2023-01-11T21:16:12.6755441Z [ RUN ] ExternalCall.Conv1d_int 2023-01-11T21:16:12.7230631Z [ OK ] ExternalCall.Conv1d_int (47 ms) 2023-01-11T21:16:12.7230973Z [ RUN ] ExternalCall.Conv1d_nobias_noargs 2023-01-11T21:16:12.7259075Z [ OK ] ExternalCall.Conv1d_nobias_noargs (2 ms) 2023-01-11T21:16:12.7259427Z [ RUN ] ExternalCall.Conv2d_float 2023-01-11T21:16:12.7904682Z [ OK ] ExternalCall.Conv2d_float (64 ms) 2023-01-11T21:16:12.7905057Z [ RUN ] ExternalCall.Conv2d_int 2023-01-11T21:16:12.8586709Z [ OK ] ExternalCall.Conv2d_int (68 ms) 2023-01-11T21:16:12.8587583Z [ RUN ] ExternalCall.Conv2d_nobias_noargs 2023-01-11T21:16:12.9140006Z [ OK ] ExternalCall.Conv2d_nobias_noargs (55 ms) 2023-01-11T21:16:12.9140376Z [ RUN ] ExternalCall.Addmm_float 2023-01-11T21:16:12.9287790Z [ OK ] ExternalCall.Addmm_float (14 ms) 2023-01-11T21:16:12.9288302Z [ RUN ] ExternalCall.Embedding 2023-01-11T21:16:12.9344219Z [ OK ] ExternalCall.Embedding (5 ms) 2023-01-11T21:16:12.9344772Z [ RUN ] ExternalCall.MaxReduction 2023-01-11T21:16:12.9376934Z [ OK ] ExternalCall.MaxReduction (3 ms) 2023-01-11T21:16:12.9377539Z [ RUN ] ExternalCall.Prepacked_Linear_float 2023-01-11T21:16:12.9708137Z [ OK ] ExternalCall.Prepacked_Linear_float (32 ms) 2023-01-11T21:16:12.9708646Z [ RUN ] ExternalCall.Prepacked_Conv2d_float 2023-01-11T21:16:13.1762036Z [ OK ] ExternalCall.Prepacked_Conv2d_float (205 ms) 2023-01-11T21:16:13.1762513Z [ RUN ] ExternalCall.BinaryFloat 2023-01-11T21:16:13.2335926Z [ OK ] ExternalCall.BinaryFloat (57 ms) 2023-01-11T21:16:13.2336364Z [ RUN ] ExternalCall.UnaryFloat 2023-01-11T21:16:13.2418459Z [ OK ] ExternalCall.UnaryFloat (8 ms) 2023-01-11T21:16:13.2418897Z [ RUN ] ExternalCall.ComputeInterop 2023-01-11T21:16:39.7533622Z [ OK ] ExternalCall.ComputeInterop (26511 ms) 2023-01-11T21:16:39.7533965Z [ RUN ] ExternalCall.Inlining 2023-01-11T21:16:39.8196861Z [ OK ] ExternalCall.Inlining (66 ms) 2023-01-11T21:16:39.8197251Z [ RUN ] ExternalCall.JitCustomFusionOp 2023-01-11T21:16:39.9211220Z [ OK ] ExternalCall.JitCustomFusionOp (101 ms) 2023-01-11T21:16:39.9211898Z [----------] 16 tests from ExternalCall (27302 ms total) 2023-01-11T21:16:39.9212179Z 2023-01-11T21:16:39.9212454Z [----------] 8 tests from GraphOpt 2023-01-11T21:16:39.9213727Z [ RUN ] GraphOpt.OptimizeCat 2023-01-11T21:16:39.9214130Z [ OK ] GraphOpt.OptimizeCat (0 ms) 2023-01-11T21:16:39.9214790Z [ RUN ] GraphOpt.OptimizeCat2 2023-01-11T21:16:39.9215435Z [ OK ] GraphOpt.OptimizeCat2 (0 ms) 2023-01-11T21:16:39.9215887Z [ RUN ] GraphOpt.OptimizeCat3 2023-01-11T21:16:39.9216203Z [ OK ] GraphOpt.OptimizeCat3 (0 ms) 2023-01-11T21:16:39.9216553Z [ RUN ] GraphOpt.OptimizeCatWithTypePromotionInUser 2023-01-11T21:16:39.9255668Z [ OK ] GraphOpt.OptimizeCatWithTypePromotionInUser (0 ms) 2023-01-11T21:16:39.9256429Z [ RUN ] GraphOpt.OptimizeCatWithTypePromotionInCat 2023-01-11T21:16:39.9257210Z [ OK ] GraphOpt.OptimizeCatWithTypePromotionInCat (0 ms) 2023-01-11T21:16:39.9257915Z [ RUN ] GraphOpt.OptimizeCatNoSingleTensorElementwiseOp 2023-01-11T21:16:39.9258350Z [ OK ] GraphOpt.OptimizeCatNoSingleTensorElementwiseOp (0 ms) 2023-01-11T21:16:39.9258786Z [ RUN ] GraphOpt.OptimizeCatNoSingleTensorElementwiseOp2 2023-01-11T21:16:39.9259228Z [ OK ] GraphOpt.OptimizeCatNoSingleTensorElementwiseOp2 (0 ms) 2023-01-11T21:16:39.9259793Z [ RUN ] GraphOpt.AOTGraphPrepPasses 2023-01-11T21:16:39.9260101Z [ OK ] GraphOpt.AOTGraphPrepPasses (0 ms) 2023-01-11T21:16:39.9260434Z [----------] 8 tests from GraphOpt (0 ms total) 2023-01-11T21:16:39.9260583Z 2023-01-11T21:16:39.9260728Z [----------] 4 tests from IRPrinter 2023-01-11T21:16:39.9260996Z [ RUN ] IRPrinter.BasicValueTest 2023-01-11T21:16:39.9261299Z [ OK ] IRPrinter.BasicValueTest (0 ms) 2023-01-11T21:16:39.9261610Z [ RUN ] IRPrinter.BasicValueTest02 2023-01-11T21:16:39.9261909Z [ OK ] IRPrinter.BasicValueTest02 (0 ms) 2023-01-11T21:16:39.9262190Z [ RUN ] IRPrinter.CastTest 2023-01-11T21:16:39.9262516Z [ OK ] IRPrinter.CastTest (0 ms) 2023-01-11T21:16:39.9262799Z [ RUN ] IRPrinter.FunctionName 2023-01-11T21:16:39.9295691Z [ OK ] IRPrinter.FunctionName (7 ms) 2023-01-11T21:16:39.9296290Z [----------] 4 tests from IRPrinter (7 ms total) 2023-01-11T21:16:39.9296489Z 2023-01-11T21:16:39.9296635Z [----------] 8 tests from IRVerifier 2023-01-11T21:16:39.9296920Z [ RUN ] IRVerifier.BitwiseOps 2023-01-11T21:16:39.9297969Z [ OK ] IRVerifier.BitwiseOps (0 ms) 2023-01-11T21:16:39.9298348Z [ RUN ] IRVerifier.CompareSelect 2023-01-11T21:16:39.9298815Z [ OK ] IRVerifier.CompareSelect (0 ms) 2023-01-11T21:16:39.9299191Z [ RUN ] IRVerifier.Ramp 2023-01-11T21:16:39.9299649Z [ OK ] IRVerifier.Ramp (0 ms) 2023-01-11T21:16:39.9299916Z [ RUN ] IRVerifier.Load 2023-01-11T21:16:39.9301306Z [ OK ] IRVerifier.Load (0 ms) 2023-01-11T21:16:39.9301764Z [ RUN ] IRVerifier.IfThenElse 2023-01-11T21:16:39.9302862Z [ OK ] IRVerifier.IfThenElse (0 ms) 2023-01-11T21:16:39.9303287Z [ RUN ] IRVerifier.For 2023-01-11T21:16:39.9303697Z [ OK ] IRVerifier.For (0 ms) 2023-01-11T21:16:39.9303955Z [ RUN ] IRVerifier.Block 2023-01-11T21:16:39.9304225Z [ OK ] IRVerifier.Block (0 ms) 2023-01-11T21:16:39.9304467Z [ RUN ] IRVerifier.Store 2023-01-11T21:16:39.9305701Z [ OK ] IRVerifier.Store (0 ms) 2023-01-11T21:16:39.9306062Z [----------] 8 tests from IRVerifier (1 ms total) 2023-01-11T21:16:39.9306221Z 2023-01-11T21:16:39.9306347Z [----------] 37 tests from Kernel 2023-01-11T21:16:39.9306647Z [ RUN ] Kernel.ParallelExternalCallBuf 2023-01-11T21:16:39.9316150Z [ OK ] Kernel.ParallelExternalCallBuf (0 ms) 2023-01-11T21:16:39.9316517Z [ RUN ] Kernel.InliningIntermediates 2023-01-11T21:16:40.0568038Z [ OK ] Kernel.InliningIntermediates (124 ms) 2023-01-11T21:16:40.5889382Z [ RUN ] Kernel.PreAllocIntermediateBufs 2023-01-11T21:16:40.5889777Z [ OK ] Kernel.PreAllocIntermediateBufs (532 ms) 2023-01-11T21:16:40.5890130Z [ RUN ] Kernel._1 2023-01-11T21:16:40.6359320Z [ OK ] Kernel._1 (46 ms) 2023-01-11T21:16:40.6359569Z [ RUN ] Kernel._2 2023-01-11T21:16:40.6877323Z [ OK ] Kernel._2 (51 ms) 2023-01-11T21:16:40.6877570Z [ RUN ] Kernel._3 2023-01-11T21:16:40.7434335Z [ OK ] Kernel._3 (55 ms) 2023-01-11T21:16:40.7434699Z [ RUN ] Kernel.Huge 2023-01-11T21:16:40.7738615Z [ OK ] Kernel.Huge (30 ms) 2023-01-11T21:16:40.7738914Z [ RUN ] Kernel.ParallelStrided 2023-01-11T21:26:21.3745907Z [ OK ] Kernel.ParallelStrided (580600 ms) 2023-01-11T21:26:21.3747144Z [ RUN ] Kernel.CatInputTypesPromotion 2023-01-11T21:26:21.5780980Z [ OK ] Kernel.CatInputTypesPromotion (203 ms) 2023-01-11T21:26:21.5781338Z [ RUN ] Kernel.ToDType 2023-01-11T21:26:21.5782135Z [ OK ] Kernel.ToDType (0 ms) 2023-01-11T21:26:21.5782563Z [ RUN ] Kernel.CatAndInlineWithAConstantDim 2023-01-11T21:26:22.4804910Z [ OK ] Kernel.CatAndInlineWithAConstantDim (902 ms) 2023-01-11T21:26:22.4805323Z [ RUN ] Kernel.CatWithEmptyInputs 2023-01-11T21:26:23.0963132Z [ OK ] Kernel.CatWithEmptyInputs (615 ms) 2023-01-11T21:26:23.0963481Z [ RUN ] Kernel.CatWoConditionals 2023-01-11T21:26:23.2847056Z [ OK ] Kernel.CatWoConditionals (188 ms) 2023-01-11T21:26:23.2847520Z [ RUN ] Kernel.OptimizeConditionals 2023-01-11T21:26:23.5974323Z [ OK ] Kernel.OptimizeConditionals (312 ms) 2023-01-11T21:26:23.5974828Z [ RUN ] Kernel.SumAllAxes 2023-01-11T21:26:23.6594693Z [ OK ] Kernel.SumAllAxes (61 ms) 2023-01-11T21:26:23.6595142Z [ RUN ] Kernel.SumOneAxis 2023-01-11T21:26:24.2455998Z [ OK ] Kernel.SumOneAxis (586 ms) 2023-01-11T21:26:24.2456355Z [ RUN ] Kernel.SumMultipleAxes 2023-01-11T21:26:25.2854864Z [ OK ] Kernel.SumMultipleAxes (1039 ms) 2023-01-11T21:26:25.2855175Z [ RUN ] Kernel.Softmax2D 2023-01-11T21:26:25.8251157Z [ OK ] Kernel.Softmax2D (539 ms) 2023-01-11T21:26:25.8251469Z [ RUN ] Kernel.Softmax3D 2023-01-11T21:26:27.3628257Z [ OK ] Kernel.Softmax3D (1537 ms) 2023-01-11T21:26:27.3628569Z [ RUN ] Kernel.Softmax4D 2023-01-11T21:26:29.5435748Z [ OK ] Kernel.Softmax4D (2180 ms) 2023-01-11T21:26:29.5436064Z [ RUN ] Kernel.SignTest 2023-01-11T21:26:29.6301188Z [ OK ] Kernel.SignTest (86 ms) 2023-01-11T21:26:29.6301712Z [ RUN ] Kernel.InlineProducerIntoReduction 2023-01-11T21:26:29.6709138Z [ OK ] Kernel.InlineProducerIntoReduction (40 ms) 2023-01-11T21:26:29.6709695Z [ RUN ] Kernel.InlineReductionIntoConsumer 2023-01-11T21:26:29.7333506Z [ OK ] Kernel.InlineReductionIntoConsumer (62 ms) 2023-01-11T21:26:29.7334077Z [ RUN ] Kernel.ConstantTensors 2023-01-11T21:26:29.9275842Z [ OK ] Kernel.ConstantTensors (194 ms) 2023-01-11T21:26:29.9276254Z [ RUN ] Kernel.ConstantTensorsNonContiguous 2023-01-11T21:26:30.1232853Z [ OK ] Kernel.ConstantTensorsNonContiguous (195 ms) 2023-01-11T21:26:30.1233434Z [ RUN ] Kernel.RunFast 2023-01-11T21:26:30.1233827Z [ OK ] Kernel.RunFast (0 ms) 2023-01-11T21:26:30.1234139Z [ RUN ] Kernel.RunWithAllocatedOutputs 2023-01-11T21:26:30.1234477Z [ OK ] Kernel.RunWithAllocatedOutputs (0 ms) 2023-01-11T21:26:30.1234775Z [ RUN ] Kernel.CodegenInspection 2023-01-11T21:26:30.1235160Z [ OK ] Kernel.CodegenInspection (0 ms) 2023-01-11T21:26:30.1235447Z [ RUN ] Kernel.CustomLowering 2023-01-11T21:26:30.1553019Z [ OK ] Kernel.CustomLowering (31 ms) 2023-01-11T21:26:30.1553569Z [ RUN ] Kernel.Vectorize 2023-01-11T21:26:30.1553936Z [ OK ] Kernel.Vectorize (0 ms) 2023-01-11T21:26:30.1554211Z [ RUN ] Kernel.Strided1dWithinBounds 2023-01-11T21:26:30.1837991Z [ OK ] Kernel.Strided1dWithinBounds (28 ms) 2023-01-11T21:26:30.1838346Z [ RUN ] Kernel.InputAsOutput 2023-01-11T21:26:30.2546645Z [ OK ] Kernel.InputAsOutput (70 ms) 2023-01-11T21:26:30.2547012Z [ RUN ] Kernel.ScalarOut 2023-01-11T21:26:30.2776390Z [ OK ] Kernel.ScalarOut (22 ms) 2023-01-11T21:26:30.2776691Z [ RUN ] Kernel.ScalarTensorOut 2023-01-11T21:26:30.3121404Z [ OK ] Kernel.ScalarTensorOut (34 ms) 2023-01-11T21:26:30.3121946Z [ RUN ] Kernel.FuseLoopsWithVariableBounds 2023-01-11T21:26:30.3122516Z [ OK ] Kernel.FuseLoopsWithVariableBounds (0 ms) 2023-01-11T21:26:30.3123434Z [ RUN ] Kernel.FuseLoopsWithVariableConcatDim 2023-01-11T21:26:30.3123898Z [ OK ] Kernel.FuseLoopsWithVariableConcatDim (0 ms) 2023-01-11T21:26:30.3124307Z [ RUN ] Kernel.DoNotFuseLoopsWithMismatchingVariableDims 2023-01-11T21:26:30.3124749Z [ OK ] Kernel.DoNotFuseLoopsWithMismatchingVariableDims (0 ms) 2023-01-11T21:26:30.3125208Z [----------] 37 tests from Kernel (590381 ms total) 2023-01-11T21:26:30.3125446Z 2023-01-11T21:26:30.3125650Z [----------] 174 tests from LoopNest 2023-01-11T21:26:30.3126138Z [ RUN ] LoopNest.ExprSimple01 2023-01-11T21:26:30.3156131Z [ OK ] LoopNest.ExprSimple01 (3 ms) 2023-01-11T21:26:30.3156419Z [ RUN ] LoopNest.ExprLower01 2023-01-11T21:26:30.3170731Z [ OK ] LoopNest.ExprLower01 (1 ms) 2023-01-11T21:26:30.3171041Z [ RUN ] LoopNest.ExprSimple02 2023-01-11T21:26:30.3932537Z [ OK ] LoopNest.ExprSimple02 (76 ms) 2023-01-11T21:26:30.3932906Z [ RUN ] LoopNest.ExprSliceHeadWithLoopOptions 2023-01-11T21:26:30.3983354Z [ OK ] LoopNest.ExprSliceHeadWithLoopOptions (5 ms) 2023-01-11T21:26:30.3983754Z [ RUN ] LoopNest.ExprSliceTailWithLoopOptions 2023-01-11T21:26:30.4055914Z [ OK ] LoopNest.ExprSliceTailWithLoopOptions (7 ms) 2023-01-11T21:26:30.4056314Z [ RUN ] LoopNest.ExprSliceHeadWhenFactorEqualsSize 2023-01-11T21:26:30.4068148Z [ OK ] LoopNest.ExprSliceHeadWhenFactorEqualsSize (1 ms) 2023-01-11T21:26:30.4068563Z [ RUN ] LoopNest.ExprSliceHeadWhenFactorLargerThanSize 2023-01-11T21:26:30.4080670Z [ OK ] LoopNest.ExprSliceHeadWhenFactorLargerThanSize (1 ms) 2023-01-11T21:26:30.4081088Z [ RUN ] LoopNest.ExprSliceHead 2023-01-11T21:26:30.4107012Z [ OK ] LoopNest.ExprSliceHead (2 ms) 2023-01-11T21:26:30.4107643Z [ RUN ] LoopNest.ExprSliceHeadWithNonZeroStart 2023-01-11T21:26:30.4155517Z [ OK ] LoopNest.ExprSliceHeadWithNonZeroStart (4 ms) 2023-01-11T21:26:30.4156136Z [ RUN ] LoopNest.ExprSliceTailWhenFactorEqualsSize 2023-01-11T21:26:30.4167735Z [ OK ] LoopNest.ExprSliceTailWhenFactorEqualsSize (1 ms) 2023-01-11T21:26:30.4168360Z [ RUN ] LoopNest.ExprSliceTailWhenFactorLargerThanSize 2023-01-11T21:26:30.4180126Z [ OK ] LoopNest.ExprSliceTailWhenFactorLargerThanSize (1 ms) 2023-01-11T21:26:30.4180695Z [ RUN ] LoopNest.ExprSliceTail 2023-01-11T21:26:30.4205840Z [ OK ] LoopNest.ExprSliceTail (2 ms) 2023-01-11T21:26:30.4206383Z [ RUN ] LoopNest.ExprSplitAndSlice 2023-01-11T21:26:30.4365010Z [ OK ] LoopNest.ExprSplitAndSlice (15 ms) 2023-01-11T21:26:30.4365598Z [ RUN ] LoopNest.ExprSliceAndNormalize 2023-01-11T21:26:30.4414918Z [ OK ] LoopNest.ExprSliceAndNormalize (4 ms) 2023-01-11T21:26:30.4415508Z [ RUN ] LoopNest.ExprSliceWithVariableDimension 2023-01-11T21:26:30.4804005Z [ OK ] LoopNest.ExprSliceWithVariableDimension (38 ms) 2023-01-11T21:26:30.4804380Z [ RUN ] LoopNest.ExprSplitWithTail 2023-01-11T21:26:30.4999626Z [ OK ] LoopNest.ExprSplitWithTail (19 ms) 2023-01-11T21:26:30.4999966Z [ RUN ] LoopNest.ExprSplitWithTailNone 2023-01-11T21:26:30.5435461Z [ OK ] LoopNest.ExprSplitWithTailNone (43 ms) 2023-01-11T21:26:30.5435817Z [ RUN ] LoopNest.ExprSplitWithMask01 2023-01-11T21:26:30.6419083Z [ OK ] LoopNest.ExprSplitWithMask01 (98 ms) 2023-01-11T21:26:30.6419469Z [ RUN ] LoopNest.ExprSplitWithMaskRepeatedNoMask 2023-01-11T21:26:30.6530786Z [ OK ] LoopNest.ExprSplitWithMaskRepeatedNoMask (11 ms) 2023-01-11T21:26:30.6531131Z [ RUN ] LoopNest.getLoopAt 2023-01-11T21:26:30.6536464Z [ OK ] LoopNest.getLoopAt (0 ms) 2023-01-11T21:26:30.6536964Z [ RUN ] LoopNest.TileSimple 2023-01-11T21:26:33.7481193Z [ OK ] LoopNest.TileSimple (3094 ms) 2023-01-11T21:26:33.7481524Z [ RUN ] LoopNest.TileWithTails 2023-01-11T21:26:36.8307286Z [ OK ] LoopNest.TileWithTails (3082 ms) 2023-01-11T21:26:36.8307613Z [ RUN ] LoopNest.TileInMiddle 2023-01-11T21:26:41.7941445Z [ OK ] LoopNest.TileInMiddle (4963 ms) 2023-01-11T21:26:41.7941828Z [ RUN ] LoopNest.SplitWithTailWithLoopOptions 2023-01-11T21:26:41.7952557Z [ OK ] LoopNest.SplitWithTailWithLoopOptions (1 ms) 2023-01-11T21:26:41.7952937Z [ RUN ] LoopNest.SplitWithMaskWithLoopOptions 2023-01-11T21:26:41.7962862Z [ OK ] LoopNest.SplitWithMaskWithLoopOptions (1 ms) 2023-01-11T21:26:41.7963472Z [ RUN ] LoopNest.ScheduleBroadcastAddBuffer 2023-01-11T21:26:41.8556152Z [ OK ] LoopNest.ScheduleBroadcastAddBuffer (59 ms) 2023-01-11T21:26:41.8556534Z [ RUN ] LoopNest.ScheduleFunctionCall01 2023-01-11T21:26:42.1295139Z [ OK ] LoopNest.ScheduleFunctionCall01 (273 ms) 2023-01-11T21:26:42.1295731Z [ RUN ] LoopNest.ScheduleInlineSimple 2023-01-11T21:26:42.5580971Z [ OK ] LoopNest.ScheduleInlineSimple (428 ms) 2023-01-11T21:26:42.5581542Z [ RUN ] LoopNest.ScheduleInlineFunc01 2023-01-11T21:26:44.5917800Z [ OK ] LoopNest.ScheduleInlineFunc01 (2033 ms) 2023-01-11T21:26:44.5918410Z [ RUN ] LoopNest.ScheduleInlineRandom 2023-01-11T21:26:44.6005929Z [ OK ] LoopNest.ScheduleInlineRandom (8 ms) 2023-01-11T21:26:44.6006571Z [ RUN ] LoopNest.ScheduleInlineRandomUnrelated 2023-01-11T21:26:44.6088881Z [ OK ] LoopNest.ScheduleInlineRandomUnrelated (8 ms) 2023-01-11T21:26:44.6089620Z [ RUN ] LoopNest.ScheduleInlineRandomLowerDimensions 2023-01-11T21:26:44.6156627Z [ OK ] LoopNest.ScheduleInlineRandomLowerDimensions (6 ms) 2023-01-11T21:26:44.6157317Z [ RUN ] LoopNest.ScheduleInlineIntrinsics 2023-01-11T21:26:44.9305550Z [ OK ] LoopNest.ScheduleInlineIntrinsics (314 ms) 2023-01-11T21:26:44.9306226Z [ RUN ] LoopNest.ScheduleInlineRandWithIntrinsics 2023-01-11T21:26:44.9380176Z [ OK ] LoopNest.ScheduleInlineRandWithIntrinsics (7 ms) 2023-01-11T21:26:44.9380879Z [ RUN ] LoopNest.ScheduleSplitAThenInline 2023-01-11T21:26:44.9402162Z [ OK ] LoopNest.ScheduleSplitAThenInline (2 ms) 2023-01-11T21:26:44.9402797Z [ RUN ] LoopNest.ScheduleSplitBThenInline 2023-01-11T21:26:44.9496805Z [ OK ] LoopNest.ScheduleSplitBThenInline (9 ms) 2023-01-11T21:26:44.9497457Z [ RUN ] LoopNest.ScheduleSplitTwiceThenInline 2023-01-11T21:26:44.9523608Z [ OK ] LoopNest.ScheduleSplitTwiceThenInline (2 ms) 2023-01-11T21:26:44.9524248Z [ RUN ] LoopNest.ScheduleInlineThenSplit 2023-01-11T21:26:44.9612259Z [ OK ] LoopNest.ScheduleInlineThenSplit (8 ms) 2023-01-11T21:26:44.9612926Z [ RUN ] LoopNest.ScheduleSplitInlineThenSplit 2023-01-11T21:26:44.9816071Z [ OK ] LoopNest.ScheduleSplitInlineThenSplit (20 ms) 2023-01-11T21:26:44.9816735Z [ RUN ] LoopNest.ScheduleSplitInlineSimplify 2023-01-11T21:26:44.9837913Z [ OK ] LoopNest.ScheduleSplitInlineSimplify (2 ms) 2023-01-11T21:26:44.9838588Z [ RUN ] LoopNest.ScheduleInlineThreeMixedOnce 2023-01-11T21:26:44.9958211Z [ OK ] LoopNest.ScheduleInlineThreeMixedOnce (11 ms) 2023-01-11T21:26:44.9958914Z [ RUN ] LoopNest.ScheduleInlineThreeMixedTwice 2023-01-11T21:26:45.0077225Z [ OK ] LoopNest.ScheduleInlineThreeMixedTwice (11 ms) 2023-01-11T21:26:45.0077924Z [ RUN ] LoopNest.ScheduleInlineThreeMixedInner 2023-01-11T21:26:45.0203303Z [ OK ] LoopNest.ScheduleInlineThreeMixedInner (12 ms) 2023-01-11T21:26:45.0204013Z [ RUN ] LoopNest.ScheduleInlineThreeMixedSplit 2023-01-11T21:26:45.0246343Z [ OK ] LoopNest.ScheduleInlineThreeMixedSplit (4 ms) 2023-01-11T21:26:45.0247015Z [ RUN ] LoopNest.ScheduleInlineOutputTensors 2023-01-11T21:26:45.0341351Z [ OK ] LoopNest.ScheduleInlineOutputTensors (9 ms) 2023-01-11T21:26:45.0342062Z [ RUN ] LoopNest.ScheduleInlineWithCompoundIndices 2023-01-11T21:26:45.0353044Z [ OK ] LoopNest.ScheduleInlineWithCompoundIndices (1 ms) 2023-01-11T21:26:45.0353799Z [ RUN ] LoopNest.ScheduleInlineConsumerIndicesWithCast 2023-01-11T21:26:45.0369608Z [ OK ] LoopNest.ScheduleInlineConsumerIndicesWithCast (1 ms) 2023-01-11T21:26:45.0370649Z [ RUN ] LoopNest.ScheduleInlineProducerIndicesWithCast 2023-01-11T21:26:45.0386525Z [ OK ] LoopNest.ScheduleInlineProducerIndicesWithCast (1 ms) 2023-01-11T21:26:45.0387175Z [ RUN ] LoopNest.ScheduleFuserStyle 2023-01-11T21:26:45.1570980Z [ OK ] LoopNest.ScheduleFuserStyle (118 ms) 2023-01-11T21:26:45.1571573Z [ RUN ] LoopNest.ScheduleFuserThreeArg 2023-01-11T21:26:45.3079618Z [ OK ] LoopNest.ScheduleFuserThreeArg (150 ms) 2023-01-11T21:26:45.3080196Z [ RUN ] LoopNest.ScheduleDynamicShape2D 2023-01-11T21:26:45.6388375Z [ OK ] LoopNest.ScheduleDynamicShape2D (330 ms) 2023-01-11T21:26:45.6389006Z [ RUN ] LoopNest.LoopNestComputeAt_1 2023-01-11T21:26:45.6604289Z [ OK ] LoopNest.LoopNestComputeAt_1 (21 ms) 2023-01-11T21:26:45.6604713Z [ RUN ] LoopNest.LoopNestComputeAt_2 2023-01-11T21:26:47.4289181Z [ OK ] LoopNest.LoopNestComputeAt_2 (1768 ms) 2023-01-11T21:26:47.4289565Z [ RUN ] LoopNest.LoopNestComputeAt_3 2023-01-11T21:26:49.1708143Z [ OK ] LoopNest.LoopNestComputeAt_3 (1741 ms) 2023-01-11T21:26:49.1708527Z [ RUN ] LoopNest.Reduce2dComputeAt 2023-01-11T21:26:52.0904376Z [ OK ] LoopNest.Reduce2dComputeAt (2919 ms) 2023-01-11T21:26:52.0905020Z [ RUN ] LoopNest.LoopNestReorderAxis1 2023-01-11T21:26:52.0972899Z [ OK ] LoopNest.LoopNestReorderAxis1 (6 ms) 2023-01-11T21:26:52.0973291Z [ RUN ] LoopNest.LoopNestReorderPartialAxes 2023-01-11T21:26:52.1278907Z [ OK ] LoopNest.LoopNestReorderPartialAxes (30 ms) 2023-01-11T21:26:52.1279296Z [ RUN ] LoopNest.LoopNestReorderInternalAxis 2023-01-11T21:26:52.1565922Z [ OK ] LoopNest.LoopNestReorderInternalAxis (28 ms) 2023-01-11T21:26:52.1566310Z [ RUN ] LoopNest.LoopNestReorderEnclosingAxis 2023-01-11T21:26:52.1862643Z [ OK ] LoopNest.LoopNestReorderEnclosingAxis (29 ms) 2023-01-11T21:26:52.1863017Z [ RUN ] LoopNest.LoopNestReorderSameAxis 2023-01-11T21:26:52.1880441Z [ OK ] LoopNest.LoopNestReorderSameAxis (1 ms) 2023-01-11T21:26:52.1880853Z [ RUN ] LoopNest.LoopNestReorderExtraStatements 2023-01-11T21:26:52.2298793Z [ OK ] LoopNest.LoopNestReorderExtraStatements (41 ms) 2023-01-11T21:26:52.2299211Z [ RUN ] LoopNest.LoopNestReorderLongStringOfPreOrphans 2023-01-11T21:26:54.0279966Z [ OK ] LoopNest.LoopNestReorderLongStringOfPreOrphans (1797 ms) 2023-01-11T21:26:54.0280758Z [ RUN ] LoopNest.LoopNestReorderLongStringOfPostOrphans 2023-01-11T21:26:55.8281814Z [ OK ] LoopNest.LoopNestReorderLongStringOfPostOrphans (1800 ms) 2023-01-11T21:26:55.8282288Z [ RUN ] LoopNest.LoopNestReorderLongStringFull 2023-01-11T21:26:58.0301228Z [ OK ] LoopNest.LoopNestReorderLongStringFull (2201 ms) 2023-01-11T21:26:58.0301673Z [ RUN ] LoopNest.LoopNestReorderInternalLoopNest 2023-01-11T21:26:58.4344138Z [ OK ] LoopNest.LoopNestReorderInternalLoopNest (404 ms) 2023-01-11T21:26:58.4344782Z [ RUN ] LoopNest.OuterLoopVectorization 2023-01-11T21:26:58.4383583Z [ OK ] LoopNest.OuterLoopVectorization (4 ms) 2023-01-11T21:26:58.4383956Z [ RUN ] LoopNest.VectorizeLoopNotNormalized 2023-01-11T21:26:58.4425282Z [ OK ] LoopNest.VectorizeLoopNotNormalized (4 ms) 2023-01-11T21:26:58.4425610Z [ RUN ] LoopNest.Unroll 2023-01-11T21:26:58.4442489Z [ OK ] LoopNest.Unroll (1 ms) 2023-01-11T21:26:58.4442793Z [ RUN ] LoopNest.UnrollOuter 2023-01-11T21:26:58.4479302Z [ OK ] LoopNest.UnrollOuter (3 ms) 2023-01-11T21:26:58.4479604Z [ RUN ] LoopNest.UnrollInner 2023-01-11T21:26:58.4508412Z [ OK ] LoopNest.UnrollInner (2 ms) 2023-01-11T21:26:58.4508758Z [ RUN ] LoopNest.UnrollMultipleStatements 2023-01-11T21:26:58.4524373Z [ OK ] LoopNest.UnrollMultipleStatements (1 ms) 2023-01-11T21:26:58.4524757Z [ RUN ] LoopNest.UnrollNonLiteralConstantBounds 2023-01-11T21:26:58.4551936Z [ OK ] LoopNest.UnrollNonLiteralConstantBounds (2 ms) 2023-01-11T21:26:58.4552305Z [ RUN ] LoopNest.UnrollNonConstantBounds 2023-01-11T21:26:58.4861259Z [ OK ] LoopNest.UnrollNonConstantBounds (30 ms) 2023-01-11T21:26:58.4861879Z [ RUN ] LoopNest.UnrollByFactorsLessThan2 2023-01-11T21:26:58.4871189Z [ OK ] LoopNest.UnrollByFactorsLessThan2 (1 ms) 2023-01-11T21:26:58.4871798Z [ RUN ] LoopNest.UnrollByFactorEqualToIters 2023-01-11T21:26:58.4922602Z [ OK ] LoopNest.UnrollByFactorEqualToIters (5 ms) 2023-01-11T21:26:58.4922961Z [ RUN ] LoopNest.UnrollEmpty 2023-01-11T21:26:58.4930437Z [ OK ] LoopNest.UnrollEmpty (0 ms) 2023-01-11T21:26:58.4930718Z [ RUN ] LoopNest.NoUnroll 2023-01-11T21:26:58.4938033Z [ OK ] LoopNest.NoUnroll (0 ms) 2023-01-11T21:26:58.4938335Z [ RUN ] LoopNest.UnrollWithLet 2023-01-11T21:26:58.4962006Z [ OK ] LoopNest.UnrollWithLet (2 ms) 2023-01-11T21:26:58.4962310Z [ RUN ] LoopNest.IsNormalized 2023-01-11T21:26:58.4964483Z [ OK ] LoopNest.IsNormalized (0 ms) 2023-01-11T21:26:58.4964989Z [ RUN ] LoopNest.NormalizeStartPositive 2023-01-11T21:26:58.5015860Z [ OK ] LoopNest.NormalizeStartPositive (5 ms) 2023-01-11T21:26:58.5016444Z [ RUN ] LoopNest.NormalizeStartNegative 2023-01-11T21:26:58.5080250Z [ OK ] LoopNest.NormalizeStartNegative (6 ms) 2023-01-11T21:26:58.5080597Z [ RUN ] LoopNest.NormalizeStartZero 2023-01-11T21:26:58.5088643Z [ OK ] LoopNest.NormalizeStartZero (0 ms) 2023-01-11T21:26:58.5088987Z [ RUN ] LoopNest.NormalizeStartVariable 2023-01-11T21:26:58.5143974Z [ OK ] LoopNest.NormalizeStartVariable (5 ms) 2023-01-11T21:26:58.5144419Z [ RUN ] LoopNest.NormalizeOnNestedOuterLoop 2023-01-11T21:26:58.5187757Z [ OK ] LoopNest.NormalizeOnNestedOuterLoop (4 ms) 2023-01-11T21:26:58.5188145Z [ RUN ] LoopNest.NormalizeOnNestedInnerLoop 2023-01-11T21:26:58.5235705Z [ OK ] LoopNest.NormalizeOnNestedInnerLoop (4 ms) 2023-01-11T21:26:58.5236315Z [ RUN ] LoopNest.NormalizeAndSplitWithTail 2023-01-11T21:26:58.5338150Z [ OK ] LoopNest.NormalizeAndSplitWithTail (10 ms) 2023-01-11T21:26:58.5338735Z [ RUN ] LoopNest.NotNormalizeAndSplitWithTail 2023-01-11T21:26:58.5472613Z [ OK ] LoopNest.NotNormalizeAndSplitWithTail (13 ms) 2023-01-11T21:26:58.5473144Z [ RUN ] LoopNest.FlattenSimpleLoopNest2D 2023-01-11T21:26:58.5780806Z [ OK ] LoopNest.FlattenSimpleLoopNest2D (30 ms) 2023-01-11T21:26:58.5781188Z [ RUN ] LoopNest.FlattenSimpleLoopNest3D 2023-01-11T21:26:58.8653303Z [ OK ] LoopNest.FlattenSimpleLoopNest3D (287 ms) 2023-01-11T21:26:58.8653816Z [ RUN ] LoopNest.FlattenLoopNestAfterNormalize 2023-01-11T21:26:58.9476087Z [ OK ] LoopNest.FlattenLoopNestAfterNormalize (82 ms) 2023-01-11T21:26:58.9476706Z [ RUN ] LoopNest.FlattenLoopNestWithNonLiteralConstantBounds 2023-01-11T21:26:58.9840956Z [ OK ] LoopNest.FlattenLoopNestWithNonLiteralConstantBounds (36 ms) 2023-01-11T21:26:58.9841569Z [ RUN ] LoopNest.FlattenImperfectLoopNest 2023-01-11T21:26:58.9843585Z [ OK ] LoopNest.FlattenImperfectLoopNest (0 ms) 2023-01-11T21:26:58.9844216Z [ RUN ] LoopNest.FlattenReductionLoopNest 2023-01-11T21:26:58.9847130Z [ OK ] LoopNest.FlattenReductionLoopNest (0 ms) 2023-01-11T21:26:58.9847983Z [ RUN ] LoopNest.FlattenReductionLoopNestFromTensor 2023-01-11T21:26:58.9859055Z [ OK ] LoopNest.FlattenReductionLoopNestFromTensor (1 ms) 2023-01-11T21:26:58.9859645Z [ RUN ] LoopNest.FlattenIncorrectLoopsAsInput 2023-01-11T21:26:58.9862688Z [ OK ] LoopNest.FlattenIncorrectLoopsAsInput (0 ms) 2023-01-11T21:26:58.9863289Z [ RUN ] LoopNest.DetectInlineRankMismatch 2023-01-11T21:26:58.9887248Z [ OK ] LoopNest.DetectInlineRankMismatch (2 ms) 2023-01-11T21:26:58.9887828Z [ RUN ] LoopNest.CacheReadsSimple 2023-01-11T21:27:00.2827918Z [ OK ] LoopNest.CacheReadsSimple (1293 ms) 2023-01-11T21:27:00.2828267Z [ RUN ] LoopNest.CacheReadsOuter 2023-01-11T21:27:01.6757259Z [ OK ] LoopNest.CacheReadsOuter (1392 ms) 2023-01-11T21:27:01.6757628Z [ RUN ] LoopNest.CacheReadsInternal 2023-01-11T21:27:03.1709649Z [ OK ] LoopNest.CacheReadsInternal (1495 ms) 2023-01-11T21:27:03.1710009Z [ RUN ] LoopNest.CacheReadsInner 2023-01-11T21:27:05.5657660Z [ OK ] LoopNest.CacheReadsInner (2394 ms) 2023-01-11T21:27:05.5658033Z [ RUN ] LoopNest.CacheWritesSimple 2023-01-11T21:27:08.1265466Z [ OK ] LoopNest.CacheWritesSimple (2560 ms) 2023-01-11T21:27:08.1265822Z [ RUN ] LoopNest.DeadStoreElimination 2023-01-11T21:27:08.1621974Z [ OK ] LoopNest.DeadStoreElimination (35 ms) 2023-01-11T21:27:08.1622577Z [ RUN ] LoopNest.DeadStoreEliminationWithIntermediates 2023-01-11T21:27:08.1921622Z [ OK ] LoopNest.DeadStoreEliminationWithIntermediates (29 ms) 2023-01-11T21:27:08.1922066Z [ RUN ] LoopNest.CompoundTensorSimple 2023-01-11T21:27:08.2311808Z [ OK ] LoopNest.CompoundTensorSimple (39 ms) 2023-01-11T21:27:08.2312307Z [ RUN ] LoopNest.InlineConstantIndex 2023-01-11T21:27:08.2394210Z [ OK ] LoopNest.InlineConstantIndex (8 ms) 2023-01-11T21:27:08.3086244Z [ RUN ] LoopNest.CompoundTensorUsed 2023-01-11T21:27:08.3086710Z [ OK ] LoopNest.CompoundTensorUsed (69 ms) 2023-01-11T21:27:08.3087049Z [ RUN ] LoopNest.InlineFromLoad 2023-01-11T21:27:08.3094071Z [ OK ] LoopNest.InlineFromLoad (0 ms) 2023-01-11T21:27:08.3094872Z [ RUN ] LoopNest.OptimizeConditionalsSimple 2023-01-11T21:27:08.3124145Z [ OK ] LoopNest.OptimizeConditionalsSimple (2 ms) 2023-01-11T21:27:08.3124731Z [ RUN ] LoopNest.OptimizeConditionalsNestedConditions 2023-01-11T21:27:08.3169872Z [ OK ] LoopNest.OptimizeConditionalsNestedConditions (4 ms) 2023-01-11T21:27:08.3170467Z [ RUN ] LoopNest.OptimizeConditionalsMultipleStores 2023-01-11T21:27:08.3221974Z [ OK ] LoopNest.OptimizeConditionalsMultipleStores (5 ms) 2023-01-11T21:27:08.3222644Z [ RUN ] LoopNest.OptimizeConditionalsMultipleStoresInOneLoop 2023-01-11T21:27:08.3339499Z [ OK ] LoopNest.OptimizeConditionalsMultipleStoresInOneLoop (11 ms) 2023-01-11T21:27:08.3340358Z [ RUN ] LoopNest.OptimizeConditionalsOuterLoopVar 2023-01-11T21:27:08.3433420Z [ OK ] LoopNest.OptimizeConditionalsOuterLoopVar (9 ms) 2023-01-11T21:27:08.3434057Z [ RUN ] LoopNest.OptimizeConditionalsCompValuesNotOrdered 2023-01-11T21:27:08.3520828Z [ OK ] LoopNest.OptimizeConditionalsCompValuesNotOrdered (8 ms) 2023-01-11T21:27:08.3521328Z [ RUN ] LoopNest.OptimizeConditionalsCompValuesNotConstants 2023-01-11T21:27:08.3602052Z [ OK ] LoopNest.OptimizeConditionalsCompValuesNotConstants (8 ms) 2023-01-11T21:27:08.3602524Z [ RUN ] LoopNest.OptimizeConditionalsInvalidCondition 2023-01-11T21:27:08.3688647Z [ OK ] LoopNest.OptimizeConditionalsInvalidCondition (8 ms) 2023-01-11T21:27:08.3689325Z [ RUN ] LoopNest.OptimizeConditionalsInvalidCondition2 2023-01-11T21:27:08.3780404Z [ OK ] LoopNest.OptimizeConditionalsInvalidCondition2 (9 ms) 2023-01-11T21:27:08.3780876Z [ RUN ] LoopNest.OptimizeConditionalsInvalidCondition3 2023-01-11T21:27:08.3857864Z [ OK ] LoopNest.OptimizeConditionalsInvalidCondition3 (7 ms) 2023-01-11T21:27:08.3858276Z [ RUN ] LoopNest.OptimizeConditionalsInvalidCondition4 2023-01-11T21:27:08.3924982Z [ OK ] LoopNest.OptimizeConditionalsInvalidCondition4 (6 ms) 2023-01-11T21:27:08.3925401Z [ RUN ] LoopNest.OptimizeConditionalsNotNormalized 2023-01-11T21:27:08.3963428Z [ OK ] LoopNest.OptimizeConditionalsNotNormalized (3 ms) 2023-01-11T21:27:08.3963807Z [ RUN ] LoopNest.ColReduceSplitTailEvenReorder 2023-01-11T21:27:13.7174236Z [ OK ] LoopNest.ColReduceSplitTailEvenReorder (5320 ms) 2023-01-11T21:27:13.7174871Z [ RUN ] LoopNest.ColReduceSplitTailUnevenReorder 2023-01-11T21:27:17.9242883Z [ OK ] LoopNest.ColReduceSplitTailUnevenReorder (4206 ms) 2023-01-11T21:27:17.9243327Z [ RUN ] LoopNest.ColReduceSplitMaskEvenReorder 2023-01-11T21:27:23.2391569Z [ OK ] LoopNest.ColReduceSplitMaskEvenReorder (5314 ms) 2023-01-11T21:27:23.2392008Z [ RUN ] LoopNest.ColReduceSplitMaskUnevenReorder 2023-01-11T21:27:28.0154185Z [ OK ] LoopNest.ColReduceSplitMaskUnevenReorder (4776 ms) 2023-01-11T21:27:28.0154625Z [ RUN ] LoopNest.ReorderAxisWithMultipleConds 2023-01-11T21:27:28.0220844Z [ OK ] LoopNest.ReorderAxisWithMultipleConds (6 ms) 2023-01-11T21:27:28.0221244Z [ RUN ] LoopNest.VectorizeUse 2023-01-11T21:27:28.0246466Z [ OK ] LoopNest.VectorizeUse (2 ms) 2023-01-11T21:27:28.0247016Z [ RUN ] LoopNest.Int64Direct 2023-01-11T21:27:28.0257316Z [ OK ] LoopNest.Int64Direct (1 ms) 2023-01-11T21:27:28.0257867Z [ RUN ] LoopNest.Int64Compute 2023-01-11T21:27:28.0273407Z [ OK ] LoopNest.Int64Compute (1 ms) 2023-01-11T21:27:28.0274065Z [ RUN ] LoopNest.DistributeLoopWithAllStmtsAsPivots 2023-01-11T21:27:28.0282714Z [ OK ] LoopNest.DistributeLoopWithAllStmtsAsPivots (0 ms) 2023-01-11T21:27:28.0283341Z [ RUN ] LoopNest.DistributeLoopWithOneStmtAsPivot 2023-01-11T21:27:28.0290770Z [ OK ] LoopNest.DistributeLoopWithOneStmtAsPivot (0 ms) 2023-01-11T21:27:28.0291383Z [ RUN ] LoopNest.DistributeLoopWithoutAnyPivot 2023-01-11T21:27:28.0299780Z [ OK ] LoopNest.DistributeLoopWithoutAnyPivot (0 ms) 2023-01-11T21:27:28.0300406Z [ RUN ] LoopNest.DistributeLoopOverInnerLoops 2023-01-11T21:27:28.0308240Z [ OK ] LoopNest.DistributeLoopOverInnerLoops (0 ms) 2023-01-11T21:27:28.0308911Z [ RUN ] LoopNest.DistributeLoopAndParentsWithoutAnyPivot 2023-01-11T21:27:28.0331915Z [ OK ] LoopNest.DistributeLoopAndParentsWithoutAnyPivot (2 ms) 2023-01-11T21:27:28.0332490Z [ RUN ] LoopNest.fuseLoopsSimple 2023-01-11T21:27:28.0373477Z [ OK ] LoopNest.fuseLoopsSimple (4 ms) 2023-01-11T21:27:28.0374011Z [ RUN ] LoopNest.fuseLoopsMultiple 2023-01-11T21:27:28.0500632Z [ OK ] LoopNest.fuseLoopsMultiple (12 ms) 2023-01-11T21:27:28.0501194Z [ RUN ] LoopNest.fuseLoopsNested 2023-01-11T21:27:28.0662000Z [ OK ] LoopNest.fuseLoopsNested (16 ms) 2023-01-11T21:27:28.0662319Z [ RUN ] LoopNest.fuseLoopsNested2D 2023-01-11T21:27:28.0747145Z [ OK ] LoopNest.fuseLoopsNested2D (8 ms) 2023-01-11T21:27:28.0747464Z [ RUN ] LoopNest.fuseLoopsNested2DInner 2023-01-11T21:27:28.0796624Z [ OK ] LoopNest.fuseLoopsNested2DInner (4 ms) 2023-01-11T21:27:28.0796991Z [ RUN ] LoopNest.fuseLoopsDifferentStopBounds 2023-01-11T21:27:28.0804045Z [ OK ] LoopNest.fuseLoopsDifferentStopBounds (0 ms) 2023-01-11T21:27:28.0804415Z [ RUN ] LoopNest.fuseLoopsDifferentStartBounds 2023-01-11T21:27:28.0808499Z [ OK ] LoopNest.fuseLoopsDifferentStartBounds (0 ms) 2023-01-11T21:27:28.0808879Z [ RUN ] LoopNest.fuseLoopsNotContiguous 2023-01-11T21:27:28.0846566Z [ OK ] LoopNest.fuseLoopsNotContiguous (3 ms) 2023-01-11T21:27:28.0846934Z [ RUN ] LoopNest.fuseLoopsWithDifferentParents 2023-01-11T21:27:28.0851860Z [ OK ] LoopNest.fuseLoopsWithDifferentParents (0 ms) 2023-01-11T21:27:28.0852240Z [ RUN ] LoopNest.fuseLoopsWithVariableBounds 2023-01-11T21:27:28.0927690Z [ OK ] LoopNest.fuseLoopsWithVariableBounds (7 ms) 2023-01-11T21:27:28.0928316Z [ RUN ] LoopNest.fuseLoopsWithExprBounds 2023-01-11T21:27:28.1036213Z [ OK ] LoopNest.fuseLoopsWithExprBounds (10 ms) 2023-01-11T21:27:28.1036611Z [ RUN ] LoopNest.fuseLoopsWithDifferentExprBounds 2023-01-11T21:27:28.1133890Z [ OK ] LoopNest.fuseLoopsWithDifferentExprBounds (9 ms) 2023-01-11T21:27:28.1134585Z [ RUN ] LoopNest.fuseLoopsWithNonOverlappingBufferAccesses 2023-01-11T21:27:28.1254712Z [ OK ] LoopNest.fuseLoopsWithNonOverlappingBufferAccesses (12 ms) 2023-01-11T21:27:28.1255192Z [ RUN ] LoopNest.fuseLoopsWithNonOverlapping2DBufferAccesses 2023-01-11T21:27:28.1481433Z [ OK ] LoopNest.fuseLoopsWithNonOverlapping2DBufferAccesses (22 ms) 2023-01-11T21:27:28.1481941Z [ RUN ] LoopNest.fuseLoopsWithReductions 2023-01-11T21:27:28.1613000Z [ OK ] LoopNest.fuseLoopsWithReductions (13 ms) 2023-01-11T21:27:28.1613384Z [ RUN ] LoopNest.fuseLoopsWith2DReductions 2023-01-11T21:27:28.1856871Z [ OK ] LoopNest.fuseLoopsWith2DReductions (24 ms) 2023-01-11T21:27:28.1857279Z [ RUN ] LoopNest.fuseLoopsWithComplexIndices 2023-01-11T21:27:28.2072260Z [ OK ] LoopNest.fuseLoopsWithComplexIndices (21 ms) 2023-01-11T21:27:28.2072831Z [ RUN ] LoopNest.fuseLoopsWithMixedLoopVarsAsIndices 2023-01-11T21:27:28.2351709Z [ OK ] LoopNest.fuseLoopsWithMixedLoopVarsAsIndices (27 ms) 2023-01-11T21:27:28.2352311Z [ RUN ] LoopNest.fuseLoopsWithTranspose 2023-01-11T21:27:28.2503102Z [ OK ] LoopNest.fuseLoopsWithTranspose (15 ms) 2023-01-11T21:27:28.2503758Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies1 2023-01-11T21:27:28.2633805Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies1 (13 ms) 2023-01-11T21:27:28.2634430Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies2 2023-01-11T21:27:28.2755844Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies2 (12 ms) 2023-01-11T21:27:28.2756475Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies3 2023-01-11T21:27:28.2973616Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies3 (21 ms) 2023-01-11T21:27:28.2974128Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies4 2023-01-11T21:27:28.3272633Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies4 (29 ms) 2023-01-11T21:27:28.3273039Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies5 2023-01-11T21:27:28.3415356Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies5 (14 ms) 2023-01-11T21:27:28.3416061Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies6 2023-01-11T21:27:28.3557940Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies6 (14 ms) 2023-01-11T21:27:28.3558699Z [ RUN ] LoopNest.fuseLoopsThatViolateDependencies7 2023-01-11T21:27:28.3694900Z [ OK ] LoopNest.fuseLoopsThatViolateDependencies7 (13 ms) 2023-01-11T21:27:28.3695543Z [ RUN ] LoopNest.areLoopsPerfectlyNested 2023-01-11T21:27:28.3696880Z [ OK ] LoopNest.areLoopsPerfectlyNested (0 ms) 2023-01-11T21:27:28.3697476Z [ RUN ] LoopNest.reorderNestedLoops2D 2023-01-11T21:27:28.3698789Z [ OK ] LoopNest.reorderNestedLoops2D (0 ms) 2023-01-11T21:27:28.3699306Z [ RUN ] LoopNest.reorderNestedLoops3D 2023-01-11T21:27:28.3702058Z [ OK ] LoopNest.reorderNestedLoops3D (0 ms) 2023-01-11T21:27:28.3702600Z [ RUN ] LoopNest.reorderNestedLoops4D 2023-01-11T21:27:28.3705366Z [ OK ] LoopNest.reorderNestedLoops4D (0 ms) 2023-01-11T21:27:28.3705962Z [ RUN ] LoopNest.reorderTrivialPermutation 2023-01-11T21:27:28.3707122Z [ OK ] LoopNest.reorderTrivialPermutation (0 ms) 2023-01-11T21:27:28.3707669Z [ RUN ] LoopNest.reorderInvalidPermutations 2023-01-11T21:27:28.3711082Z [ OK ] LoopNest.reorderInvalidPermutations (0 ms) 2023-01-11T21:27:28.3711702Z [ RUN ] LoopNest.reorderInvalidLoopNest 2023-01-11T21:27:28.3714250Z [ OK ] LoopNest.reorderInvalidLoopNest (0 ms) 2023-01-11T21:27:28.3714902Z [ RUN ] LoopNest.compressBufferSimple 2023-01-11T21:27:28.3723554Z [ OK ] LoopNest.compressBufferSimple (0 ms) 2023-01-11T21:27:28.3724171Z [ RUN ] LoopNest.compressBufferMultipleDims 2023-01-11T21:27:28.3731608Z [ OK ] LoopNest.compressBufferMultipleDims (0 ms) 2023-01-11T21:27:28.3732213Z [ RUN ] LoopNest.compressBufferMultipleDims2 2023-01-11T21:27:28.3742021Z [ OK ] LoopNest.compressBufferMultipleDims2 (1 ms) 2023-01-11T21:27:28.3742714Z [ RUN ] LoopNest.compressBufferDifferentOrderIndices 2023-01-11T21:27:28.3750840Z [ OK ] LoopNest.compressBufferDifferentOrderIndices (0 ms) 2023-01-11T21:27:28.3751487Z [ RUN ] LoopNest.compressBufferVariableBounds 2023-01-11T21:27:28.3760276Z [ OK ] LoopNest.compressBufferVariableBounds (0 ms) 2023-01-11T21:27:28.3760986Z [ RUN ] LoopNest.compressBufferNoCommonParentLoops 2023-01-11T21:27:28.3769189Z [ OK ] LoopNest.compressBufferNoCommonParentLoops (0 ms) 2023-01-11T21:27:28.3769832Z [ RUN ] LoopNest.compressBufferIndicesMixed 2023-01-11T21:27:28.3778374Z [ OK ] LoopNest.compressBufferIndicesMixed (0 ms) 2023-01-11T21:27:28.3778968Z [ RUN ] LoopNest.compressMultipleBuffers 2023-01-11T21:27:28.3793267Z [ OK ] LoopNest.compressMultipleBuffers (1 ms) 2023-01-11T21:27:28.3793787Z [ RUN ] LoopNest.sanitizeNames 2023-01-11T21:27:28.4048662Z [ OK ] LoopNest.sanitizeNames (25 ms) 2023-01-11T21:27:28.4049251Z [----------] 174 tests from LoopNest (58092 ms total) 2023-01-11T21:27:28.4049513Z 2023-01-11T21:27:28.4051521Z [----------] 31 tests from MemDependency 2023-01-11T21:27:28.4051964Z [ RUN ] MemDependency.BoundOverlap 2023-01-11T21:27:28.4402919Z [ OK ] MemDependency.BoundOverlap (35 ms) 2023-01-11T21:27:28.4403348Z [ RUN ] MemDependency.BoundComparison 2023-01-11T21:27:28.4679936Z [ OK ] MemDependency.BoundComparison (27 ms) 2023-01-11T21:27:28.4680652Z [ RUN ] MemDependency.BoundOverlapSymbolic 2023-01-11T21:27:28.4915774Z [ OK ] MemDependency.BoundOverlapSymbolic (23 ms) 2023-01-11T21:27:28.4916335Z [ RUN ] MemDependency.BoundOverlapMultiDim 2023-01-11T21:27:28.5185713Z [ OK ] MemDependency.BoundOverlapMultiDim (26 ms) 2023-01-11T21:27:28.5186275Z [ RUN ] MemDependency.BoundSubtract 2023-01-11T21:27:28.5419468Z [ OK ] MemDependency.BoundSubtract (23 ms) 2023-01-11T21:27:28.5420053Z [ RUN ] MemDependency.BoundSubtractSymbolic 2023-01-11T21:27:28.6046880Z [ OK ] MemDependency.BoundSubtractSymbolic (62 ms) 2023-01-11T21:27:28.6047434Z [ RUN ] MemDependency.BoundSubtractMultiDim 2023-01-11T21:27:28.6804061Z [ OK ] MemDependency.BoundSubtractMultiDim (75 ms) 2023-01-11T21:27:28.6804516Z [ RUN ] MemDependency.BoundSubtractMultiDimSymbolic 2023-01-11T21:27:28.7787547Z [ OK ] MemDependency.BoundSubtractMultiDimSymbolic (98 ms) 2023-01-11T21:27:28.7787995Z [ RUN ] MemDependency.MemDependencyCheckerSimple 2023-01-11T21:27:28.7796735Z [ OK ] MemDependency.MemDependencyCheckerSimple (1 ms) 2023-01-11T21:27:28.7797328Z [ RUN ] MemDependency.MemDependencyCheckerMultiStmt 2023-01-11T21:27:28.7814303Z [ OK ] MemDependency.MemDependencyCheckerMultiStmt (1 ms) 2023-01-11T21:27:28.7815088Z [ RUN ] MemDependency.MemDependencyCheckerOverlap 2023-01-11T21:27:28.7830089Z [ OK ] MemDependency.MemDependencyCheckerOverlap (1 ms) 2023-01-11T21:27:28.7830964Z [ RUN ] MemDependency.MemDependencyCheckerLoop 2023-01-11T21:27:28.7870528Z [ OK ] MemDependency.MemDependencyCheckerLoop (4 ms) 2023-01-11T21:27:28.7871142Z [ RUN ] MemDependency.MemDependencyCheckerLoopReduce 2023-01-11T21:27:28.7939586Z [ OK ] MemDependency.MemDependencyCheckerLoopReduce (6 ms) 2023-01-11T21:27:28.7940255Z [ RUN ] MemDependency.MemDependencyCheckerLoopReduceExpanded 2023-01-11T21:27:28.8007803Z [ OK ] MemDependency.MemDependencyCheckerLoopReduceExpanded (6 ms) 2023-01-11T21:27:28.8008443Z [ RUN ] MemDependency.MemDependencyCheckerInputsOutputs 2023-01-11T21:27:28.8051323Z [ OK ] MemDependency.MemDependencyCheckerInputsOutputs (4 ms) 2023-01-11T21:27:28.8051957Z [ RUN ] MemDependency.MemDependencyCheckerOutputDoesntDepend 2023-01-11T21:27:28.8080288Z [ OK ] MemDependency.MemDependencyCheckerOutputDoesntDepend (2 ms) 2023-01-11T21:27:28.8080912Z [ RUN ] MemDependency.MemDependencyCheckerLoopBounds 2023-01-11T21:27:28.8381873Z [ OK ] MemDependency.MemDependencyCheckerLoopBounds (30 ms) 2023-01-11T21:27:28.8382473Z [ RUN ] MemDependency.MemDependencyCheckerLoopBoundsIndexShift 2023-01-11T21:27:28.9160054Z [ OK ] MemDependency.MemDependencyCheckerLoopBoundsIndexShift (77 ms) 2023-01-11T21:27:28.9160651Z [ RUN ] MemDependency.MemDependencyCheckerLoopSelfDependency 2023-01-11T21:27:29.3386469Z [ OK ] MemDependency.MemDependencyCheckerLoopSelfDependency (422 ms) 2023-01-11T21:27:29.3386983Z [ RUN ] MemDependency.MemDependencyCheckerLoopDistinctStrides 2023-01-11T21:27:29.3649055Z [ OK ] MemDependency.MemDependencyCheckerLoopDistinctStrides (26 ms) 2023-01-11T21:27:29.3649706Z [ RUN ] MemDependency.MemDependencyCheckerLoopBoundsCond 2023-01-11T21:27:29.4159036Z [ OK ] MemDependency.MemDependencyCheckerLoopBoundsCond (50 ms) 2023-01-11T21:27:29.4159654Z [ RUN ] MemDependency.MemDependencyCheckerIfThenElse 2023-01-11T21:27:29.4513995Z [ OK ] MemDependency.MemDependencyCheckerIfThenElse (35 ms) 2023-01-11T21:27:29.4514599Z [ RUN ] MemDependency.MemDependencyCheckerCutLoop 2023-01-11T21:27:29.5067992Z [ OK ] MemDependency.MemDependencyCheckerCutLoop (55 ms) 2023-01-11T21:27:29.5068431Z [ RUN ] MemDependency.MemDependencyCheckerDynamicShapes 2023-01-11T21:27:29.5855367Z [ OK ] MemDependency.MemDependencyCheckerDynamicShapes (78 ms) 2023-01-11T21:27:29.5855830Z [ RUN ] MemDependency.MemDependencyCheckerMultiDim 2023-01-11T21:27:29.6877032Z [ OK ] MemDependency.MemDependencyCheckerMultiDim (102 ms) 2023-01-11T21:27:29.6877458Z [ RUN ] MemDependency.MemDependencyCheckerComputeAPI 2023-01-11T21:27:29.7168561Z [ OK ] MemDependency.MemDependencyCheckerComputeAPI (29 ms) 2023-01-11T21:27:29.7169003Z [ RUN ] MemDependency.MemDependencyCheckerComputeInline 2023-01-11T21:27:29.7381711Z [ OK ] MemDependency.MemDependencyCheckerComputeInline (21 ms) 2023-01-11T21:27:29.7382149Z [ RUN ] MemDependency.MemDependencyCheckerComputeSplit 2023-01-11T21:27:29.7967976Z [ OK ] MemDependency.MemDependencyCheckerComputeSplit (58 ms) 2023-01-11T21:27:29.7968416Z [ RUN ] MemDependency.MemDependencyCheckerComputeReorder 2023-01-11T21:27:29.8355934Z [ OK ] MemDependency.MemDependencyCheckerComputeReorder (38 ms) 2023-01-11T21:27:29.8356401Z [ RUN ] MemDependency.MemDependencyCheckerComputeReduce 2023-01-11T21:27:29.8652187Z [ OK ] MemDependency.MemDependencyCheckerComputeReduce (29 ms) 2023-01-11T21:27:29.8652627Z [ RUN ] MemDependency.MemDependencyCheckerComputeGEMM 2023-01-11T21:27:30.2797756Z [ OK ] MemDependency.MemDependencyCheckerComputeGEMM (414 ms) 2023-01-11T21:27:30.2798214Z [----------] 31 tests from MemDependency (1874 ms total) 2023-01-11T21:27:30.2798389Z 2023-01-11T21:27:30.2798531Z [----------] 2 tests from Ops 2023-01-11T21:27:30.2798765Z [ RUN ] Ops.Sum 2023-01-11T21:27:30.4035869Z [ OK ] Ops.Sum (123 ms) 2023-01-11T21:27:30.4036158Z [ RUN ] Ops.ChannelsLastSum 2023-01-11T21:27:34.3962020Z [ OK ] Ops.ChannelsLastSum (3992 ms) 2023-01-11T21:27:34.3962644Z [----------] 2 tests from Ops (4116 ms total) 2023-01-11T21:27:34.3962908Z 2023-01-11T21:27:34.3963188Z [----------] 10 tests from Quantization 2023-01-11T21:27:34.3965199Z [ RUN ] Quantization.QuantDequantInt8 2023-01-11T21:27:34.4377337Z [ OK ] Quantization.QuantDequantInt8 (41 ms) 2023-01-11T21:27:34.4377715Z [ RUN ] Quantization.QuantDequantUInt8 2023-01-11T21:27:34.4787698Z [ OK ] Quantization.QuantDequantUInt8 (41 ms) 2023-01-11T21:27:34.4788191Z [ RUN ] Quantization.QuantDequantUInt8_NLC 2023-01-11T21:27:34.5363690Z [ OK ] Quantization.QuantDequantUInt8_NLC (57 ms) 2023-01-11T21:27:34.5364082Z [ RUN ] Quantization.QuantAddDequantInt8 2023-01-11T21:27:34.6021558Z [ OK ] Quantization.QuantAddDequantInt8 (65 ms) 2023-01-11T21:27:34.6022083Z [ RUN ] Quantization.QuantAddDequantUInt8 2023-01-11T21:27:34.6675258Z [ OK ] Quantization.QuantAddDequantUInt8 (65 ms) 2023-01-11T21:27:34.6675648Z [ RUN ] Quantization.QuantSigmoidDequantUInt8 2023-01-11T21:27:34.7160324Z [ OK ] Quantization.QuantSigmoidDequantUInt8 (48 ms) 2023-01-11T21:27:34.7160718Z [ RUN ] Quantization.QuantMulDequantUInt8 2023-01-11T21:27:34.7778074Z [ OK ] Quantization.QuantMulDequantUInt8 (61 ms) 2023-01-11T21:27:34.7778485Z [ RUN ] Quantization.QuantUpsampleNearst2dDequantUInt8 2023-01-11T21:27:34.8832146Z [ OK ] Quantization.QuantUpsampleNearst2dDequantUInt8 (105 ms) 2023-01-11T21:27:34.8832555Z [ RUN ] Quantization.UpsampleNearst2d 2023-01-11T21:27:34.9289644Z [ OK ] Quantization.UpsampleNearst2d (45 ms) 2023-01-11T21:27:34.9290298Z [ RUN ] Quantization.QuantCatDequantUInt8 2023-01-11T21:27:35.0941908Z [ OK ] Quantization.QuantCatDequantUInt8 (165 ms) 2023-01-11T21:27:35.0942274Z [----------] 10 tests from Quantization (698 ms total) 2023-01-11T21:27:35.0942438Z 2023-01-11T21:27:35.0942593Z [----------] 2 tests from BufLiveRange 2023-01-11T21:27:35.0942890Z [ RUN ] BufLiveRange.SingleRangeLine 2023-01-11T21:27:35.0944416Z [ OK ] BufLiveRange.SingleRangeLine (0 ms) 2023-01-11T21:27:35.0944714Z [ RUN ] BufLiveRange.MulRangeLine 2023-01-11T21:27:35.0950088Z [ OK ] BufLiveRange.MulRangeLine (0 ms) 2023-01-11T21:27:35.0950575Z [----------] 2 tests from BufLiveRange (0 ms total) 2023-01-11T21:27:35.0950733Z 2023-01-11T21:27:35.0951061Z [----------] 6 tests from MemPlanning 2023-01-11T21:27:35.0951375Z [ RUN ] MemPlanning.MemReuseWithTypeCast 2023-01-11T21:27:35.2439506Z [ OK ] MemPlanning.MemReuseWithTypeCast (148 ms) 2023-01-11T21:27:35.2439885Z [ RUN ] MemPlanning.NoMemReuseForLargerType 2023-01-11T21:27:35.3928309Z [ OK ] MemPlanning.NoMemReuseForLargerType (148 ms) 2023-01-11T21:27:35.3928719Z [ RUN ] MemPlanning.SameBufSizeMemReuse 2023-01-11T21:27:35.4035267Z [ OK ] MemPlanning.SameBufSizeMemReuse (10 ms) 2023-01-11T21:27:35.4035644Z [ RUN ] MemPlanning.SameBufSizeMultiMemReuses 2023-01-11T21:27:35.4168250Z [ OK ] MemPlanning.SameBufSizeMultiMemReuses (13 ms) 2023-01-11T21:27:35.4168689Z [ RUN ] MemPlanning.SameBufSizeMultiMemReusesOfOneBuf 2023-01-11T21:27:35.4326993Z [ OK ] MemPlanning.SameBufSizeMultiMemReusesOfOneBuf (15 ms) 2023-01-11T21:27:35.4327429Z [ RUN ] MemPlanning.SmallerBufSizeNonMemReuse 2023-01-11T21:27:35.4434860Z [ OK ] MemPlanning.SmallerBufSizeNonMemReuse (10 ms) 2023-01-11T21:27:35.4435241Z [----------] 6 tests from MemPlanning (348 ms total) 2023-01-11T21:27:35.4435413Z 2023-01-11T21:27:35.4435562Z [----------] 45 tests from Reductions 2023-01-11T21:27:35.4435847Z [ RUN ] Reductions.ReduceSum0D_1 2023-01-11T21:27:35.4457228Z [ OK ] Reductions.ReduceSum0D_1 (2 ms) 2023-01-11T21:27:35.4457599Z [ RUN ] Reductions.ReduceSum0D_2 2023-01-11T21:27:35.4462635Z [ OK ] Reductions.ReduceSum0D_2 (0 ms) 2023-01-11T21:27:35.4462989Z [ RUN ] Reductions.ReduceSum1D 2023-01-11T21:27:35.4489938Z [ OK ] Reductions.ReduceSum1D (2 ms) 2023-01-11T21:27:35.4490311Z [ RUN ] Reductions.ReduceSum2D 2023-01-11T21:27:35.4596348Z [ OK ] Reductions.ReduceSum2D (10 ms) 2023-01-11T21:27:35.4596702Z [ RUN ] Reductions.ReduceSum3D 2023-01-11T21:27:35.5618033Z [ OK ] Reductions.ReduceSum3D (101 ms) 2023-01-11T21:27:35.5618361Z [ RUN ] Reductions.ReduceSum10D 2023-01-11T21:28:01.0005976Z [ OK ] Reductions.ReduceSum10D (25438 ms) 2023-01-11T21:28:01.0006363Z [ RUN ] Reductions.ReduceProduct 2023-01-11T21:28:01.0100862Z [ OK ] Reductions.ReduceProduct (9 ms) 2023-01-11T21:28:01.0101205Z [ RUN ] Reductions.ReduceMax 2023-01-11T21:28:01.0212199Z [ OK ] Reductions.ReduceMax (11 ms) 2023-01-11T21:28:01.0212557Z [ RUN ] Reductions.ReduceMinCustomInitializer 2023-01-11T21:28:01.0249432Z [ OK ] Reductions.ReduceMinCustomInitializer (3 ms) 2023-01-11T21:28:01.0249795Z [ RUN ] Reductions.ReduceAnyAll 2023-01-11T21:28:01.0937500Z [ OK ] Reductions.ReduceAnyAll (68 ms) 2023-01-11T21:28:01.0937832Z [ RUN ] Reductions.ReduceMatmul2D 2023-01-11T21:28:01.1244368Z [ OK ] Reductions.ReduceMatmul2D (30 ms) 2023-01-11T21:28:01.1244722Z [ RUN ] Reductions.ReduceRfactorLike 2023-01-11T21:28:01.1605611Z [ OK ] Reductions.ReduceRfactorLike (36 ms) 2023-01-11T21:28:01.1605966Z [ RUN ] Reductions.ReduceAsProducer 2023-01-11T21:28:01.2339947Z [ OK ] Reductions.ReduceAsProducer (73 ms) 2023-01-11T21:28:01.2340266Z [ RUN ] Reductions.ReduceAsConsumer 2023-01-11T21:28:01.3472637Z [ OK ] Reductions.ReduceAsConsumer (113 ms) 2023-01-11T21:28:01.3473213Z [ RUN ] Reductions.SplitReduceAxis 2023-01-11T21:28:01.4014968Z [ OK ] Reductions.SplitReduceAxis (54 ms) 2023-01-11T21:28:01.4015557Z [ RUN ] Reductions.SplitNonReduceAxis 2023-01-11T21:28:01.5143814Z [ OK ] Reductions.SplitNonReduceAxis (112 ms) 2023-01-11T21:28:01.5144480Z [ RUN ] Reductions.ReorderedReductionInitializer 2023-01-11T21:28:01.6500570Z [ OK ] Reductions.ReorderedReductionInitializer (135 ms) 2023-01-11T21:28:01.6501230Z [ RUN ] Reductions.ReduceRfactor 2023-01-11T21:28:01.6832100Z [ OK ] Reductions.ReduceRfactor (33 ms) 2023-01-11T21:28:01.6832686Z [ RUN ] Reductions.Reduce3DRfactorInner 2023-01-11T21:28:02.1245029Z [ OK ] Reductions.Reduce3DRfactorInner (441 ms) 2023-01-11T21:28:02.1245686Z [ RUN ] Reductions.Reduce3DRfactorOuter 2023-01-11T21:28:02.5597780Z [ OK ] Reductions.Reduce3DRfactorOuter (435 ms) 2023-01-11T21:28:02.5598443Z [ RUN ] Reductions.ReduceRepeatedInternalRfactor 2023-01-11T21:28:08.8459422Z [ OK ] Reductions.ReduceRepeatedInternalRfactor (6286 ms) 2023-01-11T21:28:08.8460046Z [ RUN ] Reductions.ReduceSplitTail 2023-01-11T21:28:10.2230370Z [ OK ] Reductions.ReduceSplitTail (1377 ms) 2023-01-11T21:28:10.2230952Z [ RUN ] Reductions.ReduceSplitNoTail 2023-01-11T21:28:11.8239113Z [ OK ] Reductions.ReduceSplitNoTail (1600 ms) 2023-01-11T21:28:11.8239708Z [ RUN ] Reductions.ReduceOverSplitTail 2023-01-11T21:28:13.1484133Z [ OK ] Reductions.ReduceOverSplitTail (1324 ms) 2023-01-11T21:28:13.1484763Z [ RUN ] Reductions.ReduceSplitMask 2023-01-11T21:28:14.9037079Z [ OK ] Reductions.ReduceSplitMask (1755 ms) 2023-01-11T21:28:14.9037646Z [ RUN ] Reductions.ReduceSplitNoMask 2023-01-11T21:28:16.5135615Z [ OK ] Reductions.ReduceSplitNoMask (1609 ms) 2023-01-11T21:28:16.5136159Z [ RUN ] Reductions.ReduceOverSplitMask 2023-01-11T21:28:17.9241139Z [ OK ] Reductions.ReduceOverSplitMask (1410 ms) 2023-01-11T21:28:17.9241707Z [ RUN ] Reductions.ReduceSplitRfactor 2023-01-11T21:28:18.0675534Z [ OK ] Reductions.ReduceSplitRfactor (143 ms) 2023-01-11T21:28:18.0676194Z [ RUN ] Reductions.ReduceOverSplitRfactor 2023-01-11T21:28:18.1116346Z [ OK ] Reductions.ReduceOverSplitRfactor (44 ms) 2023-01-11T21:28:18.1116939Z [ RUN ] Reductions.ReduceInlineReduction 2023-01-11T21:28:18.1137169Z [ OK ] Reductions.ReduceInlineReduction (2 ms) 2023-01-11T21:28:18.1137735Z [ RUN ] Reductions.ReduceInlineConsumer 2023-01-11T21:28:18.4234931Z [ OK ] Reductions.ReduceInlineConsumer (309 ms) 2023-01-11T21:28:18.4235604Z [ RUN ] Reductions.ReduceInlineReducerInternal 2023-01-11T21:28:18.7412047Z [ OK ] Reductions.ReduceInlineReducerInternal (317 ms) 2023-01-11T21:28:18.7412748Z [ RUN ] Reductions.ReductionCacheAccessesOperatorAxis 2023-01-11T21:28:18.8884467Z [ OK ] Reductions.ReductionCacheAccessesOperatorAxis (147 ms) 2023-01-11T21:28:18.8885260Z [ RUN ] Reductions.ReductionCacheAccessesOuterReduceAxis 2023-01-11T21:28:19.0276989Z [ OK ] Reductions.ReductionCacheAccessesOuterReduceAxis (139 ms) 2023-01-11T21:28:19.0277780Z [ RUN ] Reductions.ReductionCacheAccessesInnerReduceAxis 2023-01-11T21:28:19.1674206Z [ OK ] Reductions.ReductionCacheAccessesInnerReduceAxis (139 ms) 2023-01-11T21:28:19.1674992Z [ RUN ] Reductions.ReductionCacheBodyAccess 2023-01-11T21:28:19.2093067Z [ OK ] Reductions.ReductionCacheBodyAccess (41 ms) 2023-01-11T21:28:19.2093761Z [ RUN ] Reductions.ReductionCacheConsumerAccess 2023-01-11T21:28:19.2545392Z [ OK ] Reductions.ReductionCacheConsumerAccess (45 ms) 2023-01-11T21:28:19.2546105Z [ RUN ] Reductions.ReductionSplitCacheConsumerAccess 2023-01-11T21:28:19.3064611Z [ OK ] Reductions.ReductionSplitCacheConsumerAccess (51 ms) 2023-01-11T21:28:19.3065364Z [ RUN ] Reductions.ReductionReorderCacheConsumerAccess 2023-01-11T21:28:19.3526841Z [ OK ] Reductions.ReductionReorderCacheConsumerAccess (46 ms) 2023-01-11T21:28:19.3527612Z [ RUN ] Reductions.ReductionRfactorCacheTempOuter 2023-01-11T21:28:19.9443567Z [ OK ] Reductions.ReductionRfactorCacheTempOuter (591 ms) 2023-01-11T21:28:19.9444321Z [ RUN ] Reductions.ReductionRfactorCacheTempInner 2023-01-11T21:28:20.4223969Z [ OK ] Reductions.ReductionRfactorCacheTempInner (478 ms) 2023-01-11T21:28:20.4224578Z [ RUN ] Reductions.ReductionVectorize 2023-01-11T21:28:20.4594326Z [ OK ] Reductions.ReductionVectorize (37 ms) 2023-01-11T21:28:20.4594983Z [ RUN ] Reductions.ReductionVectorizeInner 2023-01-11T21:28:20.4603547Z [ OK ] Reductions.ReductionVectorizeInner (0 ms) 2023-01-11T21:28:20.4604176Z [ RUN ] Reductions.ReductionVectorizeRfactor 2023-01-11T21:28:20.5009246Z [ OK ] Reductions.ReductionVectorizeRfactor (40 ms) 2023-01-11T21:28:20.5009836Z [ RUN ] Reductions.InitFunction 2023-01-11T21:28:20.5053495Z [ OK ] Reductions.InitFunction (4 ms) 2023-01-11T21:28:20.5054056Z [----------] 45 tests from Reductions (45061 ms total) 2023-01-11T21:28:20.5054507Z 2023-01-11T21:28:20.5054782Z [----------] 69 tests from Registerizer 2023-01-11T21:28:20.5057325Z [ RUN ] Registerizer.RegisterizerSimple 2023-01-11T21:28:20.5094075Z [ OK ] Registerizer.RegisterizerSimple (4 ms) 2023-01-11T21:28:20.5094557Z [ RUN ] Registerizer.RegisterizerLoop 2023-01-11T21:28:20.5123766Z [ OK ] Registerizer.RegisterizerLoop (2 ms) 2023-01-11T21:28:20.5124118Z [ RUN ] Registerizer.RegisterizerLoopFixedLoad 2023-01-11T21:28:20.5158082Z [ OK ] Registerizer.RegisterizerLoopFixedLoad (3 ms) 2023-01-11T21:28:20.5158468Z [ RUN ] Registerizer.RegisterizerLoopInternal 2023-01-11T21:28:20.5191175Z [ OK ] Registerizer.RegisterizerLoopInternal (3 ms) 2023-01-11T21:28:20.5191571Z [ RUN ] Registerizer.RegisterizerLoopInternalLoadOverlap 2023-01-11T21:28:20.5234157Z [ OK ] Registerizer.RegisterizerLoopInternalLoadOverlap (4 ms) 2023-01-11T21:28:20.5234599Z [ RUN ] Registerizer.RegisterizerLoopInternalRepeated 2023-01-11T21:28:20.5327380Z [ OK ] Registerizer.RegisterizerLoopInternalRepeated (9 ms) 2023-01-11T21:28:20.5327893Z [ RUN ] Registerizer.RegisterizerLoopInternalRepeatedOverlapLoopVar 2023-01-11T21:28:20.5400404Z [ OK ] Registerizer.RegisterizerLoopInternalRepeatedOverlapLoopVar (7 ms) 2023-01-11T21:28:20.5400918Z [ RUN ] Registerizer.RegisterizerLoopInternalRepeatedOverlapOther 2023-01-11T21:28:20.5473849Z [ OK ] Registerizer.RegisterizerLoopInternalRepeatedOverlapOther (7 ms) 2023-01-11T21:28:20.5474281Z [ RUN ] Registerizer.RegisterizerMultiVar 2023-01-11T21:28:20.5545832Z [ OK ] Registerizer.RegisterizerMultiVar (7 ms) 2023-01-11T21:28:20.5546206Z [ RUN ] Registerizer.RegisterizerVariableLoad 2023-01-11T21:28:20.5600951Z [ OK ] Registerizer.RegisterizerVariableLoad (5 ms) 2023-01-11T21:28:20.5601556Z [ RUN ] Registerizer.RegisterizerSymbolicIndices 2023-01-11T21:28:20.5639974Z [ OK ] Registerizer.RegisterizerSymbolicIndices (3 ms) 2023-01-11T21:28:20.5640354Z [ RUN ] Registerizer.RegisterizerMultiLoop 2023-01-11T21:28:20.5702707Z [ OK ] Registerizer.RegisterizerMultiLoop (6 ms) 2023-01-11T21:28:20.5703085Z [ RUN ] Registerizer.RegisterizerRepeated 2023-01-11T21:28:20.5792177Z [ OK ] Registerizer.RegisterizerRepeated (8 ms) 2023-01-11T21:28:20.5792832Z [ RUN ] Registerizer.RegisterizerNoLoads 2023-01-11T21:28:20.5827009Z [ OK ] Registerizer.RegisterizerNoLoads (3 ms) 2023-01-11T21:28:20.5827907Z [ RUN ] Registerizer.RegisterizerNoRepeatedStores 2023-01-11T21:28:20.5867557Z [ OK ] Registerizer.RegisterizerNoRepeatedStores (4 ms) 2023-01-11T21:28:20.5868259Z [ RUN ] Registerizer.RegisterizerMultiVarOverlap 2023-01-11T21:28:20.5953379Z [ OK ] Registerizer.RegisterizerMultiVarOverlap (8 ms) 2023-01-11T21:28:20.5953976Z [ RUN ] Registerizer.RegisterizerAllocs 2023-01-11T21:28:20.6031005Z [ OK ] Registerizer.RegisterizerAllocs (7 ms) 2023-01-11T21:28:20.6031652Z [ RUN ] Registerizer.RegisterizerNoInitializer 2023-01-11T21:28:20.6061360Z [ OK ] Registerizer.RegisterizerNoInitializer (3 ms) 2023-01-11T21:28:20.6062079Z [ RUN ] Registerizer.RegisterizerNoInitializerLoopVar 2023-01-11T21:28:20.6091953Z [ OK ] Registerizer.RegisterizerNoInitializerLoopVar (3 ms) 2023-01-11T21:28:20.6092658Z [ RUN ] Registerizer.RegisterizerLoadThenStore 2023-01-11T21:28:20.6135480Z [ OK ] Registerizer.RegisterizerLoadThenStore (4 ms) 2023-01-11T21:28:20.6136145Z [ RUN ] Registerizer.RegisterizerParallelized 2023-01-11T21:28:20.6150623Z [ OK ] Registerizer.RegisterizerParallelized (1 ms) 2023-01-11T21:28:20.6151281Z [ RUN ] Registerizer.RegisterizerConditionAfter 2023-01-11T21:28:20.6191415Z [ OK ] Registerizer.RegisterizerConditionAfter (4 ms) 2023-01-11T21:28:20.6192054Z [ RUN ] Registerizer.RegisterizerConditionBefore 2023-01-11T21:28:20.6228608Z [ OK ] Registerizer.RegisterizerConditionBefore (3 ms) 2023-01-11T21:28:20.6229255Z [ RUN ] Registerizer.RegisterizerConditionInside 2023-01-11T21:28:20.6281156Z [ OK ] Registerizer.RegisterizerConditionInside (5 ms) 2023-01-11T21:28:20.6281840Z [ RUN ] Registerizer.RegisterizerConditionInsideOverlap1 2023-01-11T21:28:20.6340806Z [ OK ] Registerizer.RegisterizerConditionInsideOverlap1 (5 ms) 2023-01-11T21:28:20.6341561Z [ RUN ] Registerizer.RegisterizerConditionInsideOverlap2 2023-01-11T21:28:20.6427101Z [ OK ] Registerizer.RegisterizerConditionInsideOverlap2 (8 ms) 2023-01-11T21:28:20.6427786Z [ RUN ] Registerizer.RegisterizerConditionHidden 2023-01-11T21:28:20.6457764Z [ OK ] Registerizer.RegisterizerConditionHidden (3 ms) 2023-01-11T21:28:20.6458413Z [ RUN ] Registerizer.RegisterizerConditionUnhidden 2023-01-11T21:28:20.6505479Z [ OK ] Registerizer.RegisterizerConditionUnhidden (4 ms) 2023-01-11T21:28:20.6506104Z [ RUN ] Registerizer.RegisterizerCondCondition 2023-01-11T21:28:20.6550788Z [ OK ] Registerizer.RegisterizerCondCondition (4 ms) 2023-01-11T21:28:20.6551461Z [ RUN ] Registerizer.RegisterizerCondConditionUnhidden 2023-01-11T21:28:20.6600493Z [ OK ] Registerizer.RegisterizerCondConditionUnhidden (4 ms) 2023-01-11T21:28:20.6601179Z [ RUN ] Registerizer.RegisterizerIfThenElseHidden 2023-01-11T21:28:20.6695669Z [ OK ] Registerizer.RegisterizerIfThenElseHidden (9 ms) 2023-01-11T21:28:20.6696620Z [ RUN ] Registerizer.RegisterizerIfThenElseUnhidden 2023-01-11T21:28:20.6803836Z [ OK ] Registerizer.RegisterizerIfThenElseUnhidden (10 ms) 2023-01-11T21:28:20.6804480Z [ RUN ] Registerizer.RegisterizerIfThenElseNested 2023-01-11T21:28:20.6853701Z [ OK ] Registerizer.RegisterizerIfThenElseNested (4 ms) 2023-01-11T21:28:20.6854639Z [ RUN ] Registerizer.RegisterizerIfThenElseInternal 2023-01-11T21:28:20.6914073Z [ OK ] Registerizer.RegisterizerIfThenElseInternal (5 ms) 2023-01-11T21:28:20.6914879Z [ RUN ] Registerizer.RegisterizerIfThenElseCondition 2023-01-11T21:28:20.6949734Z [ OK ] Registerizer.RegisterizerIfThenElseCondition (3 ms) 2023-01-11T21:28:20.6950738Z [ RUN ] Registerizer.RegisterizerIfThenElseConditionUnhidden 2023-01-11T21:28:20.7001161Z [ OK ] Registerizer.RegisterizerIfThenElseConditionUnhidden (5 ms) 2023-01-11T21:28:20.7001904Z [ RUN ] Registerizer.RegisterizerConditionBranchOnly 2023-01-11T21:28:20.7321069Z [ OK ] Registerizer.RegisterizerConditionBranchOnly (31 ms) 2023-01-11T21:28:20.7321809Z [ RUN ] Registerizer.RegisterizerCondIfThenElse 2023-01-11T21:28:20.7375970Z [ OK ] Registerizer.RegisterizerCondIfThenElse (5 ms) 2023-01-11T21:28:20.7376706Z [ RUN ] Registerizer.RegisterizerIfThenElseLoop 2023-01-11T21:28:20.7413311Z [ OK ] Registerizer.RegisterizerIfThenElseLoop (3 ms) 2023-01-11T21:28:20.7414011Z [ RUN ] Registerizer.RegisterizerIfThenElseLoopCut 2023-01-11T21:28:20.7454836Z [ OK ] Registerizer.RegisterizerIfThenElseLoopCut (4 ms) 2023-01-11T21:28:20.7455529Z [ RUN ] Registerizer.RegisterizerPartialAfter 2023-01-11T21:28:20.7528248Z [ OK ] Registerizer.RegisterizerPartialAfter (7 ms) 2023-01-11T21:28:20.7528920Z [ RUN ] Registerizer.RegisterizerPartialBefore 2023-01-11T21:28:20.7601055Z [ OK ] Registerizer.RegisterizerPartialBefore (7 ms) 2023-01-11T21:28:20.7601711Z [ RUN ] Registerizer.RegisterizerPartialInside 2023-01-11T21:28:20.7691514Z [ OK ] Registerizer.RegisterizerPartialInside (9 ms) 2023-01-11T21:28:20.7692136Z [ RUN ] Registerizer.RegisterizerPartialCondition 2023-01-11T21:28:20.7797509Z [ OK ] Registerizer.RegisterizerPartialCondition (10 ms) 2023-01-11T21:28:20.7798301Z [ RUN ] Registerizer.RegisterizerPartialConditionInternalCut 2023-01-11T21:28:20.7832507Z [ OK ] Registerizer.RegisterizerPartialConditionInternalCut (3 ms) 2023-01-11T21:28:20.7833386Z [ RUN ] Registerizer.RegisterizerPartialConditionInternalStart 2023-01-11T21:28:20.7864479Z [ OK ] Registerizer.RegisterizerPartialConditionInternalStart (3 ms) 2023-01-11T21:28:20.7865231Z [ RUN ] Registerizer.RegisterizerPartialOverlapsTwo 2023-01-11T21:28:20.7932091Z [ OK ] Registerizer.RegisterizerPartialOverlapsTwo (6 ms) 2023-01-11T21:28:20.7932769Z [ RUN ] Registerizer.RegisterizerNestedBlocks 2023-01-11T21:28:20.7975438Z [ OK ] Registerizer.RegisterizerNestedBlocks (4 ms) 2023-01-11T21:28:20.7976108Z [ RUN ] Registerizer.RegisterizerNestedConditions 2023-01-11T21:28:20.8016926Z [ OK ] Registerizer.RegisterizerNestedConditions (4 ms) 2023-01-11T21:28:20.8017658Z [ RUN ] Registerizer.RegisterizerNestedConditionsUnhidden 2023-01-11T21:28:20.8067109Z [ OK ] Registerizer.RegisterizerNestedConditionsUnhidden (4 ms) 2023-01-11T21:28:20.8067899Z [ RUN ] Registerizer.RegisterizerNestedConditionsHiddenFirst 2023-01-11T21:28:20.8136398Z [ OK ] Registerizer.RegisterizerNestedConditionsHiddenFirst (6 ms) 2023-01-11T21:28:20.8137239Z [ RUN ] Registerizer.RegisterizerNestedConditionsHiddenSecond 2023-01-11T21:28:20.8204980Z [ OK ] Registerizer.RegisterizerNestedConditionsHiddenSecond (6 ms) 2023-01-11T21:28:20.8205750Z [ RUN ] Registerizer.RegisterizerNestedConditionsCut 2023-01-11T21:28:20.8244452Z [ OK ] Registerizer.RegisterizerNestedConditionsCut (3 ms) 2023-01-11T21:28:20.8245202Z [ RUN ] Registerizer.RegisterizerNestedConditionLoopHidden 2023-01-11T21:28:20.8307668Z [ OK ] Registerizer.RegisterizerNestedConditionLoopHidden (6 ms) 2023-01-11T21:28:20.8308414Z [ RUN ] Registerizer.RegisterizerNestedConditionThreeDeep 2023-01-11T21:28:20.8444818Z [ OK ] Registerizer.RegisterizerNestedConditionThreeDeep (13 ms) 2023-01-11T21:28:20.8445408Z [ RUN ] Registerizer.RegisterizerNestedLoopSimple 2023-01-11T21:28:20.8482817Z [ OK ] Registerizer.RegisterizerNestedLoopSimple (3 ms) 2023-01-11T21:28:20.8483293Z [ RUN ] Registerizer.RegisterizerHiddenAccessYes 2023-01-11T21:28:20.8561528Z [ OK ] Registerizer.RegisterizerHiddenAccessYes (7 ms) 2023-01-11T21:28:20.8562133Z [ RUN ] Registerizer.RegisterizerHiddenAccessNo 2023-01-11T21:28:20.8632020Z [ OK ] Registerizer.RegisterizerHiddenAccessNo (7 ms) 2023-01-11T21:28:20.8632626Z [ RUN ] Registerizer.RegisterizerHiddenAccessMultiLoop 2023-01-11T21:28:20.8724735Z [ OK ] Registerizer.RegisterizerHiddenAccessMultiLoop (9 ms) 2023-01-11T21:28:20.8725199Z [ RUN ] Registerizer.RegisterizerTwoConditionalLoops 2023-01-11T21:28:20.8780772Z [ OK ] Registerizer.RegisterizerTwoConditionalLoops (5 ms) 2023-01-11T21:28:20.8781396Z [ RUN ] Registerizer.RegisterizerTwoConditionalLoopsCut 2023-01-11T21:28:20.8848032Z [ OK ] Registerizer.RegisterizerTwoConditionalLoopsCut (6 ms) 2023-01-11T21:28:20.8848620Z [ RUN ] Registerizer.RegisterizerLoopLetVar 2023-01-11T21:28:20.8879010Z [ OK ] Registerizer.RegisterizerLoopLetVar (3 ms) 2023-01-11T21:28:20.8879603Z [ RUN ] Registerizer.RegisterizerLoopLetVarOuter 2023-01-11T21:28:20.8908551Z [ OK ] Registerizer.RegisterizerLoopLetVarOuter (2 ms) 2023-01-11T21:28:20.8909142Z [ RUN ] Registerizer.RegisterizerMultiDim 2023-01-11T21:28:20.8948066Z [ OK ] Registerizer.RegisterizerMultiDim (3 ms) 2023-01-11T21:28:20.8948698Z [ RUN ] Registerizer.RegisterizerMultiDimPartial 2023-01-11T21:28:20.9005457Z [ OK ] Registerizer.RegisterizerMultiDimPartial (5 ms) 2023-01-11T21:28:20.9006046Z [ RUN ] Registerizer.RegisterizerMultiDimOverlap 2023-01-11T21:28:20.9068908Z [ OK ] Registerizer.RegisterizerMultiDimOverlap (6 ms) 2023-01-11T21:28:20.9069482Z [ RUN ] Registerizer.RegisterizerMultiDimPartialOverlap 2023-01-11T21:28:20.9139279Z [ OK ] Registerizer.RegisterizerMultiDimPartialOverlap (7 ms) 2023-01-11T21:28:20.9139901Z [ RUN ] Registerizer.RegisterizerMultiDim3DReduction1 2023-01-11T21:28:20.9212866Z [ OK ] Registerizer.RegisterizerMultiDim3DReduction1 (7 ms) 2023-01-11T21:28:20.9213472Z [ RUN ] Registerizer.RegisterizerMultiDim3DReduction2 2023-01-11T21:28:20.9292140Z [ OK ] Registerizer.RegisterizerMultiDim3DReduction2 (7 ms) 2023-01-11T21:28:20.9292626Z [----------] 69 tests from Registerizer (423 ms total) 2023-01-11T21:28:20.9292791Z 2023-01-11T21:28:20.9292938Z [----------] 92 tests from Simplify 2023-01-11T21:28:20.9293224Z [ RUN ] Simplify.ConstantFoldSimple 2023-01-11T21:28:20.9298149Z [ OK ] Simplify.ConstantFoldSimple (0 ms) 2023-01-11T21:28:20.9298467Z [ RUN ] Simplify.ConstantFoldTwoLayer 2023-01-11T21:28:20.9308454Z [ OK ] Simplify.ConstantFoldTwoLayer (0 ms) 2023-01-11T21:28:20.9308774Z [ RUN ] Simplify.ConstantFoldShifts 2023-01-11T21:28:20.9318771Z [ OK ] Simplify.ConstantFoldShifts (1 ms) 2023-01-11T21:28:20.9319093Z [ RUN ] Simplify.ConstantFoldBitwise 2023-01-11T21:28:20.9326327Z [ OK ] Simplify.ConstantFoldBitwise (0 ms) 2023-01-11T21:28:20.9326664Z [ RUN ] Simplify.ConstantFoldMultiOp 2023-01-11T21:28:20.9344927Z [ OK ] Simplify.ConstantFoldMultiOp (1 ms) 2023-01-11T21:28:20.9345246Z [ RUN ] Simplify.ConstantFoldMinMax 2023-01-11T21:28:20.9352667Z [ OK ] Simplify.ConstantFoldMinMax (0 ms) 2023-01-11T21:28:20.9352985Z [ RUN ] Simplify.ConstantFoldIntrinsics 2023-01-11T21:28:20.9374022Z [ OK ] Simplify.ConstantFoldIntrinsics (2 ms) 2023-01-11T21:28:20.9374507Z [ RUN ] Simplify.ConstantFoldCastToBool 2023-01-11T21:28:20.9379191Z [ OK ] Simplify.ConstantFoldCastToBool (0 ms) 2023-01-11T21:28:20.9379507Z [ RUN ] Simplify.ConstantFoldWithVar 2023-01-11T21:28:20.9390902Z [ OK ] Simplify.ConstantFoldWithVar (1 ms) 2023-01-11T21:28:20.9391335Z [ RUN ] Simplify.ConditionalSelectFoldSimple 2023-01-11T21:28:20.9436387Z [ OK ] Simplify.ConditionalSelectFoldSimple (4 ms) 2023-01-11T21:28:20.9436796Z [ RUN ] Simplify.ConditionalSelectFoldTwoLayer 2023-01-11T21:28:20.9501458Z [ OK ] Simplify.ConditionalSelectFoldTwoLayer (6 ms) 2023-01-11T21:28:20.9501871Z [ RUN ] Simplify.ConditionalSelectFoldWithVar 2023-01-11T21:28:20.9508790Z [ OK ] Simplify.ConditionalSelectFoldWithVar (0 ms) 2023-01-11T21:28:20.9509174Z [ RUN ] Simplify.UnFoldableExpr 2023-01-11T21:28:20.9518329Z [ OK ] Simplify.UnFoldableExpr (0 ms) 2023-01-11T21:28:20.9518707Z [ RUN ] Simplify.HashSimple 2023-01-11T21:28:20.9519615Z [ OK ] Simplify.HashSimple (0 ms) 2023-01-11T21:28:20.9519907Z [ RUN ] Simplify.HashEquivalence 2023-01-11T21:28:20.9523081Z [ OK ] Simplify.HashEquivalence (0 ms) 2023-01-11T21:28:20.9523699Z [ RUN ] Simplify.HashEquivalenceRand 2023-01-11T21:28:20.9524091Z [ OK ] Simplify.HashEquivalenceRand (0 ms) 2023-01-11T21:28:20.9524438Z [ RUN ] Simplify.HashEquivalenceAfterFolding 2023-01-11T21:28:20.9528665Z [ OK ] Simplify.HashEquivalenceAfterFolding (0 ms) 2023-01-11T21:28:20.9529267Z [ RUN ] Simplify.HashDifferenceTypes 2023-01-11T21:28:20.9539350Z [ OK ] Simplify.HashDifferenceTypes (0 ms) 2023-01-11T21:28:20.9539914Z [ RUN ] Simplify.HashLargeExpression 2023-01-11T21:28:20.9544709Z [ OK ] Simplify.HashLargeExpression (0 ms) 2023-01-11T21:28:20.9545286Z [ RUN ] Simplify.HashForLoopOptions 2023-01-11T21:28:20.9549639Z [ OK ] Simplify.HashForLoopOptions (0 ms) 2023-01-11T21:28:20.9550179Z [ RUN ] Simplify.SimplifyAdd 2023-01-11T21:28:20.9558701Z [ OK ] Simplify.SimplifyAdd (0 ms) 2023-01-11T21:28:20.9559249Z [ RUN ] Simplify.SimplifySub 2023-01-11T21:28:20.9565891Z [ OK ] Simplify.SimplifySub (0 ms) 2023-01-11T21:28:20.9566432Z [ RUN ] Simplify.SimplifyMultiLayer 2023-01-11T21:28:20.9583772Z [ OK ] Simplify.SimplifyMultiLayer (1 ms) 2023-01-11T21:28:20.9584299Z [ RUN ] Simplify.SimplifyMultiTerm 2023-01-11T21:28:20.9593606Z [ OK ] Simplify.SimplifyMultiTerm (0 ms) 2023-01-11T21:28:20.9594166Z [ RUN ] Simplify.SimplifyCasts 2023-01-11T21:28:20.9610360Z [ OK ] Simplify.SimplifyCasts (1 ms) 2023-01-11T21:28:20.9610931Z [ RUN ] Simplify.SimplifyEliminatesNoOps 2023-01-11T21:28:20.9613891Z [ OK ] Simplify.SimplifyEliminatesNoOps (0 ms) 2023-01-11T21:28:20.9614619Z [ RUN ] Simplify.SimplifyMultiVar 2023-01-11T21:28:20.9618332Z [ OK ] Simplify.SimplifyMultiVar (0 ms) 2023-01-11T21:28:20.9619077Z [ RUN ] Simplify.SimplifyEliminatesVar 2023-01-11T21:28:20.9621931Z [ OK ] Simplify.SimplifyEliminatesVar (0 ms) 2023-01-11T21:28:20.9622477Z [ RUN ] Simplify.SimplifyAdds 2023-01-11T21:28:20.9682651Z [ OK ] Simplify.SimplifyAdds (6 ms) 2023-01-11T21:28:20.9682972Z [ RUN ] Simplify.SimplifyMuls 2023-01-11T21:28:20.9774102Z [ OK ] Simplify.SimplifyMuls (9 ms) 2023-01-11T21:28:20.9774812Z [ RUN ] Simplify.SimplifySubs 2023-01-11T21:28:20.9953936Z [ OK ] Simplify.SimplifySubs (17 ms) 2023-01-11T21:28:20.9954276Z [ RUN ] Simplify.SimplifyDiv 2023-01-11T21:28:20.9958658Z [ OK ] Simplify.SimplifyDiv (0 ms) 2023-01-11T21:28:20.9959259Z [ RUN ] Simplify.SimplifyDivWithLoopContext0 2023-01-11T21:28:20.9989903Z [ OK ] Simplify.SimplifyDivWithLoopContext0 (2 ms) 2023-01-11T21:28:20.9990433Z [ RUN ] Simplify.SimplifyDivWithLoopContext1 2023-01-11T21:28:21.0052091Z [ OK ] Simplify.SimplifyDivWithLoopContext1 (6 ms) 2023-01-11T21:28:21.0052773Z [ RUN ] Simplify.SimplifyDivWithLoopContext2 2023-01-11T21:28:21.0111878Z [ OK ] Simplify.SimplifyDivWithLoopContext2 (5 ms) 2023-01-11T21:28:21.0112543Z [ RUN ] Simplify.SimplifyDivWithLoopContext3 2023-01-11T21:28:21.0132720Z [ OK ] Simplify.SimplifyDivWithLoopContext3 (2 ms) 2023-01-11T21:28:21.0133397Z [ RUN ] Simplify.SimplifyDivWithLoopContext4 2023-01-11T21:28:21.0199841Z [ OK ] Simplify.SimplifyDivWithLoopContext4 (6 ms) 2023-01-11T21:28:21.0200460Z [ RUN ] Simplify.SimplifyDivWithLoopContext5 2023-01-11T21:28:21.0278890Z [ OK ] Simplify.SimplifyDivWithLoopContext5 (7 ms) 2023-01-11T21:28:21.0279544Z [ RUN ] Simplify.SimplifyDivWithLoopContext6 2023-01-11T21:28:21.0366488Z [ OK ] Simplify.SimplifyDivWithLoopContext6 (8 ms) 2023-01-11T21:28:21.0367143Z [ RUN ] Simplify.SimplifyDivWithLoopContext7 2023-01-11T21:28:21.0391660Z [ OK ] Simplify.SimplifyDivWithLoopContext7 (2 ms) 2023-01-11T21:28:21.0392335Z [ RUN ] Simplify.SimplifyModWithLoopContext0 2023-01-11T21:28:21.0422151Z [ OK ] Simplify.SimplifyModWithLoopContext0 (3 ms) 2023-01-11T21:28:21.0422799Z [ RUN ] Simplify.SimplifyModWithLoopContext1 2023-01-11T21:28:21.0480168Z [ OK ] Simplify.SimplifyModWithLoopContext1 (5 ms) 2023-01-11T21:28:21.0480826Z [ RUN ] Simplify.SimplifyModWithLoopContext2 2023-01-11T21:28:21.0535956Z [ OK ] Simplify.SimplifyModWithLoopContext2 (5 ms) 2023-01-11T21:28:21.0536600Z [ RUN ] Simplify.SimplifyModWithLoopContext3 2023-01-11T21:28:21.0556954Z [ OK ] Simplify.SimplifyModWithLoopContext3 (2 ms) 2023-01-11T21:28:21.0557632Z [ RUN ] Simplify.SimplifyModWithLoopContext4 2023-01-11T21:28:21.0624550Z [ OK ] Simplify.SimplifyModWithLoopContext4 (6 ms) 2023-01-11T21:28:21.0625211Z [ RUN ] Simplify.SimplifyModWithLoopContext5 2023-01-11T21:28:21.0703481Z [ OK ] Simplify.SimplifyModWithLoopContext5 (7 ms) 2023-01-11T21:28:21.0703939Z [ RUN ] Simplify.SimplifyModWithLoopContext6 2023-01-11T21:28:21.0788034Z [ OK ] Simplify.SimplifyModWithLoopContext6 (8 ms) 2023-01-11T21:28:21.0788635Z [ RUN ] Simplify.SimplifyModWithLoopContext7 2023-01-11T21:28:21.0812942Z [ OK ] Simplify.SimplifyModWithLoopContext7 (2 ms) 2023-01-11T21:28:21.0813529Z [ RUN ] Simplify.SimplifyMod 2023-01-11T21:28:21.0865591Z [ OK ] Simplify.SimplifyMod (5 ms) 2023-01-11T21:28:21.0866132Z [ RUN ] Simplify.SimplifyMultiOp 2023-01-11T21:28:21.0913561Z [ OK ] Simplify.SimplifyMultiOp (4 ms) 2023-01-11T21:28:21.0914328Z [ RUN ] Simplify.SimplifyManyOps 2023-01-11T21:28:21.0997521Z [ OK ] Simplify.SimplifyManyOps (8 ms) 2023-01-11T21:28:21.0997836Z [ RUN ] Simplify.SimplifyFactorization 2023-01-11T21:28:21.1096584Z [ OK ] Simplify.SimplifyFactorization (9 ms) 2023-01-11T21:28:21.1096940Z [ RUN ] Simplify.SimplifyFactorizeUneven 2023-01-11T21:28:21.1123010Z [ OK ] Simplify.SimplifyFactorizeUneven (2 ms) 2023-01-11T21:28:21.1123330Z [ RUN ] Simplify.SimplifyDeeperTerms 2023-01-11T21:28:21.1139988Z [ OK ] Simplify.SimplifyDeeperTerms (1 ms) 2023-01-11T21:28:21.1140326Z [ RUN ] Simplify.SimplifyDeeperDifference 2023-01-11T21:28:21.1159216Z [ OK ] Simplify.SimplifyDeeperDifference (1 ms) 2023-01-11T21:28:21.1159577Z [ RUN ] Simplify.SimplifyFoldComplexDifference 2023-01-11T21:28:21.1185265Z [ OK ] Simplify.SimplifyFoldComplexDifference (2 ms) 2023-01-11T21:28:21.1185626Z [ RUN ] Simplify.SimplifyIfComponents 2023-01-11T21:28:21.1201597Z [ OK ] Simplify.SimplifyIfComponents (1 ms) 2023-01-11T21:28:21.1201992Z [ RUN ] Simplify.SimplifyOpaqueTerms 2023-01-11T21:28:21.1220116Z [ OK ] Simplify.SimplifyOpaqueTerms (1 ms) 2023-01-11T21:28:21.1220459Z [ RUN ] Simplify.SimplifySymbolicMinMax 2023-01-11T21:28:21.1256038Z [ OK ] Simplify.SimplifySymbolicMinMax (3 ms) 2023-01-11T21:28:21.1256371Z [ RUN ] Simplify.SimplifyNestedMax 2023-01-11T21:28:21.1564506Z [ OK ] Simplify.SimplifyNestedMax (30 ms) 2023-01-11T21:28:21.1564813Z [ RUN ] Simplify.SimplifyNestedMin 2023-01-11T21:28:21.1872462Z [ OK ] Simplify.SimplifyNestedMin (30 ms) 2023-01-11T21:28:21.1872801Z [ RUN ] Simplify.SimplifyWontReorderFloat 2023-01-11T21:28:21.1920738Z [ OK ] Simplify.SimplifyWontReorderFloat (4 ms) 2023-01-11T21:28:21.1921079Z [ RUN ] Simplify.SimplifyRoundModPattern 2023-01-11T21:28:21.2110435Z [ OK ] Simplify.SimplifyRoundModPattern (18 ms) 2023-01-11T21:28:21.2110845Z [ RUN ] Simplify.SimplifyRoundModPatternFactorization 2023-01-11T21:28:21.2222485Z [ OK ] Simplify.SimplifyRoundModPatternFactorization (11 ms) 2023-01-11T21:28:21.2222897Z [ RUN ] Simplify.SimplifyRoundModPatternMultivar 2023-01-11T21:28:21.2312753Z [ OK ] Simplify.SimplifyRoundModPatternMultivar (8 ms) 2023-01-11T21:28:21.2313156Z [ RUN ] Simplify.SimplifyModRoundModPattern 2023-01-11T21:28:21.2423345Z [ OK ] Simplify.SimplifyModRoundModPattern (11 ms) 2023-01-11T21:28:21.2423777Z [ RUN ] Simplify.SimplifyModRoundModPatternFactorization 2023-01-11T21:28:21.2637269Z [ OK ] Simplify.SimplifyModRoundModPatternFactorization (21 ms) 2023-01-11T21:28:21.2637704Z [ RUN ] Simplify.SimplifyModRoundModPatternMultivar 2023-01-11T21:28:21.2961442Z [ OK ] Simplify.SimplifyModRoundModPatternMultivar (32 ms) 2023-01-11T21:28:21.2961878Z [ RUN ] Simplify.SimplifyDivisionScalarFactorization 2023-01-11T21:28:21.2993880Z [ OK ] Simplify.SimplifyDivisionScalarFactorization (3 ms) 2023-01-11T21:28:21.2994265Z [ RUN ] Simplify.SimplifyConstantBranches 2023-01-11T21:28:21.3006028Z [ OK ] Simplify.SimplifyConstantBranches (1 ms) 2023-01-11T21:28:21.3006387Z [ RUN ] Simplify.SimplifyConstantCond 2023-01-11T21:28:21.3035333Z [ OK ] Simplify.SimplifyConstantCond (2 ms) 2023-01-11T21:28:21.3035727Z [ RUN ] Simplify.SimplifyEliminateEmptyCond 2023-01-11T21:28:21.3036610Z [ OK ] Simplify.SimplifyEliminateEmptyCond (0 ms) 2023-01-11T21:28:21.3036977Z [ RUN ] Simplify.SimplifyConstantComparisons 2023-01-11T21:28:21.3196506Z [ OK ] Simplify.SimplifyConstantComparisons (15 ms) 2023-01-11T21:28:21.3196879Z [ RUN ] Simplify.SimplifySymbolicComparisons 2023-01-11T21:28:21.3411384Z [ OK ] Simplify.SimplifySymbolicComparisons (21 ms) 2023-01-11T21:28:21.3411769Z [ RUN ] Simplify.SimplifyEliminateZeroLengthFor 2023-01-11T21:28:21.3439096Z [ OK ] Simplify.SimplifyEliminateZeroLengthFor (2 ms) 2023-01-11T21:28:21.3439450Z [ RUN ] Simplify.SimplifyOneLoopFor 2023-01-11T21:28:21.3476550Z [ OK ] Simplify.SimplifyOneLoopFor (3 ms) 2023-01-11T21:28:21.3476929Z [ RUN ] Simplify.SimplifyForWontLoseLoopOptions 2023-01-11T21:28:21.3482391Z [ OK ] Simplify.SimplifyForWontLoseLoopOptions (0 ms) 2023-01-11T21:28:21.3482943Z [ RUN ] Simplify.SimplifyMultilevelFor 2023-01-11T21:28:21.3513237Z [ OK ] Simplify.SimplifyMultilevelFor (3 ms) 2023-01-11T21:28:21.3513562Z [ RUN ] Simplify.SimplifyForCleansUp 2023-01-11T21:28:21.3596749Z [ OK ] Simplify.SimplifyForCleansUp (8 ms) 2023-01-11T21:28:21.3597106Z [ RUN ] Simplify.SimplifyEliminateEmptyFor 2023-01-11T21:28:21.3637274Z [ OK ] Simplify.SimplifyEliminateEmptyFor (4 ms) 2023-01-11T21:28:21.3637834Z [ RUN ] Simplify.SimplifyFlattenBlock 2023-01-11T21:28:21.3650886Z [ OK ] Simplify.SimplifyFlattenBlock (1 ms) 2023-01-11T21:28:21.3651556Z [ RUN ] Simplify.SimplifyEliminateZeroLengthAlloc 2023-01-11T21:28:21.3671618Z [ OK ] Simplify.SimplifyEliminateZeroLengthAlloc (2 ms) 2023-01-11T21:28:21.3672200Z [ RUN ] Simplify.DontSimplifyRand 2023-01-11T21:28:21.3675744Z [ OK ] Simplify.DontSimplifyRand (0 ms) 2023-01-11T21:28:21.3676344Z [ RUN ] Simplify.SimplifyReorderForCond 2023-01-11T21:28:21.3817850Z [ OK ] Simplify.SimplifyReorderForCond (14 ms) 2023-01-11T21:28:21.3818443Z [ RUN ] Simplify.SimplifyFuseConditions 2023-01-11T21:28:21.3960405Z [ OK ] Simplify.SimplifyFuseConditions (14 ms) 2023-01-11T21:28:21.3960960Z [ RUN ] Simplify.SimplifySyncThreads 2023-01-11T21:28:21.3972567Z [ OK ] Simplify.SimplifySyncThreads (1 ms) 2023-01-11T21:28:21.3973169Z [ RUN ] Simplify.SimplifyRampSubBroadcast 2023-01-11T21:28:21.3976425Z [ OK ] Simplify.SimplifyRampSubBroadcast (0 ms) 2023-01-11T21:28:21.3977031Z [ RUN ] Simplify.SimplifyBroadcastTermExpander 2023-01-11T21:28:21.3987638Z [ OK ] Simplify.SimplifyBroadcastTermExpander (1 ms) 2023-01-11T21:28:21.3988292Z [ RUN ] Simplify.CompareSelectLoopBounds 2023-01-11T21:28:21.6757467Z [ OK ] Simplify.CompareSelectLoopBounds (276 ms) 2023-01-11T21:28:21.6757888Z [ RUN ] Simplify.CompareSelectCondAlwaysInLoopBounds 2023-01-11T21:28:21.6778263Z [ OK ] Simplify.CompareSelectCondAlwaysInLoopBounds (2 ms) 2023-01-11T21:28:21.6778830Z [ RUN ] Simplify.IfThenCondAlwaysInLoopBounds 2023-01-11T21:28:21.6800245Z [ OK ] Simplify.IfThenCondAlwaysInLoopBounds (2 ms) 2023-01-11T21:28:21.6800852Z [ RUN ] Simplify.MultiClauseCondAlwaysInLoopBounds 2023-01-11T21:28:21.6866248Z [ OK ] Simplify.MultiClauseCondAlwaysInLoopBounds (6 ms) 2023-01-11T21:28:21.6866905Z [----------] 92 tests from Simplify (757 ms total) 2023-01-11T21:28:21.6867068Z 2023-01-11T21:28:21.6867206Z [----------] 12 tests from TEFuserPass 2023-01-11T21:28:21.6867495Z [ RUN ] TEFuserPass.FuserPass_1 2023-01-11T21:28:21.6970884Z [ OK ] TEFuserPass.FuserPass_1 (10 ms) 2023-01-11T21:28:21.6971203Z [ RUN ] TEFuserPass.FuserPass_2 2023-01-11T21:28:21.7024615Z [ OK ] TEFuserPass.FuserPass_2 (5 ms) 2023-01-11T21:28:21.7024921Z [ RUN ] TEFuserPass.FuserPass_3 2023-01-11T21:28:21.7073107Z [ OK ] TEFuserPass.FuserPass_3 (4 ms) 2023-01-11T21:28:21.7073410Z [ RUN ] TEFuserPass.FuserPass_0DimInput 2023-01-11T21:28:21.7110103Z [ OK ] TEFuserPass.FuserPass_0DimInput (3 ms) 2023-01-11T21:28:21.7110445Z [ RUN ] TEFuserPass.FuserPass_UnfusibleDevice 2023-01-11T21:28:21.7125939Z [ OK ] TEFuserPass.FuserPass_UnfusibleDevice (1 ms) 2023-01-11T21:28:21.7126269Z [ RUN ] TEFuserPass.FuserPass_UnknownShapes 2023-01-11T21:28:21.7138563Z [ OK ] TEFuserPass.FuserPass_UnknownShapes (1 ms) 2023-01-11T21:28:21.7138898Z [ RUN ] TEFuserPass.FuserPass_Multidevice 2023-01-11T21:28:21.7285673Z [ OK ] TEFuserPass.FuserPass_Multidevice (14 ms) 2023-01-11T21:28:21.7286205Z [ RUN ] TEFuserPass.FuserPass_MergeGroups 2023-01-11T21:28:21.7327956Z [ OK ] TEFuserPass.FuserPass_MergeGroups (4 ms) 2023-01-11T21:28:21.7328335Z [ RUN ] TEFuserPass.FuserPass_IgnoreUnknownShapeAtStart 2023-01-11T21:28:21.7347013Z [ OK ] TEFuserPass.FuserPass_IgnoreUnknownShapeAtStart (1 ms) 2023-01-11T21:28:21.7347371Z [ RUN ] TEFuserPass.FuserPass_Where 2023-01-11T21:28:21.7390535Z [ OK ] TEFuserPass.FuserPass_Where (4 ms) 2023-01-11T21:28:21.7390873Z [ RUN ] TEFuserPass.FuserPass_WhereList 2023-01-11T21:28:21.7412456Z [ OK ] TEFuserPass.FuserPass_WhereList (2 ms) 2023-01-11T21:28:21.7412809Z [ RUN ] TEFuserPass.DynamicShapeFusion 2023-01-11T21:28:25.5148436Z [ OK ] TEFuserPass.DynamicShapeFusion (3773 ms) 2023-01-11T21:28:25.5149032Z [----------] 12 tests from TEFuserPass (3827 ms total) 2023-01-11T21:28:25.5149299Z 2023-01-11T21:28:25.5149553Z [----------] 3 tests from Type 2023-01-11T21:28:25.5149976Z [ RUN ] Type.Test01 2023-01-11T21:28:25.5150383Z [ OK ] Type.Test01 (0 ms) 2023-01-11T21:28:25.5150786Z [ RUN ] Type.BitCasting 2023-01-11T21:28:25.5159664Z [ OK ] Type.BitCasting (1 ms) 2023-01-11T21:28:25.5160109Z [ RUN ] Type.Propagation 2023-01-11T21:28:25.5164077Z [ OK ] Type.Propagation (0 ms) 2023-01-11T21:28:25.5164601Z [----------] 3 tests from Type (1 ms total) 2023-01-11T21:28:25.5164849Z 2023-01-11T21:28:25.5165170Z [----------] 1 test from SpecializationsInCustomPasses 2023-01-11T21:28:25.5165799Z [ RUN ] SpecializationsInCustomPasses.Basic 2023-01-11T21:28:25.5367112Z [ OK ] SpecializationsInCustomPasses.Basic (20 ms) 2023-01-11T21:28:25.5367776Z [----------] 1 test from SpecializationsInCustomPasses (20 ms total) 2023-01-11T21:28:25.5367972Z 2023-01-11T21:28:25.5368156Z [----------] Global test environment tear-down 2023-01-11T21:28:25.5870848Z [==========] 647 tests from 23 test suites ran. (771333 ms total) 2023-01-11T21:28:25.5871329Z [ PASSED ] 647 tests. 2023-01-11T21:28:25.5871533Z 2023-01-11T21:28:25.5871732Z  YOU HAVE 5 DISABLED TESTS 2023-01-11T21:28:25.5871922Z 2023-01-11T21:28:26.1118177Z + [[ linux-focal-py3.7-clang7-tsan != *android* ]] 2023-01-11T21:28:26.1118743Z + [[ linux-focal-py3.7-clang7-tsan != *cuda* ]] 2023-01-11T21:28:26.1119228Z + [[ linux-focal-py3.7-clang7-tsan != *asan* ]] 2023-01-11T21:28:26.1119938Z + build/bin/static_runtime_test --gtest_output=xml:test/test-reports/cpp-unittest/test_libtorch/static_runtime_test.xml 2023-01-11T21:28:26.1120364Z .jenkins/pytorch/test.sh: line 458: build/bin/static_runtime_test: No such file or directory 2023-01-11T21:28:26.1121828Z + assert_git_not_dirty 2023-01-11T21:28:26.1122264Z + [[ linux-focal-py3.7-clang7-tsan != *rocm* ]] 2023-01-11T21:28:26.1122819Z + [[ linux-focal-py3.7-clang7-tsan != *xla* ]] 2023-01-11T21:28:26.1125649Z ++ git status --porcelain 2023-01-11T21:28:28.7143764Z + git_status= 2023-01-11T21:28:28.7144416Z + [[ -n '' ]] 2023-01-11T21:28:28.7203288Z Prepare all required actions 2023-01-11T21:28:28.7203589Z Getting action download info 2023-01-11T21:28:29.0543744Z ##[group]Run ./.github/actions/get-workflow-job-id 2023-01-11T21:28:29.0543965Z with: 2023-01-11T21:28:29.0544314Z github-token: *** 2023-01-11T21:28:29.0544487Z env: 2023-01-11T21:28:29.0544650Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:29.0544929Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:29.0545196Z ##[endgroup] 2023-01-11T21:28:29.0569950Z ##[group]Run nick-fields/retry@3e91a01664abd3c5cd539100d10d33b9c5b68482 2023-01-11T21:28:29.0570192Z with: 2023-01-11T21:28:29.0570358Z shell: bash 2023-01-11T21:28:29.0570523Z timeout_minutes: 10 2023-01-11T21:28:29.0570706Z max_attempts: 5 2023-01-11T21:28:29.0570890Z retry_wait_seconds: 30 2023-01-11T21:28:29.0571296Z command: set -eux python3 -m pip install requests==2.26.0 GHA_WORKFLOW_JOB_ID=$(python3 .github/scripts/get_workflow_job_id.py "${GITHUB_RUN_ID}" "${RUNNER_NAME}") echo "job-id=${GHA_WORKFLOW_JOB_ID}" >> "${GITHUB_OUTPUT}" 2023-01-11T21:28:29.0571688Z polling_interval_seconds: 1 2023-01-11T21:28:29.0571870Z warning_on_retry: true 2023-01-11T21:28:29.0572060Z continue_on_error: false 2023-01-11T21:28:29.0572232Z env: 2023-01-11T21:28:29.0572388Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:29.0572664Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:29.0573055Z GITHUB_TOKEN: *** 2023-01-11T21:28:29.0573231Z ##[endgroup] 2023-01-11T21:28:29.1064853Z + python3 -m pip install requests==2.26.0 2023-01-11T21:28:29.6605690Z Defaulting to user installation because normal site-packages is not writeable 2023-01-11T21:28:29.6856030Z Requirement already satisfied: requests==2.26.0 in /home/ec2-user/.local/lib/python3.7/site-packages (2.26.0) 2023-01-11T21:28:29.6989304Z Requirement already satisfied: charset-normalizer~=2.0.0; python_version >= "3" in /home/ec2-user/.local/lib/python3.7/site-packages (from requests==2.26.0) (2.0.12) 2023-01-11T21:28:29.7016618Z Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/.local/lib/python3.7/site-packages (from requests==2.26.0) (1.26.14) 2023-01-11T21:28:29.7179015Z Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in /home/ec2-user/.local/lib/python3.7/site-packages (from requests==2.26.0) (3.4) 2023-01-11T21:28:29.7196052Z Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/.local/lib/python3.7/site-packages (from requests==2.26.0) (2022.12.7) 2023-01-11T21:28:29.9320097Z ++ python3 .github/scripts/get_workflow_job_id.py 3896346758 i-0621585034f78d3f2 2023-01-11T21:28:33.1199193Z + GHA_WORKFLOW_JOB_ID=10589123484 2023-01-11T21:28:33.1199744Z + echo job-id=10589123484 2023-01-11T21:28:34.1095330Z Command completed after 1 attempt(s). 2023-01-11T21:28:34.1199455Z ##[group]Run kill "$MONITOR_SCRIPT_PID" 2023-01-11T21:28:34.1199700Z kill "$MONITOR_SCRIPT_PID" 2023-01-11T21:28:34.1220483Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T21:28:34.1220707Z env: 2023-01-11T21:28:34.1220887Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:34.1221154Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:34.1221428Z MONITOR_SCRIPT_PID: 19030 2023-01-11T21:28:34.1221617Z ##[endgroup] 2023-01-11T21:28:34.1318062Z Prepare all required actions 2023-01-11T21:28:34.1318318Z Getting action download info 2023-01-11T21:28:34.4393169Z Download action repository 'actions/upload-artifact@v3' (SHA:0b7f8abb1508181956e8e162db84b466c27e18ce) 2023-01-11T21:28:34.5924417Z ##[group]Run ./.github/actions/upload-test-artifacts 2023-01-11T21:28:34.5924634Z with: 2023-01-11T21:28:34.5924853Z file-suffix: test-tsan-1-1-linux.2xlarge_10589123484 2023-01-11T21:28:34.5925067Z env: 2023-01-11T21:28:34.5925242Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:34.5925512Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:34.5925869Z ##[endgroup] 2023-01-11T21:28:34.5948928Z ##[group]Run # Remove any previous test jsons if they exist 2023-01-11T21:28:34.5949196Z # Remove any previous test jsons if they exist 2023-01-11T21:28:34.5949425Z rm -f test-jsons-*.zip 2023-01-11T21:28:34.5949705Z zip -r "test-jsons-${FILE_SUFFIX}.zip" test -i '*.json' 2023-01-11T21:28:34.5960897Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T21:28:34.5961119Z env: 2023-01-11T21:28:34.5961292Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:34.5961560Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:34.5961870Z FILE_SUFFIX: test-tsan-1-1-linux.2xlarge_10589123484 2023-01-11T21:28:34.5962088Z ##[endgroup] 2023-01-11T21:28:34.6081794Z adding: test/allowlist_for_publicAPI.json (deflated 78%) 2023-01-11T21:28:34.6108652Z adding: test/benchmark_utils/callgrind_artifacts.json (deflated 92%) 2023-01-11T21:28:34.6114527Z adding: test/profiler/profiler_utils_mock_events.json (deflated 87%) 2023-01-11T21:28:34.6131969Z ##[group]Run # Remove any previous test reports if they exist 2023-01-11T21:28:34.6132245Z # Remove any previous test reports if they exist 2023-01-11T21:28:34.6132482Z rm -f test-reports-*.zip 2023-01-11T21:28:34.6132753Z zip -r "test-reports-${FILE_SUFFIX}.zip" test -i '*.xml' -i '*.csv' 2023-01-11T21:28:34.6143626Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T21:28:34.6143842Z env: 2023-01-11T21:28:34.6144019Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:34.6144285Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:34.6144595Z FILE_SUFFIX: test-tsan-1-1-linux.2xlarge_10589123484 2023-01-11T21:28:34.6144815Z ##[endgroup] 2023-01-11T21:28:34.6229260Z adding: test/test-reports/cpp-unittest/test_libtorch/test_jit.xml (deflated 90%) 2023-01-11T21:28:34.6238226Z adding: test/test-reports/cpp-unittest/test_libtorch/test_lazy.xml (deflated 92%) 2023-01-11T21:28:34.6257438Z adding: test/test-reports/cpp-unittest/test_libtorch/test_api.xml (deflated 91%) 2023-01-11T21:28:34.6270524Z adding: test/test-reports/cpp-unittest/test_libtorch/test_tensorexpr.xml (deflated 90%) 2023-01-11T21:28:34.6287266Z ##[group]Run # Remove any previous test reports if they exist 2023-01-11T21:28:34.6287554Z # Remove any previous test reports if they exist 2023-01-11T21:28:34.6287785Z rm -f usage-log-*.zip 2023-01-11T21:28:34.6288060Z # this workflow is also run in bazel build test, but we dont generate usage reports for it 2023-01-11T21:28:34.6288352Z # so check to see if the file exists first 2023-01-11T21:28:34.6288563Z if [ -f 'usage_log.txt' ]; then 2023-01-11T21:28:34.6288840Z  zip "usage-log-${FILE_SUFFIX}.zip" 'usage_log.txt' 2023-01-11T21:28:34.6289049Z fi 2023-01-11T21:28:34.6299475Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T21:28:34.6299700Z env: 2023-01-11T21:28:34.6299874Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:34.6300140Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:34.6300449Z FILE_SUFFIX: test-tsan-1-1-linux.2xlarge_10589123484 2023-01-11T21:28:34.6300667Z ##[endgroup] 2023-01-11T21:28:34.6361666Z adding: usage_log.txt (deflated 96%) 2023-01-11T21:28:34.6395299Z ##[group]Run seemethere/upload-artifact-s3@v5 2023-01-11T21:28:34.6395512Z with: 2023-01-11T21:28:34.6395712Z s3-prefix: pytorch/pytorch/3896346758/1/artifact 2023-01-11T21:28:34.6395915Z retention-days: 14 2023-01-11T21:28:34.6396105Z if-no-files-found: warn 2023-01-11T21:28:34.6396302Z path: test-jsons-*.zip 2023-01-11T21:28:34.6396470Z name: artifact 2023-01-11T21:28:34.6396652Z s3-bucket: gha-artifacts 2023-01-11T21:28:34.6396842Z region: us-east-1 2023-01-11T21:28:34.6396993Z env: 2023-01-11T21:28:34.6397162Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:34.6397507Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:34.6397754Z ##[endgroup] 2023-01-11T21:28:34.9764277Z NOTE: s3-prefix specified, ignoring name parameter 2023-01-11T21:28:34.9764873Z With the provided path, there will be 1 file uploaded 2023-01-11T21:28:34.9765191Z Uploading to s3 prefix: pytorch/pytorch/3896346758/1/artifact 2023-01-11T21:28:34.9771759Z Starting upload of test-jsons-test-tsan-1-1-linux.2xlarge_10589123484.zip 2023-01-11T21:28:35.0751583Z Finished upload of test-jsons-test-tsan-1-1-linux.2xlarge_10589123484.zip 2023-01-11T21:28:35.0878847Z ##[group]Run seemethere/upload-artifact-s3@v5 2023-01-11T21:28:35.0879064Z with: 2023-01-11T21:28:35.0879265Z s3-prefix: pytorch/pytorch/3896346758/1/artifact 2023-01-11T21:28:35.0879468Z retention-days: 14 2023-01-11T21:28:35.0879659Z if-no-files-found: error 2023-01-11T21:28:35.0879863Z path: test-reports-*.zip 2023-01-11T21:28:35.0880036Z name: artifact 2023-01-11T21:28:35.0880224Z s3-bucket: gha-artifacts 2023-01-11T21:28:35.0880414Z region: us-east-1 2023-01-11T21:28:35.0880566Z env: 2023-01-11T21:28:35.0880736Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:35.0881011Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:35.0881255Z ##[endgroup] 2023-01-11T21:28:35.4268708Z NOTE: s3-prefix specified, ignoring name parameter 2023-01-11T21:28:35.4269193Z With the provided path, there will be 1 file uploaded 2023-01-11T21:28:35.4269706Z Uploading to s3 prefix: pytorch/pytorch/3896346758/1/artifact 2023-01-11T21:28:35.4276401Z Starting upload of test-reports-test-tsan-1-1-linux.2xlarge_10589123484.zip 2023-01-11T21:28:35.5645241Z Finished upload of test-reports-test-tsan-1-1-linux.2xlarge_10589123484.zip 2023-01-11T21:28:35.5774619Z ##[group]Run seemethere/upload-artifact-s3@v5 2023-01-11T21:28:35.5774846Z with: 2023-01-11T21:28:35.5775051Z s3-prefix: pytorch/pytorch/3896346758/1/artifact 2023-01-11T21:28:35.5775268Z retention-days: 14 2023-01-11T21:28:35.5775468Z if-no-files-found: ignore 2023-01-11T21:28:35.5775671Z path: usage-log-*.zip 2023-01-11T21:28:35.5775839Z name: artifact 2023-01-11T21:28:35.5776022Z s3-bucket: gha-artifacts 2023-01-11T21:28:35.5776210Z region: us-east-1 2023-01-11T21:28:35.5776359Z env: 2023-01-11T21:28:35.5776529Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:35.5776811Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:35.5777057Z ##[endgroup] 2023-01-11T21:28:35.9131711Z NOTE: s3-prefix specified, ignoring name parameter 2023-01-11T21:28:35.9132399Z With the provided path, there will be 1 file uploaded 2023-01-11T21:28:35.9132713Z Uploading to s3 prefix: pytorch/pytorch/3896346758/1/artifact 2023-01-11T21:28:35.9139319Z Starting upload of usage-log-test-tsan-1-1-linux.2xlarge_10589123484.zip 2023-01-11T21:28:36.0128218Z Finished upload of usage-log-test-tsan-1-1-linux.2xlarge_10589123484.zip 2023-01-11T21:28:36.0254667Z ##[group]Run # shellcheck disable=SC2156 2023-01-11T21:28:36.0254931Z # shellcheck disable=SC2156 2023-01-11T21:28:36.0255231Z find . -iname "core.[1-9]*" -exec docker exec "${DOCKER_CONTAINER_ID}" sh -c "gdb python {} -ex 'bt' -ex 'q'" \; 2023-01-11T21:28:36.0266378Z shell: /usr/bin/bash -e {0} 2023-01-11T21:28:36.0266572Z env: 2023-01-11T21:28:36.0266735Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:36.0267017Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:36.0267278Z ##[endgroup] 2023-01-11T21:28:36.5918417Z ##[group]Run set -x 2023-01-11T21:28:36.5918750Z set -x 2023-01-11T21:28:36.5918966Z python3 -m pip install -r requirements.txt 2023-01-11T21:28:36.5919222Z python3 -m pip install boto3==1.19.12 2023-01-11T21:28:36.5919513Z python3 -m tools.stats.print_test_stats --upload-to-s3 --compare-with-s3 test 2023-01-11T21:28:36.5948078Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T21:28:36.5948420Z env: 2023-01-11T21:28:36.5948584Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:28:36.5948860Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:28:36.5949139Z AWS_DEFAULT_REGION: us-east-1 2023-01-11T21:28:36.5949310Z BRANCH: 2023-01-11T21:28:36.5949473Z TEST_CONFIG: tsan 2023-01-11T21:28:36.5949648Z SHARD_NUMBER: 1 2023-01-11T21:28:36.5949859Z BUILD_ENVIRONMENT: linux-focal-py3.7-clang7-tsan 2023-01-11T21:28:36.5950078Z PR_NUMBER: 2023-01-11T21:28:36.5950300Z PYTORCH_RETRY_TEST_CASES: 1 2023-01-11T21:28:36.5950497Z PYTORCH_OVERRIDE_FLAKY_SIGNAL: 1 2023-01-11T21:28:36.5950729Z SHA1: 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T21:28:36.5950943Z TAG: ciflow/trunk/91627 2023-01-11T21:28:36.5951115Z WORKFLOW_ID: 3896346758 2023-01-11T21:28:36.5951433Z GITHUB_TOKEN: *** 2023-01-11T21:28:36.5951621Z GHA_WORKFLOW_JOB_ID: 10589123484 2023-01-11T21:28:36.5951804Z ##[endgroup] 2023-01-11T21:28:36.5976838Z + python3 -m pip install -r requirements.txt 2023-01-11T21:28:36.8073246Z Defaulting to user installation because normal site-packages is not writeable 2023-01-11T21:28:36.8345027Z Requirement already satisfied: astunparse in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (1.6.3) 2023-01-11T21:28:36.8371577Z Requirement already satisfied: expecttest in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (0.1.4) 2023-01-11T21:28:36.8379531Z Requirement already satisfied: future in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (0.18.2) 2023-01-11T21:28:36.8387486Z Requirement already satisfied: hypothesis in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (6.62.0) 2023-01-11T21:28:36.8745315Z Requirement already satisfied: numpy in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (1.21.6) 2023-01-11T21:28:36.8753594Z Requirement already satisfied: psutil in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 7)) (5.9.1) 2023-01-11T21:28:36.8827802Z Requirement already satisfied: pyyaml in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 8)) (6.0) 2023-01-11T21:28:36.8835281Z Requirement already satisfied: requests in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 9)) (2.26.0) 2023-01-11T21:28:36.9039740Z Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from -r requirements.txt (line 10)) (49.1.3) 2023-01-11T21:28:36.9204401Z Requirement already satisfied: six in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 11)) (1.16.0) 2023-01-11T21:28:36.9212315Z Requirement already satisfied: types-dataclasses in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 12)) (0.6.6) 2023-01-11T21:28:36.9217810Z Requirement already satisfied: typing_extensions in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 13)) (4.4.0) 2023-01-11T21:28:36.9227176Z Requirement already satisfied: sympy in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 14)) (1.10.1) 2023-01-11T21:28:36.9244963Z Requirement already satisfied: filelock in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 15)) (3.9.0) 2023-01-11T21:28:36.9314520Z Requirement already satisfied: networkx in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 16)) (2.6.3) 2023-01-11T21:28:36.9468160Z Requirement already satisfied: jinja2 in /home/ec2-user/.local/lib/python3.7/site-packages (from -r requirements.txt (line 17)) (3.1.2) 2023-01-11T21:28:36.9492274Z Requirement already satisfied: wheel<1.0,>=0.23.0 in /home/ec2-user/.local/lib/python3.7/site-packages (from astunparse->-r requirements.txt (line 2)) (0.38.4) 2023-01-11T21:28:36.9507754Z Requirement already satisfied: attrs>=19.2.0 in /home/ec2-user/.local/lib/python3.7/site-packages (from hypothesis->-r requirements.txt (line 5)) (22.2.0) 2023-01-11T21:28:36.9758114Z Requirement already satisfied: exceptiongroup>=1.0.0; python_version < "3.11" in /home/ec2-user/.local/lib/python3.7/site-packages (from hypothesis->-r requirements.txt (line 5)) (1.1.0) 2023-01-11T21:28:36.9774994Z Requirement already satisfied: sortedcontainers<3.0.0,>=2.1.0 in /home/ec2-user/.local/lib/python3.7/site-packages (from hypothesis->-r requirements.txt (line 5)) (2.4.0) 2023-01-11T21:28:36.9785163Z Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in /home/ec2-user/.local/lib/python3.7/site-packages (from requests->-r requirements.txt (line 9)) (3.4) 2023-01-11T21:28:36.9796673Z Requirement already satisfied: charset-normalizer~=2.0.0; python_version >= "3" in /home/ec2-user/.local/lib/python3.7/site-packages (from requests->-r requirements.txt (line 9)) (2.0.12) 2023-01-11T21:28:36.9816740Z Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/.local/lib/python3.7/site-packages (from requests->-r requirements.txt (line 9)) (2022.12.7) 2023-01-11T21:28:36.9824861Z Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/.local/lib/python3.7/site-packages (from requests->-r requirements.txt (line 9)) (1.26.14) 2023-01-11T21:28:36.9974680Z Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/.local/lib/python3.7/site-packages (from sympy->-r requirements.txt (line 14)) (1.2.1) 2023-01-11T21:28:37.0029075Z Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/.local/lib/python3.7/site-packages (from jinja2->-r requirements.txt (line 17)) (2.1.1) 2023-01-11T21:28:37.0622399Z + python3 -m pip install boto3==1.19.12 2023-01-11T21:28:37.2688709Z Defaulting to user installation because normal site-packages is not writeable 2023-01-11T21:28:37.2866247Z Requirement already satisfied: boto3==1.19.12 in /home/ec2-user/.local/lib/python3.7/site-packages (1.19.12) 2023-01-11T21:28:37.2914230Z Requirement already satisfied: botocore<1.23.0,>=1.22.12 in /home/ec2-user/.local/lib/python3.7/site-packages (from boto3==1.19.12) (1.22.12) 2023-01-11T21:28:37.2955406Z Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/.local/lib/python3.7/site-packages (from boto3==1.19.12) (0.10.0) 2023-01-11T21:28:37.2976129Z Requirement already satisfied: s3transfer<0.6.0,>=0.5.0 in /home/ec2-user/.local/lib/python3.7/site-packages (from boto3==1.19.12) (0.5.2) 2023-01-11T21:28:37.2999038Z Requirement already satisfied: urllib3<1.27,>=1.25.4 in /home/ec2-user/.local/lib/python3.7/site-packages (from botocore<1.23.0,>=1.22.12->boto3==1.19.12) (1.26.14) 2023-01-11T21:28:37.3148518Z Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /home/ec2-user/.local/lib/python3.7/site-packages (from botocore<1.23.0,>=1.22.12->boto3==1.19.12) (2.8.2) 2023-01-11T21:28:37.3166085Z Requirement already satisfied: six>=1.5 in /home/ec2-user/.local/lib/python3.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.23.0,>=1.22.12->boto3==1.19.12) (1.16.0) 2023-01-11T21:28:37.4979299Z + python3 -m tools.stats.print_test_stats --upload-to-s3 --compare-with-s3 test 2023-01-11T21:31:40.6756817Z [scribe] Scribe access token not provided, sending report via boto3... 2023-01-11T21:31:40.6757570Z ERROR ENCOUNTERED WHEN UPLOADING TO SCRIBE: {"errorMessage":"2023-01-11T21:31:39.354Z 9faea994-ee95-4fe5-9c3f-2c8154b4856d Task timed out after 60.02 seconds"} 2023-01-11T21:31:40.6759089Z 2023-01-11T21:31:40.6759861Z ----- Historic stats comparison result ------ 2023-01-11T21:31:40.6760408Z 2023-01-11T21:31:40.6760591Z job: linux-focal-py3.7-clang7-tsan 2023-01-11T21:31:40.6760857Z commit: 8419ddda87c8a47eacc63b54bc7ec98c1f27c26e 2023-01-11T21:31:40.6762366Z 2023-01-11T21:31:40.6762761Z Commit graph (base is most recent master ancestor with at least one S3 report): 2023-01-11T21:31:40.6763026Z 2023-01-11T21:31:40.6763147Z : (master) 2023-01-11T21:31:40.6763438Z | 2023-01-11T21:31:40.6763808Z | * 8419ddda87 (HEAD) total time 1792.45s 2023-01-11T21:31:40.6764310Z | | 2023-01-11T21:31:40.6764603Z | : (2 commits) 2023-01-11T21:31:40.6764852Z |/ 2023-01-11T21:31:40.6765039Z * db2a237763 (base) 1 report, total time 1770.27s 2023-01-11T21:31:40.6765292Z * 2b0abd4ce3 1 report, total time 1820.98s 2023-01-11T21:31:40.6767935Z * f7939b21e1 3 reports, total time 1785.56s ± 19.98s 2023-01-11T21:31:40.6768214Z * cb3204823e 1 report, total time 1778.13s 2023-01-11T21:31:40.6768471Z * 6e236553f5 1 report, total time 1816.44s 2023-01-11T21:31:40.6768697Z * cce577b391 1 report, total time 1799.77s 2023-01-11T21:31:40.6768927Z * fae821c2f1 1 report, total time 1795.85s 2023-01-11T21:31:40.6769138Z * 0c3659586d 1 report, total time 1857.27s 2023-01-11T21:31:40.6769360Z * 122245985a 1 report, total time 1792.05s 2023-01-11T21:31:40.6769585Z * b797a24259 1 report, total time 1801.76s 2023-01-11T21:31:40.6769766Z | 2023-01-11T21:31:40.6769923Z : 2023-01-11T21:31:40.6770016Z 2023-01-11T21:31:40.6770131Z Removed (across 0 suites) 0 tests, totaling 0.00s 2023-01-11T21:31:40.6770388Z Modified (across 0 suites) 0 tests, totaling 0.00s 2023-01-11T21:31:40.6770625Z Added (across 0 suites) 0 tests, totaling 0.00s 2023-01-11T21:31:40.7345227Z ##[group]Run pytorch/test-infra/.github/actions/teardown-linux@main 2023-01-11T21:31:40.7345481Z with: 2023-01-11T21:31:40.7345622Z env: 2023-01-11T21:31:40.7345797Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:31:40.7346074Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:31:40.7346321Z ##[endgroup] 2023-01-11T21:31:40.7360109Z ##[group]Run set -eou pipefail 2023-01-11T21:31:40.7360328Z set -eou pipefail 2023-01-11T21:31:40.7360508Z  2023-01-11T21:31:40.7360742Z echo "Holding runner for 2 hours until all ssh sessions have logged out" 2023-01-11T21:31:40.7360987Z for _ in $(seq 1440); do 2023-01-11T21:31:40.7361203Z  # Break if no ssh session exists anymore 2023-01-11T21:31:40.7361419Z  if [ "$(who)" = "" ]; then 2023-01-11T21:31:40.7361666Z  break 2023-01-11T21:31:40.7361836Z  fi 2023-01-11T21:31:40.7362032Z  echo "." 2023-01-11T21:31:40.7362193Z  sleep 5 2023-01-11T21:31:40.7362361Z done 2023-01-11T21:31:40.7373342Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T21:31:40.7373559Z env: 2023-01-11T21:31:40.7373735Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:31:40.7373998Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:31:40.7374256Z ##[endgroup] 2023-01-11T21:31:40.7398291Z Holding runner for 2 hours until all ssh sessions have logged out 2023-01-11T21:31:40.7480539Z ##[group]Run # ignore expansion of "docker ps -q" since it could be empty 2023-01-11T21:31:40.7480855Z # ignore expansion of "docker ps -q" since it could be empty 2023-01-11T21:31:40.7481111Z # shellcheck disable=SC2046 2023-01-11T21:31:40.7481340Z docker stop $(docker ps -q) || true 2023-01-11T21:31:40.7481568Z # Prune all of the docker images 2023-01-11T21:31:40.7481775Z docker system prune -af 2023-01-11T21:31:40.7492248Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-01-11T21:31:40.7492476Z env: 2023-01-11T21:31:40.7492640Z GIT_DEFAULT_BRANCH: master 2023-01-11T21:31:40.7492920Z DOCKER_CONTAINER_ID: 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:31:40.7493180Z ##[endgroup] 2023-01-11T21:31:41.1169484Z 824d2186b1ff 2023-01-11T21:31:41.5896469Z Deleted Containers: 2023-01-11T21:31:41.5896890Z 824d2186b1ffeaead7701f19d14fb5a39f06c783652d6f83e77ae57e98449588 2023-01-11T21:31:41.5897120Z 2023-01-11T21:31:47.2879597Z Deleted Images: 2023-01-11T21:31:47.2880329Z untagged: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan:fd224c2e6c79d7fdec6408da598bf52bc5b201dd 2023-01-11T21:31:47.2881280Z untagged: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-focal-py3-clang7-asan@sha256:6dd98a84a12a3a3be24bbc7c3112415c10051ad261832daa2e17a60a48fce645 2023-01-11T21:31:47.2881812Z deleted: sha256:5325cd7f52b1f94911c01c0cdf3b1ff1e9dc0384e025981788193a98f05dba1b 2023-01-11T21:31:47.2882221Z deleted: sha256:2a906ec2e83680ad0c0b3c04f800210a2aaa518dfdeb1f8777a3bda07f41043d 2023-01-11T21:31:47.2882829Z deleted: sha256:97c302ebcaf8b088d6c5f3c1ed38fe8d0e0645eb613274529f7cbc2993b8afe2 2023-01-11T21:31:47.2883428Z deleted: sha256:442a476bcc73d28a55aa62aec0fab2811802b9a49734a0f7c453fc7a0f61194b 2023-01-11T21:31:47.2883805Z deleted: sha256:ab9c20206ef962ca71b3bb9537bc48c01a44f6bca93c3db850466e72d3884263 2023-01-11T21:31:47.2884129Z deleted: sha256:d519cc29297d1da1948ac3712265391094b9879fc381ef670fae1ef57abcd3d1 2023-01-11T21:31:47.2884482Z deleted: sha256:4a21d0ec22df40883df386e38a7cb3bc77c77b712e220d35d8b37e92b9950ef6 2023-01-11T21:31:47.2884812Z deleted: sha256:395fe96fcd2b102c4003d245f119cfc65b46c4c3802ca38365bebdc91defd4cf 2023-01-11T21:31:47.2885165Z deleted: sha256:b65be516908093d7c145e4030f8de7ef10ffb305e1fba21d3958e3ee73a30d3d 2023-01-11T21:31:47.2885586Z deleted: sha256:3bb943397c70afd134df480901ed177858c1035fded4ec5f9e4ffd6da4dcb89d 2023-01-11T21:31:47.2885948Z deleted: sha256:5425abcdb9e9feccf9440658c0956c6d5238b9eaef5f3390e15d1528781575f6 2023-01-11T21:31:47.2886294Z deleted: sha256:62c8812cc3169da46ae86e31a12b9dba4e8bdbb8cf757563d94fad7e0cf69168 2023-01-11T21:31:47.2886637Z deleted: sha256:fadf0c4b466ec011c06a8ea538f9af64c9ef238a9f82548734966001280ca714 2023-01-11T21:31:47.2887081Z deleted: sha256:0792a841df1f53af6de40442d0025e9990b77742711d27a64ae4aae3be48ecea 2023-01-11T21:31:47.2887566Z deleted: sha256:7773166e62719dd423c98453776526cb437a4a2e34725f67cf35d2884c5d66ac 2023-01-11T21:31:47.2888147Z deleted: sha256:f8a56556e6f6231a4097b64001f513c5d70b13c0236af8cc455bad3b00c9bd41 2023-01-11T21:31:47.2888708Z deleted: sha256:4bbda4e2e970d7486a82b590b67d004e3eedb916c9a09dae95e171c3c7d128b8 2023-01-11T21:31:47.2889078Z deleted: sha256:76de40b5f6e9272ff2ff4ed6f49e0512d5062a889d44ee972f6ff0e9b4d97b21 2023-01-11T21:31:47.2889402Z deleted: sha256:21a617b683926eac79a3ff5b84020a90091ab8f6ed91263d32e60c41d8dc83a3 2023-01-11T21:31:47.2889719Z deleted: sha256:a18f03489410849fb7b5773cd370d81eead139d9a1f7d17bd5b45343d8411235 2023-01-11T21:31:47.2890096Z deleted: sha256:1da4c3d326dbb1eb56d7e72d42cd2489204f08b8e11fcc809d3d9b672d07c130 2023-01-11T21:31:47.2890406Z deleted: sha256:f1164e9f191cdf8f0735e79f41638604c1857f8ea363c8bcf469f4dbc0395155 2023-01-11T21:31:47.2890761Z deleted: sha256:834f45135f91348725785a41a0b47edadd4ac0f42672dce53e9481f29dbf5118 2023-01-11T21:31:47.2891064Z deleted: sha256:4c7f1152ccb57e9b538496946274984cbe2f4594db9a78df1cd412ff2ca86ba3 2023-01-11T21:31:47.2891403Z deleted: sha256:800e2f87c71c39552693489f91886f35168bada0577c186eb984e9d527c9e1ab 2023-01-11T21:31:47.2891706Z deleted: sha256:86e4189838195e0b7afe3b1d64cc68b85150b1e652b1ea78e0c3e79f60e56619 2023-01-11T21:31:47.2892012Z deleted: sha256:57a498c51cc5e371ea3005fa34643fd311473bf45160ec9f8829bc57aaf5e469 2023-01-11T21:31:47.2892360Z deleted: sha256:b1ac4279009dc5f8f84259e215465c846e93e899120b194bb26710080d05d064 2023-01-11T21:31:47.2892674Z deleted: sha256:ec6bcb4ef51f26674c5c1ecf0fd98dafba7e6c676af97ddaa9e90c827a84f4ac 2023-01-11T21:31:47.2893048Z deleted: sha256:41053418af7960cb9778f5de6dbb5fb9a81679d026a95c9040112a769fca9509 2023-01-11T21:31:47.2893369Z deleted: sha256:85bc8a6e2aa0a5aab623f96bcbd8100851b8780ab0ab96147f70ecefd9b4db59 2023-01-11T21:31:47.2893729Z deleted: sha256:b14d0ec20a85e111c0d1b7884da9e140828a31183e6a310e6a5b2eb666ffc0f5 2023-01-11T21:31:47.2894050Z deleted: sha256:a1e5003e5f434888b9ed0e968efb1766e6ee2989e3859deb3d28f44a9e11a151 2023-01-11T21:31:47.2894578Z deleted: sha256:079925f7360b91dfffdbf07a3c9d26760ba63efd8ccf2bb1da8eb90a2bce6c71 2023-01-11T21:31:47.2895009Z deleted: sha256:096c0fa52de28ce746fa2185ecede7afb8026f7764e7979521d7100c91f436cf 2023-01-11T21:31:47.2895368Z deleted: sha256:3829c30ff4e506bc321170851f220f8da1447eff64069ce79d2c4524b3c048b9 2023-01-11T21:31:47.2895706Z deleted: sha256:bd5d33b4de72dc0654a67bd3ce98dcef60d7fdfacb8a2ce7fcc20baa6b1e168f 2023-01-11T21:31:47.2896122Z deleted: sha256:1f392eed296a431fb3a9ea096e45207fabad2b40bafdbfadd04cee8cc3143836 2023-01-11T21:31:47.2896437Z deleted: sha256:260fe247d5696775c1703448021630206a5cd4d42cd3fabd431fc6ae4dd70364 2023-01-11T21:31:47.2896800Z deleted: sha256:20efe016ab0cbd16e268a172261b2ff0a48f8bd8b3bb24a8c90e8fcbf8dac0f9 2023-01-11T21:31:47.2897149Z deleted: sha256:acb74ca36bc5aa2afadf1d323e3479f2e695b859e6f8de79a5385b5704648c97 2023-01-11T21:31:47.2897481Z deleted: sha256:08659c8942260808f64dc4d246f0d1ec69bea959285c1a68a623eef06fac0776 2023-01-11T21:31:47.2897828Z deleted: sha256:4f180b139fcb3dbfd17a8bee3050c2e4ddfec735de23b4a4945dfa1cbf2a4b21 2023-01-11T21:31:47.2898163Z deleted: sha256:91adec35f4022e8012f3cf585ef9aecb0fb00554d64d3015746f87790ec5e56e 2023-01-11T21:31:47.2898546Z deleted: sha256:4a0eeaa6a53564a71593a4a86fd649a6489c996eaf1ebb3682d0a38da99b22ed 2023-01-11T21:31:47.2898860Z deleted: sha256:99fac38c2936297fb41ffb0bac75a88912fa25d543829065effecceccb92a3ff 2023-01-11T21:31:47.2899225Z deleted: sha256:798bdde84964314140909f87d67d5f5a73f0cc661f1afd5afb58e243f0b8143b 2023-01-11T21:31:47.2899604Z deleted: sha256:1c46b37f355a09ff1f756158f98428dfb7471c79bf482ec749013853507b63d4 2023-01-11T21:31:47.2899960Z deleted: sha256:83ffd7688f9ca4fd4964d42650101bc8ccd5e8f8c5e98f6bdf62a1d0d9949822 2023-01-11T21:31:47.2900327Z deleted: sha256:20b6db097888f607cac0931dbc6139d6a5f43ab1138e4016aecdbcbd34d58861 2023-01-11T21:31:47.2900719Z deleted: sha256:1e00b41465f87331efde7530353bd0a8e85f73e43fe7b2c2cd62d94d6722f55d 2023-01-11T21:31:47.2901047Z deleted: sha256:d02aefd44af95ba08c859f8d3d122e4c837a4f1bfc629b1f14cad28155f441e2 2023-01-11T21:31:47.2901484Z deleted: sha256:c382de1d8b9efdd8f19997310c931ce3b96a46556c7e6d365289833b9876d70a 2023-01-11T21:31:47.2901969Z deleted: sha256:3ce7d394261e3df5a6daedf89f56f49f65aa9f0363cdd91236bcb6be104f691f 2023-01-11T21:31:47.2902435Z deleted: sha256:96eb2293b4da5750861d9786c2b42370252bd4987bfad60ff880a8e8a1dff012 2023-01-11T21:31:47.2902867Z deleted: sha256:dd3c4887c7716cb5f245c613b60762a6882552b9e53bfe6b8bd87d23ed088389 2023-01-11T21:31:47.2903328Z deleted: sha256:623279cffefdbb351006c27e7413dab9c5a12c7411d842f570d79a7966cb6fbb 2023-01-11T21:31:47.2903799Z deleted: sha256:5295198d288e9389897b64f68531db086313f1ff09424e199edbdfc8e4ccbafe 2023-01-11T21:31:47.2904336Z deleted: sha256:0002c93bdb3704dd9e36ce5153ef637f84de253015f3ee330468dccdeacad60b 2023-01-11T21:31:47.2904656Z 2023-01-11T21:31:47.2904820Z Total reclaimed space: 6.729GB 2023-01-11T21:31:47.2953259Z Post job cleanup. 2023-01-11T21:31:47.2991964Z Post job cleanup. 2023-01-11T21:31:47.3988181Z [command]/usr/bin/git version 2023-01-11T21:31:47.4032734Z git version 2.38.1 2023-01-11T21:31:47.4070891Z Temporarily overriding HOME='/home/ec2-user/actions-runner/_work/_temp/3f0b7595-bb1d-4bf8-8288-025642ea2fae' before making global git config changes 2023-01-11T21:31:47.4071513Z Adding repository directory to the temporary git global config as a safe directory 2023-01-11T21:31:47.4075459Z [command]/usr/bin/git config --global --add safe.directory /home/ec2-user/actions-runner/_work/pytorch/pytorch 2023-01-11T21:31:47.4122964Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2023-01-11T21:31:47.4154143Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2023-01-11T21:31:47.4489116Z Entering 'android/libs/fbjni' 2023-01-11T21:31:47.4523148Z Entering 'third_party/FP16' 2023-01-11T21:31:47.4557245Z Entering 'third_party/FXdiv' 2023-01-11T21:31:47.4591798Z Entering 'third_party/NNPACK' 2023-01-11T21:31:47.4625785Z Entering 'third_party/QNNPACK' 2023-01-11T21:31:47.4659953Z Entering 'third_party/VulkanMemoryAllocator' 2023-01-11T21:31:47.4694473Z Entering 'third_party/XNNPACK' 2023-01-11T21:31:47.4739467Z Entering 'third_party/benchmark' 2023-01-11T21:31:47.4772733Z Entering 'third_party/cpuinfo' 2023-01-11T21:31:47.4807024Z Entering 'third_party/cub' 2023-01-11T21:31:47.4841013Z Entering 'third_party/cudnn_frontend' 2023-01-11T21:31:47.4879441Z Entering 'third_party/cutlass' 2023-01-11T21:31:47.4919980Z Entering 'third_party/eigen' 2023-01-11T21:31:47.4956106Z Entering 'third_party/fbgemm' 2023-01-11T21:31:47.4990736Z Entering 'third_party/fbgemm/third_party/asmjit' 2023-01-11T21:31:47.5024779Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2023-01-11T21:31:47.5058853Z Entering 'third_party/fbgemm/third_party/googletest' 2023-01-11T21:31:47.5092459Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2023-01-11T21:31:47.5126425Z Entering 'third_party/flatbuffers' 2023-01-11T21:31:47.5163279Z Entering 'third_party/fmt' 2023-01-11T21:31:47.5196772Z Entering 'third_party/foxi' 2023-01-11T21:31:47.5231738Z Entering 'third_party/gemmlowp/gemmlowp' 2023-01-11T21:31:47.5265684Z Entering 'third_party/gloo' 2023-01-11T21:31:47.5299824Z Entering 'third_party/googletest' 2023-01-11T21:31:47.5333442Z Entering 'third_party/ideep' 2023-01-11T21:31:47.5365887Z Entering 'third_party/ideep/mkl-dnn' 2023-01-11T21:31:47.5401229Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2023-01-11T21:31:47.5440862Z Entering 'third_party/ios-cmake' 2023-01-11T21:31:47.5474356Z Entering 'third_party/ittapi' 2023-01-11T21:31:47.5507477Z Entering 'third_party/kineto' 2023-01-11T21:31:47.5541715Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2023-01-11T21:31:47.5574883Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2023-01-11T21:31:47.5609289Z Entering 'third_party/nccl/nccl' 2023-01-11T21:31:47.5643403Z Entering 'third_party/neon2sse' 2023-01-11T21:31:47.5677305Z Entering 'third_party/nlohmann' 2023-01-11T21:31:47.5711977Z Entering 'third_party/onnx' 2023-01-11T21:31:47.5756747Z Entering 'third_party/onnx/third_party/benchmark' 2023-01-11T21:31:47.5791506Z Entering 'third_party/onnx/third_party/pybind11' 2023-01-11T21:31:47.5827035Z Entering 'third_party/onnx-tensorrt' 2023-01-11T21:31:47.5860685Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2023-01-11T21:31:47.5898128Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2023-01-11T21:31:47.5931029Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2023-01-11T21:31:47.5964564Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2023-01-11T21:31:47.6001459Z Entering 'third_party/pocketfft' 2023-01-11T21:31:47.6035728Z Entering 'third_party/protobuf' 2023-01-11T21:31:47.6072869Z Entering 'third_party/protobuf/third_party/benchmark' 2023-01-11T21:31:47.6106937Z Entering 'third_party/protobuf/third_party/googletest' 2023-01-11T21:31:47.6142184Z Entering 'third_party/psimd' 2023-01-11T21:31:47.6176690Z Entering 'third_party/pthreadpool' 2023-01-11T21:31:47.6210814Z Entering 'third_party/pybind11' 2023-01-11T21:31:47.6244526Z Entering 'third_party/python-enum' 2023-01-11T21:31:47.6278426Z Entering 'third_party/python-peachpy' 2023-01-11T21:31:47.6311579Z Entering 'third_party/python-six' 2023-01-11T21:31:47.6346405Z Entering 'third_party/sleef' 2023-01-11T21:31:47.6380156Z Entering 'third_party/tbb' 2023-01-11T21:31:47.6415917Z Entering 'third_party/tensorpipe' 2023-01-11T21:31:47.6450015Z Entering 'third_party/tensorpipe/third_party/googletest' 2023-01-11T21:31:47.6484078Z Entering 'third_party/tensorpipe/third_party/libnop' 2023-01-11T21:31:47.6517561Z Entering 'third_party/tensorpipe/third_party/libuv' 2023-01-11T21:31:47.6551900Z Entering 'third_party/tensorpipe/third_party/pybind11' 2023-01-11T21:31:47.6585238Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2023-01-11T21:31:47.6621877Z Entering 'third_party/zstd' 2023-01-11T21:31:47.6670965Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2023-01-11T21:31:47.6698472Z http.https://github.com/.extraheader 2023-01-11T21:31:47.6706335Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2023-01-11T21:31:47.6739887Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : 2023-01-11T21:31:47.6994707Z Entering 'android/libs/fbjni' 2023-01-11T21:31:47.7013970Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7043692Z Entering 'third_party/FP16' 2023-01-11T21:31:47.7063753Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7091423Z Entering 'third_party/FXdiv' 2023-01-11T21:31:47.7113420Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7140431Z Entering 'third_party/NNPACK' 2023-01-11T21:31:47.7160597Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7187783Z Entering 'third_party/QNNPACK' 2023-01-11T21:31:47.7208612Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7236417Z Entering 'third_party/VulkanMemoryAllocator' 2023-01-11T21:31:47.7262051Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7289640Z Entering 'third_party/XNNPACK' 2023-01-11T21:31:47.7310760Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7348696Z Entering 'third_party/benchmark' 2023-01-11T21:31:47.7369464Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7396111Z Entering 'third_party/cpuinfo' 2023-01-11T21:31:47.7417512Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7443830Z Entering 'third_party/cub' 2023-01-11T21:31:47.7464638Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7505796Z Entering 'third_party/cudnn_frontend' 2023-01-11T21:31:47.7526435Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7558624Z Entering 'third_party/cutlass' 2023-01-11T21:31:47.7579406Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7612828Z Entering 'third_party/eigen' 2023-01-11T21:31:47.7633654Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7662284Z Entering 'third_party/fbgemm' 2023-01-11T21:31:47.7683029Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7709862Z Entering 'third_party/fbgemm/third_party/asmjit' 2023-01-11T21:31:47.7729561Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7765792Z Entering 'third_party/fbgemm/third_party/cpuinfo' 2023-01-11T21:31:47.7785633Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7812417Z Entering 'third_party/fbgemm/third_party/googletest' 2023-01-11T21:31:47.7831279Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7859106Z Entering 'third_party/fbgemm/third_party/hipify_torch' 2023-01-11T21:31:47.7878522Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7905911Z Entering 'third_party/flatbuffers' 2023-01-11T21:31:47.7925952Z http.https://github.com/.extraheader 2023-01-11T21:31:47.7962104Z Entering 'third_party/fmt' 2023-01-11T21:31:47.7983245Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8009193Z Entering 'third_party/foxi' 2023-01-11T21:31:47.8029562Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8055889Z Entering 'third_party/gemmlowp/gemmlowp' 2023-01-11T21:31:47.8075877Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8102261Z Entering 'third_party/gloo' 2023-01-11T21:31:47.8122267Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8149347Z Entering 'third_party/googletest' 2023-01-11T21:31:47.8168816Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8195403Z Entering 'third_party/ideep' 2023-01-11T21:31:47.8215997Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8242497Z Entering 'third_party/ideep/mkl-dnn' 2023-01-11T21:31:47.8262793Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8302372Z Entering 'third_party/ideep/mkl-dnn/third_party/oneDNN' 2023-01-11T21:31:47.8321938Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8362994Z Entering 'third_party/ios-cmake' 2023-01-11T21:31:47.8383457Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8410303Z Entering 'third_party/ittapi' 2023-01-11T21:31:47.8430812Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8457464Z Entering 'third_party/kineto' 2023-01-11T21:31:47.8477551Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8504149Z Entering 'third_party/kineto/libkineto/third_party/fmt' 2023-01-11T21:31:47.8523636Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8550673Z Entering 'third_party/kineto/libkineto/third_party/googletest' 2023-01-11T21:31:47.8569685Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8597315Z Entering 'third_party/nccl/nccl' 2023-01-11T21:31:47.8618230Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8644715Z Entering 'third_party/neon2sse' 2023-01-11T21:31:47.8664967Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8691047Z Entering 'third_party/nlohmann' 2023-01-11T21:31:47.8711205Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8739298Z Entering 'third_party/onnx' 2023-01-11T21:31:47.8758932Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8798307Z Entering 'third_party/onnx/third_party/benchmark' 2023-01-11T21:31:47.8818518Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8857365Z Entering 'third_party/onnx/third_party/pybind11' 2023-01-11T21:31:47.8876533Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8905435Z Entering 'third_party/onnx-tensorrt' 2023-01-11T21:31:47.8925255Z http.https://github.com/.extraheader 2023-01-11T21:31:47.8962368Z Entering 'third_party/onnx-tensorrt/third_party/onnx' 2023-01-11T21:31:47.8981850Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9024573Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/benchmark' 2023-01-11T21:31:47.9044033Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9071098Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11' 2023-01-11T21:31:47.9090382Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9116285Z Entering 'third_party/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang' 2023-01-11T21:31:47.9136097Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9166854Z Entering 'third_party/pocketfft' 2023-01-11T21:31:47.9186275Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9212535Z Entering 'third_party/protobuf' 2023-01-11T21:31:47.9232016Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9262293Z Entering 'third_party/protobuf/third_party/benchmark' 2023-01-11T21:31:47.9281526Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9307956Z Entering 'third_party/protobuf/third_party/googletest' 2023-01-11T21:31:47.9327121Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9355461Z Entering 'third_party/psimd' 2023-01-11T21:31:47.9375593Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9412527Z Entering 'third_party/pthreadpool' 2023-01-11T21:31:47.9432557Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9459565Z Entering 'third_party/pybind11' 2023-01-11T21:31:47.9479072Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9505587Z Entering 'third_party/python-enum' 2023-01-11T21:31:47.9525094Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9551230Z Entering 'third_party/python-peachpy' 2023-01-11T21:31:47.9570694Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9605741Z Entering 'third_party/python-six' 2023-01-11T21:31:47.9624913Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9651060Z Entering 'third_party/sleef' 2023-01-11T21:31:47.9671288Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9698859Z Entering 'third_party/tbb' 2023-01-11T21:31:47.9718613Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9747066Z Entering 'third_party/tensorpipe' 2023-01-11T21:31:47.9767396Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9811912Z Entering 'third_party/tensorpipe/third_party/googletest' 2023-01-11T21:31:47.9831702Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9858491Z Entering 'third_party/tensorpipe/third_party/libnop' 2023-01-11T21:31:47.9878294Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9903855Z Entering 'third_party/tensorpipe/third_party/libuv' 2023-01-11T21:31:47.9923219Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9949500Z Entering 'third_party/tensorpipe/third_party/pybind11' 2023-01-11T21:31:47.9968253Z http.https://github.com/.extraheader 2023-01-11T21:31:47.9993586Z Entering 'third_party/tensorpipe/third_party/pybind11/tools/clang' 2023-01-11T21:31:48.0013920Z http.https://github.com/.extraheader 2023-01-11T21:31:48.0042651Z Entering 'third_party/zstd' 2023-01-11T21:31:48.0063223Z http.https://github.com/.extraheader 2023-01-11T21:31:48.0281152Z Cleaning up orphan processes